simple regression test for .charmap

This commit is contained in:
mrdudz
2025-07-11 18:33:38 +02:00
parent 5fc300b987
commit 907d8b26c5

43
test/asm/val/charmap.s Normal file
View File

@@ -0,0 +1,43 @@
.setcpu "6502"
.import _exit
.export _main
.charmap $41, 0
.charmap $42, 1
.charmap $43, 2
mapped:
.byte "ABC"
.include "ascii_charmap.inc"
ascii:
.byte "ABC"
_main:
ldx #$01
lda mapped+0
cmp #0
bne error
lda mapped+1
cmp #1
bne error
lda mapped+2
cmp #2
bne error
lda ascii+0
cmp #$41
bne error
lda ascii+1
cmp #$42
bne error
lda ascii+2
cmp #$43
bne error
ldx #$00
error:
txa
jmp _exit