peasant: push qboot stage2 into lores page2 as we won't be using it
This commit is contained in:
parent
b92cac0665
commit
5077f7eddb
|
@ -17,7 +17,7 @@ peasant.dsk: QBOOT QLOAD VID_LOGO TITLE INTRO COPY_CHECK
|
||||||
$(DOS33_RAW) peasant.dsk 1 0 QLOAD 0 0
|
$(DOS33_RAW) peasant.dsk 1 0 QLOAD 0 0
|
||||||
$(DOS33_RAW) peasant.dsk 3 0 VID_LOGO 0 0
|
$(DOS33_RAW) peasant.dsk 3 0 VID_LOGO 0 0
|
||||||
$(DOS33_RAW) peasant.dsk 5 0 TITLE 0 0
|
$(DOS33_RAW) peasant.dsk 5 0 TITLE 0 0
|
||||||
$(DOS33_RAW) peasant.dsk 8 0 INTRO 0 0
|
$(DOS33_RAW) peasant.dsk 8 0 INTRO 0 0
|
||||||
$(DOS33_RAW) peasant.dsk 12 0 COPY_CHECK 0 0
|
$(DOS33_RAW) peasant.dsk 12 0 COPY_CHECK 0 0
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
@ -4,13 +4,12 @@ Memory Map
|
||||||
; notes -- VID_LOGO loads title at $9000 - $AFFF
|
; notes -- VID_LOGO loads title at $9000 - $AFFF
|
||||||
|
|
||||||
$00 Zero Page
|
$00 Zero Page
|
||||||
$01 ???
|
$01 Stack
|
||||||
$02 ???
|
$02 Disk Lookup
|
||||||
$03 ???, IRQ vectors
|
$03 Disk Lookup, IRQ vectors
|
||||||
$04-$07 Text/GR page 1 (not used?)
|
$04-$07 Text/GR page 1 (not used?)
|
||||||
$08-$0B Text/GR page 2 (not used?)
|
$08-$0B Text/GR page 2. $08=boot, $09-$0A = qboot stage2
|
||||||
$0C-$0D ??
|
$0B-$1F QLOAD disk routines and Mockingboard sound routines here
|
||||||
$0E-$1F QLOAD disk routines and Mockingboard sound routines here
|
|
||||||
$20-$3F HGR Page 1
|
$20-$3F HGR Page 1
|
||||||
$40-$5f HGR Page 2
|
$40-$5f HGR Page 2
|
||||||
$60-$?? Programs (roughly 22k available?)
|
$60-$?? Programs (roughly 22k available?)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
; made by hand?
|
; made by hand?
|
||||||
seek = $d26
|
seek = $a26
|
||||||
driveon = $d9D
|
driveon = $a9D
|
||||||
driveoff = $d22
|
driveoff = $a22
|
||||||
load_new = $dAB
|
load_new = $aAB
|
||||||
load_address=$dC4
|
load_address=$aC4
|
||||||
load_track=load_address+1
|
load_track=load_address+1
|
||||||
load_sector=load_address+2
|
load_sector=load_address+2
|
||||||
load_length=load_address+3
|
load_length=load_address+3
|
||||||
|
|
|
@ -40,18 +40,18 @@
|
||||||
.byte 1 ; number of sectors for ROM to load
|
.byte 1 ; number of sectors for ROM to load
|
||||||
|
|
||||||
boot_entry:
|
boot_entry:
|
||||||
; this code loads two sectors up to $C0/$D0
|
; this code loads two sectors up to $09/$0A
|
||||||
|
|
||||||
; assume A=1 coming in here
|
; assume A=1 coming in here
|
||||||
|
|
||||||
lsr ; check sector number
|
lsr ; check sector number
|
||||||
; A=0, carry=1
|
; A=0, carry=1
|
||||||
tay ; Y=0
|
tay ; Y=0
|
||||||
adc #$0B ; A=$C (destintation)
|
adc #$08 ; A=$9 (destintation)
|
||||||
|
|
||||||
sta $27 ; set or update address as needed
|
sta $27 ; set or update address as needed
|
||||||
cmp #$0E
|
cmp #$0B
|
||||||
; so if hit $0e00 we are done
|
; so if hit $0b00 we are done
|
||||||
|
|
||||||
beq done_load_2 ; branch if loaded 2
|
beq done_load_2 ; branch if loaded 2
|
||||||
|
|
||||||
|
@ -234,9 +234,9 @@ end_code:
|
||||||
.res $8fe-*
|
.res $8fe-*
|
||||||
|
|
||||||
; traditionally, entry point to jump to at end of loading
|
; traditionally, entry point to jump to at end of loading
|
||||||
; $c00 in this case
|
; $900 in this case
|
||||||
;*=$8fe
|
;*=$8fe
|
||||||
.byte $C, $00
|
.byte $9, $00
|
||||||
|
|
||||||
|
|
||||||
.include "qboot_stage2.s"
|
.include "qboot_stage2.s"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
WAIT = $FCA8 ;; delay 1/2(26+27A+5A^2) us
|
WAIT = $FCA8 ;; delay 1/2(26+27A+5A^2) us
|
||||||
|
|
||||||
.org $c00
|
.org $900
|
||||||
|
|
||||||
code_begin:
|
code_begin:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ MEMORY {
|
||||||
}
|
}
|
||||||
|
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
CODE: load = RAM, type = ro;
|
CODE: load = RAM, type = ro, align = $100;
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue