mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-29 10:50:28 +00:00
b74630dd5b
Most assemblers end local label scope when a global label is encountered. cc65 takes this one step further by ending local label scope when constants or variables are defined. So, if we have a variable table with a nonzero number of entries, we want to create a fake global label at that point to end the scope. Merlin 32 won't let you write " LDA #',' ". For some reason the comma causes an error. IGenerator now has a "tweak operand format" interface that lets us fix that.
14 lines
348 B
INI
14 lines
348 B
INI
# 6502bench SourceGen generated linker script for 2019-local-variables
|
|
MEMORY {
|
|
MAIN: file=%O, start=%S, size=65536;
|
|
# MEM000: file=%O, start=$1000, size=126;
|
|
# MEM001: file=%O, start=$0080, size=25;
|
|
}
|
|
SEGMENTS {
|
|
CODE: load=MAIN, type=rw;
|
|
# SEG000: load=MEM000, type=rw;
|
|
# SEG001: load=MEM001, type=rw;
|
|
}
|
|
FEATURES {}
|
|
SYMBOLS {}
|