From 73ea2bb2b5a641802e736162e67f8a5585ebdf0d Mon Sep 17 00:00:00 2001 From: andromeda Date: Fri, 20 Mar 2026 09:04:50 +0100 Subject: add addressing to evaluate_operand --- twasm/asm/tests.asm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'twasm/asm/tests.asm') 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: -- cgit v1.3.1