diff options
| author | andromeda <andromeda@lenovo> | 2026-03-20 09:04:50 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-03-20 09:04:50 +0100 |
| commit | 73ea2bb2b5a641802e736162e67f8a5585ebdf0d (patch) | |
| tree | 614d5bed02daa0d5e2f0df51cd318ae89dfdf821 /twasm/asm/tests.asm | |
| parent | a5fd811b3f14a4fc888f390d4ff48ccac5664054 (diff) | |
add addressing to evaluate_operand
Diffstat (limited to 'twasm/asm/tests.asm')
| -rw-r--r-- | twasm/asm/tests.asm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/twasm/asm/tests.asm b/twasm/asm/tests.asm index e2dd79e..5df2152 100644 --- a/twasm/asm/tests.asm +++ b/twasm/asm/tests.asm @@ -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: |
