Code: Select all
.macro text _string
.db _string-"A"+#$0A
.endm
text "SOMETHING"
So... is there a clean way to include complex ASCII strings in ASM6 code?
Moderator: Moderators
Code: Select all
.macro text _string
.db _string-"A"+#$0A
.endm
text "SOMETHING"
Code: Select all
G equ 10
H equ 11
I equ 12
J equ 13
K equ 14
L equ 15
M equ 16
N equ 17
O equ 18
P equ 19
Q equ 1A
R equ 1B
S equ 1C
T equ 1D
U equ 1E
V equ 1F
W equ 20
X equ 21
Y equ 22
Z equ 23
_ equ 24
Code: Select all
.hex S O M E _ S T R I N G 1 2 3
Code: Select all
text "SOME"
.db $24
text "STRING"
.hex 01 02 03