mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 14:27:50 +00:00
Add support for multiple charmaps
This adds two new directives: newcharmap and setcharmap. newcharmap creates a new charmap and switches to it. setcharmap switches to an existing charmap.
This commit is contained in:
34
test/asm/multiple-charmaps.out.pipe
Normal file
34
test/asm/multiple-charmaps.out.pipe
Normal file
@@ -0,0 +1,34 @@
|
||||
warning: -(64):
|
||||
Using 'charmap' within a section when the current charmap is 'main' is deprecated
|
||||
ERROR: -(85):
|
||||
Charmap 'map1' already exists
|
||||
ERROR: -(88):
|
||||
Charmap 'map5' doesn't exist
|
||||
error: Assembly aborted (2 errors)!
|
||||
main charmap
|
||||
$0
|
||||
newcharmap map1
|
||||
$6162
|
||||
newcharmap map2, main
|
||||
$0
|
||||
setcharmap map1
|
||||
$6162
|
||||
newcharmap map3
|
||||
$1
|
||||
newcharmap map4, map3
|
||||
$1
|
||||
$2
|
||||
setcharmap map3
|
||||
$1
|
||||
$6364
|
||||
setcharmap main
|
||||
$0
|
||||
override main charmap
|
||||
$6162
|
||||
$3
|
||||
setcharmap map3
|
||||
$1
|
||||
$6364
|
||||
$6566
|
||||
newcharmap map1
|
||||
setcharmap map5
|
||||
Reference in New Issue
Block a user