mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-12 05:24:02 +00:00
ootw: loader: move around to free up some room
This commit is contained in:
parent
ffd36a8dd4
commit
cf0a992d25
12
linker_scripts/apple2_1400.inc
Normal file
12
linker_scripts/apple2_1400.inc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
MEMORY {
|
||||||
|
ZP: start = $00, size = $1A, type = rw;
|
||||||
|
RAM: start = $1400, size = $7E00, file = %O;
|
||||||
|
}
|
||||||
|
|
||||||
|
SEGMENTS {
|
||||||
|
CODE: load = RAM, type = ro, align=$100;
|
||||||
|
RODATA: load = RAM, type = ro;
|
||||||
|
DATA: load = RAM, type = rw;
|
||||||
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
|
}
|
@ -9,7 +9,7 @@ all: ootw.dsk
|
|||||||
|
|
||||||
ootw.dsk: HELLO LOADER INTRO OOTW OOTW_C2 COMPRESS-TEST
|
ootw.dsk: HELLO LOADER INTRO OOTW OOTW_C2 COMPRESS-TEST
|
||||||
$(DOS33) -y ootw.dsk SAVE A HELLO
|
$(DOS33) -y ootw.dsk SAVE A HELLO
|
||||||
$(DOS33) -y ootw.dsk BSAVE -a 0x1800 LOADER
|
$(DOS33) -y ootw.dsk BSAVE -a 0x1400 LOADER
|
||||||
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 INTRO
|
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 INTRO
|
||||||
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 OOTW
|
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 OOTW
|
||||||
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 OOTW_C2
|
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 OOTW_C2
|
||||||
@ -89,7 +89,7 @@ intro.o: intro.s \
|
|||||||
####
|
####
|
||||||
|
|
||||||
LOADER: loader.o
|
LOADER: loader.o
|
||||||
ld65 -o LOADER loader.o -C ../linker_scripts/apple2_1800.inc
|
ld65 -o LOADER loader.o -C ../linker_scripts/apple2_1400.inc
|
||||||
|
|
||||||
loader.o: loader.s
|
loader.o: loader.s
|
||||||
ca65 -o loader.o loader.s -l loader.lst
|
ca65 -o loader.o loader.s -l loader.lst
|
||||||
|
@ -25,12 +25,9 @@ Memory map:
|
|||||||
02-03
|
02-03
|
||||||
04-07 GR page0
|
04-07 GR page0
|
||||||
08-0b GR page1
|
08-0b GR page1
|
||||||
0c-0f offscreen data
|
0c-0f offscreen data ($c00 = disk load buffer)
|
||||||
10-13 offscreen data2
|
10-13 offscreen data2
|
||||||
14-17 *****************free???
|
14-17 loader
|
||||||
18-1c loader
|
18-bf program/data (42k)
|
||||||
1d loader buffer
|
|
||||||
1e-1f *****************free???
|
|
||||||
20-bf program/data (40k)
|
|
||||||
c0-cf I/O
|
c0-cf I/O
|
||||||
d0-ff ROM
|
d0-ff ROM
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
tmptrk = $fe ; temporary copy of current track
|
tmptrk = $fe ; temporary copy of current track
|
||||||
phase = $ff ; current phase for /seek
|
phase = $ff ; current phase for /seek
|
||||||
|
|
||||||
dirbuf = $1d00
|
dirbuf = $c00
|
||||||
;$1e00 ; note, don't put this immediately below
|
; note, don't put this immediately below
|
||||||
; the value being read as destaddr-4
|
; the value being read as destaddr-4
|
||||||
; is temporarily overwritten during read
|
; is temporarily overwritten during read
|
||||||
; process
|
; process
|
||||||
|
Loading…
Reference in New Issue
Block a user