fix some bugs, work on assembler

This commit is contained in:
andromeda
2026-03-09 11:00:59 +01:00
parent 33710a8ebe
commit 869420ef7a
2 changed files with 69 additions and 13 deletions

View File

@@ -403,6 +403,11 @@ test_get_tte_type:
cmp al, 0x02 ; register
jne .fail
mov di, 0x0056 ; mov
call get_tte_type
cmp al, 0x01 ; operator
jne .fail
mov di, 0xFFFF ; unrecognised token
call get_tte_type
cmp al, UNRECOGNISED_ID_TYPE
@@ -439,6 +444,11 @@ test_get_tte_typed_metadata:
cmp al, 0x03 ; width: 64 bits
jne .fail
mov di, 0x0056 ; mov
call get_tte_typed_metadata
cmp al, 0x02 ; # operands
jne .fail
mov di, 0xFFFF ; unrecognised token
call get_tte_typed_metadata
cmp al, UNRECOGNISED_ID_METADATA