Denis Tereshkin
51e465ee9c
vmcompiler: fix static label generation
...
Apparently, static memaccess' take number as argument, which should
be converted to static label which is visible within one *.vm file,
but not from outside
4 years ago
Denis Tereshkin
96ce89d04c
vmcompiler: fix FFunction compile
4 years ago
Denis Tereshkin
71589f0308
vmcompiler: prefix labels with current function name
4 years ago
Denis Tereshkin
41caac430f
Update Readme
4 years ago
Denis Tereshkin
7b4785841a
vmcompiler: make functional command compile
4 years ago
Denis Tereshkin
202e6e59db
vmtranslator: compile branching commands
4 years ago
Denis Tereshkin
fef22a80da
Bugfix: vmcompiler: correct conditionals compilation
4 years ago
Denis Tereshkin
1517d38d21
Bugfix: vmcompiler: parse numeric offset in static segment
...
Apparently, numeric arguments to push/pop static are valid,
so I prefix them with 'STATIC_' at the parsing stage
4 years ago
Denis Tereshkin
57bd5979e2
new executable vmcompiler: compiles vm code to hack assembly
4 years ago
Denis Tereshkin
9c3a49350a
VM: fix pop instruction compilation
4 years ago
Denis Tereshkin
3d4632e498
VM: annotations for missing instructions
4 years ago
Denis Tereshkin
61295ef3a3
VM: compile arithmetic commands
4 years ago
Denis Tereshkin
74b8de3a48
VM: compile pop instruction
4 years ago
Denis Tereshkin
7e6115352c
Compile push instructions
4 years ago
Denis Tereshkin
e988d90a7d
Readme update
4 years ago
Denis Tereshkin
f1483c8558
VM instructions parser
4 years ago
Denis Tereshkin
84a79094fd
Move Error to separate module
4 years ago
Denis Tereshkin
19d510bde8
Refactoring
...
Hack assembler definitions are now in separate module.
This will be handy when I implement VM compiler
4 years ago
Denis Tereshkin
5b5887f2b5
Working translation
4 years ago
Denis Tereshkin
62e0afdb5b
Initial import
4 years ago