Uploading Lua Assembler/Disassembler for Lua 5.2

This commit is contained in:
Andre Murbach Maidl
2013-08-04 10:41:28 -03:00
parent 6c9a9f0cd6
commit 5d2eafb879
13 changed files with 2735 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
Assembler
- Fix RK to work with constants larger than 2^8.
- Add following command line options:
- endianness;
- size of string constants;
- size of ints;
- type of lua numbers.
- Insert line counter to improve error messages.
- Add operator '...' to allow the definition of vararg functions.
- Add following instructions: JNE, JG, JL, JGE, JLE and JE.
- Add below constants/parameters if necessary:
- TRUE;
- FALSE;
- NIL.
Disassembler
- Make it work with big endian code.
- Write '(...)' instead of '(0)' when a function is vararg.