add addressing to evaluate_operand
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user