mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
34 lines
1.3 KiB
NASM
34 lines
1.3 KiB
NASM
SECTION "sec", ROM0
|
|
|
|
X0 EQUS "0"
|
|
|
|
MACRO m
|
|
\1 EQUS STRCAT("{X\2}", "+1")
|
|
ENDM
|
|
|
|
FOR n, $7E
|
|
n1 = n + 1
|
|
m X{X:n1}, {X:n}
|
|
ENDR
|
|
|
|
; string of 127 zeros separated by plus signs
|
|
X EQUS "{X7E}"
|
|
|
|
db x+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
|
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X
|
|
|
|
x: db 0
|
|
|
|
; this tests long RPN expressions being used as the RHS, as this once triggered
|
|
; a realloc bug
|
|
db 1+(x+X)
|
|
|
|
; likewise, a long symbol could result in an insufficient *initial* allocation
|
|
db A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000+0+0
|