Files
rgbds/test/asm/raw-identifiers.asm
T

37 lines
583 B
NASM

def #DEF equ 1
def #def equ 2
def #ghi equ 3
export #def, #ghi
def #align = 0
def #rb rb #def
MACRO #macro
println "\<#def> is not \<#DEF>"
ENDM
#macro first, second
purge #macro
static_assert !def(#macro)
section "section", rom0
#section::
dw #section
#.rom0:
db BANK(#section.rom0)
#section.romx:
println "section.romx is in ", SECTION(.romx)
def #sub equs "def"
{#sub} #add equs "#"
for #for, {{#add}{#sub}}
println "for == ", #for
endr
static_assert #for == 2
static_assert !{#sub}(#FOR)
newcharmap #charmap, #main
charmap "#", $42
setcharmap #charmap
db "#"