From ea63400741f431131dbb09a85e13f658fcf28a9c Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 3 May 2007 04:13:43 +0000 Subject: Shellin' out a framework --- libraries/libLSL/lslByteCode.cs | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 libraries/libLSL/lslByteCode.cs (limited to 'libraries/libLSL/lslByteCode.cs') 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 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace libLSL +{ + class lslByteCode + { + byte[] bytecode; + + public void executeStep() + { + byte ins = nextInstruction(); + lslOpcodes code = (lslOpcodes)ins; + + switch (code) + { + case lslOpcodes.OP_NOOP: + break; + case lslOpcodes.OP_POP: + popBytes(4); + break; + + default: + break; + } + } + + byte nextInstruction() + { + return 0; + } + + void popBytes(int num) + { + + } + } +} -- cgit v1.1