17 Commits

Author SHA1 Message Date
2737e0a34e Improve code 2021-11-19 17:07:18 +01:00
2c56582460 Refactor code 2021-11-18 22:33:13 +01:00
c656b8ca4e Override default show implementation for VM ADT 2021-11-18 13:02:26 +01:00
5ad4114405 Wrap emitters with ExceptT monad 2021-11-15 13:01:55 +01:00
e7c413e9eb Add support for 'ldl' and 'stl' instructions 2021-11-14 21:54:46 +01:00
3bb880f045 Rename 'ld' instruction to 'lda' 2021-11-14 11:08:25 +01:00
6c50259228 Disable stack modification by branching (j*) instructions 2021-11-14 11:06:56 +01:00
434d5a16ff Add support for 'roll' and 'over' instructions 2021-11-12 17:40:13 +01:00
41438cc709 Enable 'in' instruction handler 2021-11-12 16:25:04 +01:00
e3bcebcece Update VM to work on State monad 2021-11-12 15:23:17 +01:00
f84e10a019 Add more unit tests for Virtual Machine #3 2021-11-10 22:58:09 +01:00
c457d176b7 Enable empty stack error handling 2021-11-10 14:13:17 +01:00
ae2ff96cb7 Add support for clr instruction 2021-11-09 21:25:48 +01:00
71ec09c326 Add support for ld instruction | fix number of pops in halt instruction 2021-11-09 21:19:06 +01:00
174af9536f Create print-based VM debugger 2021-11-09 19:11:02 +01:00
6a2047aae1 Fix jumping 2021-11-09 19:05:15 +01:00
bfb231d483 Split VirtualMachine module 2021-11-09 18:25:15 +01:00