1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00

Added a file header

git-svn-id: svn://svn.cc65.org/cc65/trunk@1332 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-07-05 21:11:16 +00:00
parent 88494bf2e7
commit 750f5e5028
2 changed files with 12 additions and 1 deletions

View File

@ -7,11 +7,20 @@
.export _exit
.import initlib, donelib
.import zerobss, push0
.import __CODE_LOAD__, __BSS_LOAD__ ; Linker generated
.import _main
.include "zeropage.inc"
.include "apple2.inc"
; ------------------------------------------------------------------------
; The executable header
.segment "EXEHDR"
.word __CODE_LOAD__ ; Start address
.word __BSS_LOAD__ - __CODE_LOAD__ ; Size
; ------------------------------------------------------------------------
; Actual code

View File

@ -1,9 +1,11 @@
MEMORY {
ZP: start = $00, size = $1A, type = rw, define = yes;
HEADER: start = $0000, size = $4, file = %O;
RAM: start = $800, size = $8E00, file = %O;
}
SEGMENTS {
CODE: load = RAM, type = ro;
EXEHDR: load = HEADER, type = ro;
CODE: load = RAM, type = ro, define = yes;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
BSS: load = RAM, type = bss, define = yes;