Categories > Coding > Lua >

[Release] Lua Vm Concept

Posts: 0

Threads: 0

Joined: ?

Reputation:

Posted

I've decided to make and release a Lua Vm Concept so people could better learn how the vm works. It's written in lua and only supports print at the moment. I plan on releasing a full scaled one that will support more complex scripts (any you wont have to define the instructions by hand). I suck at explanations so ima just include the github link below. If you see any errors or something in the vm was made improperly you can dm me on discord "Mr Lolegic#0773", I hope atleast 1 person outa the bunch learns from this.

https://github.com/MrLolegic/LuaStuff/blob/main/Projects/VmConcept.lua

 

 

  • 1

Added

@Cyros

 

I've actually been trying to learn luaus backend and attempt to make a vm and obfuscator that's fully luau rather than lua 5.1.

  • 0

Added

Since the opcodes are weird asf, it'd be harder for someone without the proper knowledge to actually deobfuscate since most obfuscators are in lua and meant for lua 5.1.

  • 0

Added

@89215

 

It's actually based on lua 5.1, but heavily modified/changed.

  • 0

Added

They change a few things, Opcode index's, More Opcodes for different things. They've even removed certain lua 5.1 features.

  • 0

Added

For example - Changing opcode index "Move is 0 in lua 5.1, in luau its 7, Loadk is 1 in lua 5.1, in luau its 6"
For example - Adding opcodes "LOADB sets a register to a boolean and jumps to a given short offset, Loadb is in luau but not lua 5.1"

For example - Removing things "No more io lib, yes we will miss it :( "

  • 0

Added

@Cyros

 

Ah, I didn't know that. I've never really looked at any other version besides lua 5.1. So I didn't know what features other lua versions had, but thanks for telling me.

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )