IT SORTA WORKS LESGOOO

This commit is contained in:
andromeda
2026-03-23 23:37:39 +01:00
parent 40be72a5c3
commit b607bd13f3
3 changed files with 135 additions and 31 deletions

View File

@@ -251,6 +251,11 @@ test_get_tte_typed_metadata:
cmp al, 0x02 ; # operands
jne .fail
mov di, 0x004F ; hlt
call get_tte_typed_metadata
cmp al, 0x00 ; # operands
jne .fail
mov di, 0x0003 ; rdx
call get_tte_typed_metadata
cmp al, 00001011b ; reg: 010b
@@ -289,21 +294,32 @@ test_get_opcode:
call print.test
mov di, 0x0053 ; xor
mov sil, 0b
call get_opcode
cmp al, 0x31
jne .fail
mov di, 0x0053 ; xor
mov sil, 1b
call get_opcode
cmp al, 0x33
jne .fail
mov di, 0x0054 ; inc
mov sil, 0b
call get_opcode
cmp al, 0xFF
jne .fail
mov di, 0x004F ; hlt
mov sil, 0b
call get_opcode
cmp al, 0xF4
jne .fail
mov di, 0x0003 ; rdx (not an operator)
mov sil, 0b
call get_opcode
cmp al, UNRECOGNISED_ID_OPCODE
jne .fail