mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Shellin' out a framework
This commit is contained in:
39
libraries/libLSL/lslByteCode.cs
Normal file
39
libraries/libLSL/lslByteCode.cs
Normal file
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user