mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Fix tape header output. Add version info in the header. By Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4984 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c7528d6e3e
commit
ccd1f5fcd7
@ -30,7 +30,10 @@
|
|||||||
.dbyt __BSS_LOAD__ ; $2AB
|
.dbyt __BSS_LOAD__ ; $2AB
|
||||||
.dbyt __RAM_START__ ; $2A9
|
.dbyt __RAM_START__ ; $2A9
|
||||||
.byte $00 ; $2A8
|
.byte $00 ; $2A8
|
||||||
.byte $00 ; Zero terminated name
|
.byte ((.VERSION >> 8) & $0F) + '0'
|
||||||
|
.byte ((.VERSION >> 4) & $0F) + '0'
|
||||||
|
.byte (.VERSION & $0F) + '0'
|
||||||
|
.byte $00 ; Zero terminated compiler version
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Place the startup code in a special segment.
|
; Place the startup code in a special segment.
|
||||||
@ -59,7 +62,7 @@ L1: lda sp,x
|
|||||||
; Save system stuff and setup the stack
|
; Save system stuff and setup the stack
|
||||||
|
|
||||||
tsx
|
tsx
|
||||||
stx spsave ; save system stk ptr
|
stx spsave ; Save system stk ptr
|
||||||
|
|
||||||
lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
|
lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
|
||||||
sta sp
|
sta sp
|
||||||
@ -107,5 +110,3 @@ zpsave: .res zpspace
|
|||||||
.bss
|
.bss
|
||||||
spsave: .res 1
|
spsave: .res 1
|
||||||
stsave: .res 1
|
stsave: .res 1
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ SYMBOLS {
|
|||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: file = "", define = yes, start = $00E2, size = $001A;
|
ZP: file = "", define = yes, start = $00E2, size = $001A;
|
||||||
TAPEHDR: file = %O, type = ro, start = $0000, size = $000E;
|
TAPEHDR: file = %O, type = ro, start = $0000, size = $0011;
|
||||||
RAM: file = %O, define = yes, start = $0500, size = $9300 - __STACKSIZE__;
|
RAM: file = %O, define = yes, start = $0500, size = $9300 - __STACKSIZE__;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
@ -14,8 +14,8 @@ SEGMENTS {
|
|||||||
CODE: load = RAM, type = ro;
|
CODE: load = RAM, type = ro;
|
||||||
RODATA: load = RAM, type = ro;
|
RODATA: load = RAM, type = ro;
|
||||||
DATA: load = RAM, type = rw;
|
DATA: load = RAM, type = rw;
|
||||||
ZPSAVE: load = RAM, type = bss;
|
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
|
ZPSAVE: load = RAM, type = bss;
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
}
|
}
|
||||||
FEATURES {
|
FEATURES {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user