aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/libLSL/lslByteCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libLSL/lslByteCode.cs')
-rw-r--r--libraries/libLSL/lslByteCode.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/libraries/libLSL/lslByteCode.cs b/libraries/libLSL/lslByteCode.cs
new file mode 100644
index 0000000..eb98773
--- /dev/null
+++ b/libraries/libLSL/lslByteCode.cs
@@ -0,0 +1,39 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace libLSL
6{
7 class lslByteCode
8 {
9 byte[] bytecode;
10
11 public void executeStep()
12 {
13 byte ins = nextInstruction();
14 lslOpcodes code = (lslOpcodes)ins;
15
16 switch (code)
17 {
18 case lslOpcodes.OP_NOOP:
19 break;
20 case lslOpcodes.OP_POP:
21 popBytes(4);
22 break;
23
24 default:
25 break;
26 }
27 }
28
29 byte nextInstruction()
30 {
31 return 0;
32 }
33
34 void popBytes(int num)
35 {
36
37 }
38 }
39}