-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This will tell you how the language "R2Script" is and how to use this compiler.
R2Script is a programming language,which was designed for the virtual computer "R216" or "R2".If you have ever played The Powder Toy(TPT),you would know there're so many machines here for TPT,computers included of course.
"R216" is one of the most amazing TPT computer designed and built by LBPHacker.You can find the saves easily by searching its name such as "R216K2A" in the game.
The compiler accept files then produce single .asm file.Later the .asm file can be assembled by the assembler.
You can find the assembler here:R216
For some reasons,such as the poor instruction set supported by "R2" and my poor programming skill,the asm code produced by the compiler would run slower than your expectation.
Run the R2Script.exe with command "R2Script.exe <-i inputfiles> <-o outputfile> [-l paths]".
The compiler accepts more than one file but only produces single .asm file.
The argument "paths" tells compiler where to find the lib files.The directory "/lib" acommpanying the compiler is normally in library searching paths.
The asm code generated by the compiler would be very ugly and slow but in most cases it runs correctly.So my advice is that you can generate asm code with this then manually optimize it on your own.
Perhaps I'll make a optimizer in it but it depends.