add 8 bit opcode support
This commit is contained in:
@@ -295,6 +295,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0053 ; xor
|
||||
mov sil, 0
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0x31
|
||||
jne .fail
|
||||
@@ -303,6 +304,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0053 ; xor
|
||||
mov sil, 1
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0x33
|
||||
jne .fail
|
||||
@@ -311,6 +313,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0053 ; xor
|
||||
mov sil, 2
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0x81
|
||||
jne .fail
|
||||
@@ -319,6 +322,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0053 ; xor
|
||||
mov sil, 3
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0x83
|
||||
jne .fail
|
||||
@@ -327,6 +331,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0054 ; inc
|
||||
mov sil, 0
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0xFF
|
||||
jne .fail
|
||||
@@ -335,6 +340,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0055 ; dec
|
||||
mov sil, 0
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0xFF
|
||||
jne .fail
|
||||
@@ -343,6 +349,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x004F ; hlt
|
||||
mov sil, 0
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0xF4
|
||||
jne .fail
|
||||
@@ -351,6 +358,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0059 ; call
|
||||
mov sil, 0q0
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, 0xFF
|
||||
jne .fail
|
||||
@@ -359,6 +367,7 @@ test_get_opcode:
|
||||
|
||||
mov di, 0x0003 ; rdx (not an operator)
|
||||
mov sil, 0q0
|
||||
mov bl, 0
|
||||
call get_opcode
|
||||
cmp al, UNRECOGNISED_ID_OPCODE
|
||||
jne .fail
|
||||
|
||||
Reference in New Issue
Block a user