shithub: rgbds

ref: bbe28faab4f6dce29fe820450c425d255546cfbb
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