Fixed a bug where CMP REG, REG wouldn't get encoded and a disassembler bug related to said CMP bug.

This commit is contained in:
2022-08-29 19:29:34 +00:00
parent 5f437b6869
commit 6c7b8d5356
4 changed files with 26 additions and 16 deletions
+3 -3
View File
@@ -2,9 +2,9 @@
.db msg "Hello, world!", 0
.db more_stuff "AA", 0
copy r7, msg ; //
cmp r8, 45 ;1000 1111
add r4, 30
sub r1, 69
cmp r8, r3 ;1000 1111
add r4, r1
sub r1, r8
int 20
jz 45
jmp msg