mirror of
https://github.com/a2-4am/4cade.git
synced 2025-08-11 15:25:05 +00:00
Merge branch 'master' of https://github.com/a2-4am/4cade
This commit is contained in:
@@ -33,10 +33,8 @@ Main
|
|||||||
bpl -
|
bpl -
|
||||||
inx
|
inx
|
||||||
stx $3F2 ; set up reset vectors
|
stx $3F2 ; set up reset vectors
|
||||||
stx $FFFC
|
|
||||||
inx
|
inx
|
||||||
stx $3F3
|
stx $3F3
|
||||||
stx $FFFD
|
|
||||||
txa
|
txa
|
||||||
eor #$A5
|
eor #$A5
|
||||||
sta $3F4
|
sta $3F4
|
||||||
@@ -83,6 +81,9 @@ Mode
|
|||||||
!source "src/ui.font.a"
|
!source "src/ui.font.a"
|
||||||
gGlobalPrefsStore
|
gGlobalPrefsStore
|
||||||
!word $D000 ; address of first okvs store
|
!word $D000 ; address of first okvs store
|
||||||
|
!word Reenter ; NMI vector ($FFFA-B)
|
||||||
|
!word Reenter ; reset vector ($FFFC-D)
|
||||||
|
!word Reenter ; IRQ vector ($FFFE-F)
|
||||||
}
|
}
|
||||||
LastMover
|
LastMover
|
||||||
!source "src/ui.font.data.a"
|
!source "src/ui.font.data.a"
|
||||||
@@ -90,6 +91,6 @@ LastMover
|
|||||||
!ifdef PASS2 {
|
!ifdef PASS2 {
|
||||||
} else { ;PASS2
|
} else { ;PASS2
|
||||||
!set PASS2=1
|
!set PASS2=1
|
||||||
!warn "RELBASE = ", $FFFC - (LastMover - FirstMover)
|
!warn "RELBASE = ", $10000 - (LastMover - FirstMover)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -28,14 +28,13 @@
|
|||||||
|
|
||||||
+READ_ROM_WRITE_RAM2
|
+READ_ROM_WRITE_RAM2
|
||||||
jsr init ; initialize and relocate ProRWTS2 to $D400 in RAM bank 2
|
jsr init ; initialize and relocate ProRWTS2 to $D400 in RAM bank 2
|
||||||
|
; ProRWTS2 disk-data live at $D000-D3FF
|
||||||
ldx #$00 ; relocate program code to top of language card
|
ldx #$00 ; relocate program code to top of language card
|
||||||
@FM lda FirstMover,x
|
; since we end at $0000 now, adjust low offset to avoid destroying zpage
|
||||||
sta RELBASE,x
|
@FM lda FirstMover - (RELBASE & $FF),x
|
||||||
|
sta RELBASE & $FF00,x
|
||||||
inx
|
inx
|
||||||
bne @FM
|
bne @FM
|
||||||
lda @FM+2
|
|
||||||
cmp #>LastMover
|
|
||||||
bcs +
|
|
||||||
inc @FM+2
|
inc @FM+2
|
||||||
inc @FM+5
|
inc @FM+5
|
||||||
bne @FM
|
bne @FM
|
||||||
|
Reference in New Issue
Block a user