aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/libLSL/lslByteCode.cs
blob: eb987730c27b024fcd23209cc5951ccbc5e658bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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)
        {

        }
    }
}