shithub: rgbds

ref: 3fbdba31bfa9af2660e2c7dc8d106d6110edd159
dir: /test/asm/unmapped-char.asm/

View raw version
opt Wunmapped-char=1 ; non-default empty charmaps can have unmapped chars

SECTION "test", ROM0

	db "A" ; OK, default empty charmap

	pushc
	newcharmap custom
	db "A" ; OK, unmapped in non-default empty charmap
		pusho
		opt Wunmapped-char=2
		db "A" ; unmapped in non-default empty charmap
		popo
	charmap "C", $99
	db "A" ; unmapped in non-empty charmap
	popc

	db "A" ; OK, default empty charmap again

	charmap "B", $42
	db "A" ; unmapped in non-empty charmap

	println "A" ; does not use charmap

	opt Wno-unmapped-char
	db "A" ; warning silenced