Aryadev Chavali
0975d92493
Introduced new instructions for comparison
...
Comparing signed and unsigned versions of numbers. Same for EQ as
well.
Notice the irregular pattern of BYTE, CHAR, INT, HWORD,LONG,WORD as
OPCODE_IS_TYPE requires the subcodes to be surrounded by BYTE and
WORD.
2023-10-31 20:50:28 +00:00
Aryadev Chavali
597a45aa73
Fixed bug where JUMP_REGISTER couldn't be in bytecode read
2023-10-29 16:58:18 +00:00
Aryadev Chavali
c4cb45f3ad
Fixed bug where reading operand bytecode may stop prematurely
...
This is due to checking for equality instead of just greater than in
darr->used against darr->available.
2023-10-29 16:56:33 +00:00
Aryadev Chavali
e9c54e045a
Fixed bug where printing hword of an instruction prints number not hex
...
This is an easy fix.
2023-10-26 11:16:02 +01:00
Aryadev Chavali
74a85268c4
Moved base functions from inst.c to dedicated file
...
Doesn't make sense for them to be in the VM module when they have a
more general purpose now.
2023-10-26 10:19:10 +01:00
Aryadev Chavali
b44a61be41
src->vm, Makefile is now a bit more abstracted and pretty colours
...
Changed folder names for sake of clarity (will be introducing a new
build target soon), and Makefile can now easily support more targets.
2023-10-23 03:58:34 +01:00