shithub: rgbds

ref: 969412af246eb7ca8fe1f5799281eb0df67a6102
dir: /test/asm/section-name.asm/

View raw version
SECTION "aaa", ROM0[5]
	println SECTION(@)
	Label1: println SECTION(Label1)
	dw STARTOF(SECTION(@))

SECTION UNION "bbb", WRAM0
	println SECTION(@)
	Label2:
	.local1: println SECTION(Label2.local1)
	.local2: println SECTION(.local2)

SECTION FRAGMENT "ccc", HRAM
	println SECTION(@)
	: println SECTION(:-)

	PUSHS
	SECTION "ddd", ROMX
		println SECTION(@)
	POPS