aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/libLSL/lslByteCode.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-05-03 04:13:43 +0000
committerAdam Frisby2007-05-03 04:13:43 +0000
commitea63400741f431131dbb09a85e13f658fcf28a9c (patch)
treef93032041830eab1029336428c9063efb8dbac2e /libraries/libLSL/lslByteCode.cs
parentASDASDASDASDASDS. (diff)
downloadopensim-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.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}