Added a file header
git-svn-id: svn://svn.cc65.org/cc65/trunk@1332 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -7,11 +7,20 @@
|
|||||||
.export _exit
|
.export _exit
|
||||||
.import initlib, donelib
|
.import initlib, donelib
|
||||||
.import zerobss, push0
|
.import zerobss, push0
|
||||||
|
.import __CODE_LOAD__, __BSS_LOAD__ ; Linker generated
|
||||||
.import _main
|
.import _main
|
||||||
|
|
||||||
.include "zeropage.inc"
|
.include "zeropage.inc"
|
||||||
.include "apple2.inc"
|
.include "apple2.inc"
|
||||||
|
|
||||||
|
; ------------------------------------------------------------------------
|
||||||
|
; The executable header
|
||||||
|
|
||||||
|
.segment "EXEHDR"
|
||||||
|
|
||||||
|
.word __CODE_LOAD__ ; Start address
|
||||||
|
.word __BSS_LOAD__ - __CODE_LOAD__ ; Size
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Actual code
|
; Actual code
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: start = $00, size = $1A, type = rw, define = yes;
|
ZP: start = $00, size = $1A, type = rw, define = yes;
|
||||||
|
HEADER: start = $0000, size = $4, file = %O;
|
||||||
RAM: start = $800, size = $8E00, file = %O;
|
RAM: start = $800, size = $8E00, file = %O;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
CODE: load = RAM, type = ro;
|
EXEHDR: load = HEADER, type = ro;
|
||||||
|
CODE: load = RAM, type = ro, define = yes;
|
||||||
RODATA: load = RAM, type = ro;
|
RODATA: load = RAM, type = ro;
|
||||||
DATA: load = RAM, type = rw;
|
DATA: load = RAM, type = rw;
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
|
|||||||
Reference in New Issue
Block a user