summaryrefslogtreecommitdiff
path: root/twasm/asm/tests.asm
diff options
context:
space:
mode:
Diffstat (limited to 'twasm/asm/tests.asm')
-rw-r--r--twasm/asm/tests.asm9
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: