Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Assemble(Instructions)
- local Stack = {}
- local Globals1 = {};
- print(Globals1)
- local SourceBuild = "";
- local Signifier = 0
- for _, Instruction in pairs(Instructions) do
- if Instruction['Name'] == "LOADBOOL" then
- SourceBuild = SourceBuild .. "local a" .. Signifier .. "=" .. tostring(Instruction['Read'][1]['value']) .. " ";
- Signifier = Signifier + 1
- elseif Instruction['Name'] == "LOADK" then
- local Value = tonumber(Instruction['value']) or tostring(Instruction['value']);
- table.insert(Stack, Value)
- elseif Instruction['Name'] == "GETGLOBAL" then
- -- Implied LOADK
- local GLOBAL = getfenv()[Instruction['value']];
- print(Globals1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement