a javascript assembly-like interpreter simulator. Be warned, the current versions have no/minimal error catching and safety nets. status: NOT PRODUCTION READY
- construct IRTree generator
- normal command calls
- create builtins
- label jumping
- main entry point
- subroutine calls
- subroutine parameters as registers
- cozyasm cli
- make documentation
to compile to a language, use the cozyasm cli with the --compile=NAME
flag. (not implemented). This list is subject to change, especially if the assembly languages chosen are not able to be compiled (they are missing key features). Also note all commands are not portable to all languages, especially nlin
, llin
, and puts
. (although puts could be implemented in a form of std library for the language).
- lux
- also see the planned list.
list of implemented flags:
-
--dump
: provides a output log of the classes and functions used to interpret and compile code. -
--compile=NAME
: instructs the compiler to compile to a specific assembly language.
- import infinite loops
- not enough error logging
this set can, and will, change many times!
- mov
- add
- sub
- mul
- div
- ifeq
- iflt
- iflq
- nlin
- llin
- mload
- import
- tbufpsh
- tbufwr
- tbufcls
- puts
- endl
- end
- load
- store
- rad
- ralloc
- malloc