diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/libLSL/lslByteCode.cs | 39 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace 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 | } | ||