diff options
author | Adam Frisby | 2007-05-03 04:13:43 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-03 04:13:43 +0000 |
commit | ea63400741f431131dbb09a85e13f658fcf28a9c (patch) | |
tree | f93032041830eab1029336428c9063efb8dbac2e /libraries/libLSL/lslByteCode.cs | |
parent | ASDASDASDASDASDS. (diff) | |
download | opensim-SC-ea63400741f431131dbb09a85e13f658fcf28a9c.zip opensim-SC-ea63400741f431131dbb09a85e13f658fcf28a9c.tar.gz opensim-SC-ea63400741f431131dbb09a85e13f658fcf28a9c.tar.bz2 opensim-SC-ea63400741f431131dbb09a85e13f658fcf28a9c.tar.xz |
Shellin' out a framework
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 | } | ||