mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +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:
@@ -21,6 +21,7 @@
|
||||
#include "asm/lexer.h"
|
||||
#include "asm/output.h"
|
||||
#include "asm/main.h"
|
||||
#include "asm/charmap.h"
|
||||
|
||||
#include "extern/err.h"
|
||||
|
||||
@@ -437,6 +438,7 @@ int main(int argc, char *argv[])
|
||||
sym_SetExportAll(CurrentOptions.exportall);
|
||||
fstk_Init(tzMainfile);
|
||||
opt_ParseDefines();
|
||||
charmap_InitMain();
|
||||
|
||||
yy_set_state(LEX_STATE_NORMAL);
|
||||
opt_SetCurrentOptions(&DefaultOptions);
|
||||
|
||||
Reference in New Issue
Block a user