summaryrefslogtreecommitdiff
path: root/twasm/asm/tests.asm
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-03-18 16:18:19 +0100
committerandromeda <andromeda@lenovo>2026-03-18 16:18:19 +0100
commit17a0a1a406bb52bde8c1306cd7ff44c00acb84de (patch)
tree81e3976981f5f6504bb11e0acc4e44ac12d5df4f /twasm/asm/tests.asm
parente79a30ba713054053e8995639a14b00e8ea1c16f (diff)
yeh only chr consts fn
Diffstat (limited to 'twasm/asm/tests.asm')
-rw-r--r--twasm/asm/tests.asm16
1 files changed, 3 insertions, 13 deletions
diff --git a/twasm/asm/tests.asm b/twasm/asm/tests.asm
index 4d0ddc8..df60eb4 100644
--- a/twasm/asm/tests.asm
+++ b/twasm/asm/tests.asm
@@ -370,21 +370,13 @@ test_evaluate_constant:
; char
mov rdi, .case0c
- mov rsi, 3
+ mov rsi, 6
call evaluate_constant
cmp rax, [.case0c_solution]
jne .fail
cmp rdx, 0x03
jne .fail
- ; str
- mov rdi, .case0s
- mov rsi, 5
- call evaluate_constant
- cmp rax, [.case0s_solution]
- jne .fail
- cmp rdx, 0x04
-
.pass:
mov rsi, msg_pass
call print
@@ -402,10 +394,8 @@ test_evaluate_constant:
.case2h_solution dq 0x1234567890
.case3h db "0x243F6A8885A308D3"
.case3h_solution dq 0x243F6A8885A308D3
- .case0c db "' '"
- .case0c_solution dq ' '
- .case0s db '"str"'
- .case0s_solution dq "str"
+ .case0c db '"char"'
+ .case0c_solution dq "char"
.case0q db "0q31103755242102"
.case0q_solution dq 0q31103755242102