Renamed RAM to MAIN for all disk based targets.
The name RAM doesn't make much sense in general for a memeory area because i.e. the zero page is for sure RAM but is not part of the memory area named RAM. For disk based targets it makes sense to put the disk file more into focus and here MAIN means the main part of the file - in contrast to some header. Only for ROM based targets the name RAM is kept as it makes sense to focus on the difference between RAM and ROM.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
; This header is required for BLL builds.
|
||||
;
|
||||
.import __BSS_LOAD__
|
||||
.import __RAM_START__
|
||||
.import __MAIN_START__
|
||||
.export __BLLHDR__: absolute = 1
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
@@ -12,8 +12,7 @@
|
||||
|
||||
.segment "BLLHDR"
|
||||
.word $0880
|
||||
.dbyt __RAM_START__
|
||||
.dbyt __BSS_LOAD__ - __RAM_START__ + 10
|
||||
.dbyt __MAIN_START__
|
||||
.dbyt __BSS_LOAD__ - __MAIN_START__ + 10
|
||||
.byte $42,$53
|
||||
.byte $39,$33
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
.import zerobss
|
||||
.import callmain
|
||||
.import _main
|
||||
.import __RAM_START__, __RAM_SIZE__, __STACKSIZE__
|
||||
.import __MAIN_START__, __MAIN_SIZE__, __STACKSIZE__
|
||||
|
||||
.include "zeropage.inc"
|
||||
.include "extzp.inc"
|
||||
@@ -79,10 +79,10 @@ MikeyInitData: .byte $9e,$18,$68,$1f,$00,$00,$00,$00,$00,$ff,$1a,$1b,$04,$0d,$2
|
||||
|
||||
; Set up the stack.
|
||||
|
||||
lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
|
||||
lda #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
|
||||
ldx #>(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
|
||||
sta sp
|
||||
lda #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
|
||||
sta sp+1
|
||||
stx sp+1
|
||||
|
||||
; Init Mickey.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
;
|
||||
.include "lynx.inc"
|
||||
.import __STARTOFDIRECTORY__
|
||||
.import __RAM_START__
|
||||
.import __MAIN_START__
|
||||
.import __CODE_SIZE__, __DATA_SIZE__, __RODATA_SIZE__
|
||||
.import __STARTUP_SIZE__, __ONCE_SIZE__, __LOWCODE_SIZE__
|
||||
.import __BLOCKSIZE__
|
||||
@@ -25,6 +25,6 @@ len0 = __STARTUP_SIZE__ + __ONCE_SIZE__ + __CODE_SIZE__ + __DATA_SIZE__ + __RODA
|
||||
.byte <block0
|
||||
.word off0 & (__BLOCKSIZE__ - 1)
|
||||
.byte $88
|
||||
.word __RAM_START__
|
||||
.word __MAIN_START__
|
||||
.word len0
|
||||
__DIRECTORY_END__:
|
||||
|
||||
Reference in New Issue
Block a user