add addressing to evaluate_operand

This commit is contained in:
andromeda
2026-03-20 09:04:50 +01:00
parent a5fd811b3f
commit 73ea2bb2b5
2 changed files with 28 additions and 8 deletions

View File

@@ -535,6 +535,14 @@ test_evaluate_operand:
cmp ax, 0x0003
jne .fail
mov rdi, .case3
mov rsi, 5
call evaluate_operand
cmp dl, 0x10
jne .fail
cmp ax, 0x0003
jne .fail
.pass:
mov rsi, msg_pass
call print
@@ -546,6 +554,7 @@ test_evaluate_operand:
.case0 db "rax"
.case1: ; intentionally blank
.case2 db "rdx"
.case3 db "[rdx]"
.msg db "test_evaluate_operand...", 0x00
msg_pass: