mirror of
https://github.com/a2-4am/passport.git
synced 2025-01-03 08:33:18 +00:00
Merge pull request #56 from peterferrie/master
merge MECC variant IDs into single int
This commit is contained in:
commit
75080ec675
@ -48,6 +48,11 @@
|
|||||||
; instead of falling back to built-in RWTS
|
; instead of falling back to built-in RWTS
|
||||||
; compile-time flag, no way to change at runtime
|
; compile-time flag, no way to change at runtime
|
||||||
|
|
||||||
|
;gMECCFastloadType
|
||||||
|
!byte 00 ; int
|
||||||
|
; reset before each operation
|
||||||
|
; set in IDBootloader() after reading T00,S00
|
||||||
|
|
||||||
FIRSTFILTER
|
FIRSTFILTER
|
||||||
;gIsDavidson
|
;gIsDavidson
|
||||||
!byte FALSE ; 0=true, 1=false
|
!byte FALSE ; 0=true, 1=false
|
||||||
@ -114,26 +119,6 @@ FIRSTFILTER
|
|||||||
!byte FALSE ; 0=true, 1=false
|
!byte FALSE ; 0=true, 1=false
|
||||||
; reset before each operation
|
; reset before each operation
|
||||||
; set in IDBootloader() after reading T00,S00
|
; set in IDBootloader() after reading T00,S00
|
||||||
;gIsMECC4
|
|
||||||
!byte FALSE ; 0=true, 1=false
|
|
||||||
; reset before each operation
|
|
||||||
; set in IDBootloader() after reading T00,S00
|
|
||||||
;gIsMECC3
|
|
||||||
!byte FALSE ; 0=true, 1=false
|
|
||||||
; reset before each operation
|
|
||||||
; set in IDBootloader() after reading T00,S00
|
|
||||||
;gIsMECC2
|
|
||||||
!byte FALSE ; 0=true, 1=false
|
|
||||||
; reset before each operation
|
|
||||||
; set in IDBootloader() after reading T00,S00
|
|
||||||
;gIsMECC1
|
|
||||||
!byte FALSE ; 0=true, 1=false
|
|
||||||
; reset before each operation
|
|
||||||
; set in IDBootloader() after reading T00,S00
|
|
||||||
;gIsMECCFastloader
|
|
||||||
!byte FALSE ; 0=true, 1=false
|
|
||||||
; reset before each operation
|
|
||||||
; set in IDBootloader() after reading T00,S00
|
|
||||||
;gIsOptimum
|
;gIsOptimum
|
||||||
!byte FALSE ; 0=true, 1=false
|
!byte FALSE ; 0=true, 1=false
|
||||||
; reset before each operation
|
; reset before each operation
|
||||||
|
@ -11,6 +11,16 @@ ID_DOS33p = $00
|
|||||||
ID_DOS32 = $01
|
ID_DOS32 = $01
|
||||||
ID_DOS32LO = $02
|
ID_DOS32LO = $02
|
||||||
|
|
||||||
|
;-------------------------------
|
||||||
|
;MECC fast-load variants
|
||||||
|
;-------------------------------
|
||||||
|
|
||||||
|
ID_MECC1 = $01
|
||||||
|
ID_MECC2 = $02
|
||||||
|
ID_MECC3 = $03
|
||||||
|
ID_MECC4 = $04
|
||||||
|
ID_MECC_UNK = $FF
|
||||||
|
|
||||||
; Zero-page addresses we use for variables
|
; Zero-page addresses we use for variables
|
||||||
nibsrcindex = $EC ; byte
|
nibsrcindex = $EC ; byte
|
||||||
nibdestindex = $ED ; byte
|
nibdestindex = $ED ; byte
|
||||||
@ -70,12 +80,7 @@ gIsDavidDOS = gIsProtDOS-$01 ; byte
|
|||||||
gIsEA = gIsDavidDOS-$01 ; byte
|
gIsEA = gIsDavidDOS-$01 ; byte
|
||||||
gPossibleGamco = gIsEA-$01 ; byte
|
gPossibleGamco = gIsEA-$01 ; byte
|
||||||
gIsOptimum = gPossibleGamco-$01 ; byte
|
gIsOptimum = gPossibleGamco-$01 ; byte
|
||||||
gIsMECCFastloader = gIsOptimum-$01 ; byte
|
gPossibleD5D5F7 = gIsOptimum-$01 ; byte
|
||||||
gIsMECC1 = gIsMECCFastloader-$01 ; byte
|
|
||||||
gIsMECC2 = gIsMECC1-$01 ; byte
|
|
||||||
gIsMECC3 = gIsMECC2-$01 ; byte
|
|
||||||
gIsMECC4 = gIsMECC3-$01 ; byte
|
|
||||||
gPossibleD5D5F7 = gIsMECC4-$01 ; byte
|
|
||||||
gIs8b3 = gPossibleD5D5F7-$01 ; byte
|
gIs8b3 = gPossibleD5D5F7-$01 ; byte
|
||||||
gIsMilliken1 = gIs8b3-$01 ; byte
|
gIsMilliken1 = gIs8b3-$01 ; byte
|
||||||
gAdventureInternational = gIsMilliken1-$01 ; byte
|
gAdventureInternational = gIsMilliken1-$01 ; byte
|
||||||
@ -91,8 +96,10 @@ gIsAdvent = gForceDiskVol-$01 ; byte
|
|||||||
gIsPanglosDOS = gIsAdvent-$01 ; byte
|
gIsPanglosDOS = gIsAdvent-$01 ; byte
|
||||||
gIsDavidson = gIsPanglosDOS-$01 ; byte
|
gIsDavidson = gIsPanglosDOS-$01 ; byte
|
||||||
;LASTFILTER ; add new gIs* above this line
|
;LASTFILTER ; add new gIs* above this line
|
||||||
|
;gMECCFastloadType is a special case integer whose default value cannot be #FALSE
|
||||||
|
gMECCFastloadType = gIsDavidson-$01 ; byte
|
||||||
|
|
||||||
gOnAClearDayYouCanReadForever = gIsDavidson-$01 ; byte
|
gOnAClearDayYouCanReadForever = gMECCFastloadType-$01 ; byte
|
||||||
gUsingRAMDisk = gOnAClearDayYouCanReadForever-$01 ; byte
|
gUsingRAMDisk = gOnAClearDayYouCanReadForever-$01 ; byte
|
||||||
gRAMDiskRef = gUsingRAMDisk-$01 ; byte
|
gRAMDiskRef = gUsingRAMDisk-$01 ; byte
|
||||||
gDisplayBytes = gRAMDiskRef-$0A ; 10 bytes
|
gDisplayBytes = gRAMDiskRef-$0A ; 10 bytes
|
||||||
@ -141,11 +148,7 @@ ConstructStandardDelivery = jConstructStandardDelivery
|
|||||||
!warn "gIsEA=",gIsEA
|
!warn "gIsEA=",gIsEA
|
||||||
!warn "gPossibleGamco=",gPossibleGamco
|
!warn "gPossibleGamco=",gPossibleGamco
|
||||||
!warn "gIsOptimum=",gIsOptimum
|
!warn "gIsOptimum=",gIsOptimum
|
||||||
!warn "gIsMECCFastloader=",gIsMECCFastloader
|
!warn "gMECCFastloadType=",gMECCFastloadType
|
||||||
!warn "gIsMECC1=",gIsMECC1
|
|
||||||
!warn "gIsMECC2=",gIsMECC2
|
|
||||||
!warn "gIsMECC3=",gIsMECC3
|
|
||||||
!warn "gIsMECC4=",gIsMECC4
|
|
||||||
!warn "gPossibleD5D5F7=",gPossibleD5D5F7
|
!warn "gPossibleD5D5F7=",gPossibleD5D5F7
|
||||||
!warn "gIs8b3=",gIs8b3
|
!warn "gIs8b3=",gIs8b3
|
||||||
!warn "gIsMilliken1=",gIsMilliken1
|
!warn "gIsMilliken1=",gIsMilliken1
|
||||||
|
@ -16,6 +16,7 @@ IDBootloader
|
|||||||
- sta FIRSTFILTER-1,x
|
- sta FIRSTFILTER-1,x
|
||||||
dex
|
dex
|
||||||
bne -
|
bne -
|
||||||
|
stx gMECCFastloadType
|
||||||
stx gLastTrack
|
stx gLastTrack
|
||||||
;
|
;
|
||||||
; Quick sanity check -- only recognized values for $0800
|
; Quick sanity check -- only recognized values for $0800
|
||||||
@ -82,31 +83,31 @@ IDBootloader
|
|||||||
;
|
;
|
||||||
+ jsr IDMECC
|
+ jsr IDMECC
|
||||||
bcs .notmecc
|
bcs .notmecc
|
||||||
lda #TRUE
|
lda #ID_MECC_UNK
|
||||||
sta gIsMECCFastloader
|
sta gMECCFastloadType
|
||||||
lda #s_mecc
|
lda #s_mecc
|
||||||
jsr PrintByID
|
jsr PrintByID
|
||||||
jsr PrereadT00
|
jsr PrereadT00
|
||||||
bcs .notmecc
|
bcs .notmecc
|
||||||
jsr IDMECC1
|
jsr IDMECC1
|
||||||
bcs +
|
bcs +
|
||||||
lda #TRUE
|
lda #ID_MECC1
|
||||||
sta gIsMECC1
|
sta gMECCFastloadType
|
||||||
jmp foundmecc1
|
jmp foundmecc1
|
||||||
+ jsr IDMECC2
|
+ jsr IDMECC2
|
||||||
bcs +
|
bcs +
|
||||||
lda #TRUE
|
lda #ID_MECC2
|
||||||
sta gIsMECC2
|
sta gMECCFastloadType
|
||||||
jmp foundmecc2
|
jmp foundmecc2
|
||||||
+ jsr IDMECC3
|
+ jsr IDMECC3
|
||||||
bcs +
|
bcs +
|
||||||
lda #TRUE
|
lda #ID_MECC3
|
||||||
sta gIsMECC3
|
sta gMECCFastloadType
|
||||||
jmp foundmecc3
|
jmp foundmecc3
|
||||||
+ jsr IDMECC4
|
+ jsr IDMECC4
|
||||||
bcs .notmecc
|
bcs .notmecc
|
||||||
lda #TRUE
|
lda #ID_MECC4
|
||||||
sta gIsMECC4
|
sta gMECCFastloadType
|
||||||
jmp foundmecc4
|
jmp foundmecc4
|
||||||
.notmecc
|
.notmecc
|
||||||
;
|
;
|
||||||
|
@ -762,7 +762,7 @@ _applyToAll
|
|||||||
!source "patchers/bbf9.a" ; gIsProDOS only
|
!source "patchers/bbf9.a" ; gIsProDOS only
|
||||||
!source "patchers/memory.config.a" ; gIsProDOS only
|
!source "patchers/memory.config.a" ; gIsProDOS only
|
||||||
!source "patchers/origin.a" ; gIsProDOS only
|
!source "patchers/origin.a" ; gIsProDOS only
|
||||||
!source "patchers/rwtsswapmecc.a" ; gIsMECCFastloader only
|
!source "patchers/rwtsswapmecc.a" ; gMECCFastloadType only
|
||||||
!source "patchers/protecteddos.a" ; gIsProtDOS only
|
!source "patchers/protecteddos.a" ; gIsProtDOS only
|
||||||
!source "patchers/fbff.a"
|
!source "patchers/fbff.a"
|
||||||
!source "patchers/fbffencrypted.a" ; gIsProDOS only
|
!source "patchers/fbffencrypted.a" ; gIsProDOS only
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
; e.g. Word Munchers
|
; e.g. Word Munchers
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
!zone {
|
!zone {
|
||||||
lda gIsMECCFastloader
|
lda gMECCFastloadType
|
||||||
ora gIsMECC1
|
cmp #ID_MECC1
|
||||||
bne .exit
|
bne .exit
|
||||||
lda #$0B
|
lda #$0B
|
||||||
ldx #$08
|
ldx #$08
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
; e.g. Phonics Prime Time series
|
; e.g. Phonics Prime Time series
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
!zone {
|
!zone {
|
||||||
lda gIsMECCFastloader
|
lda gMECCFastloadType
|
||||||
ora gIsMECC2
|
cmp #ID_MECC2
|
||||||
bne .exit
|
bne .exit
|
||||||
lda #$07
|
lda #$07
|
||||||
ldx #$83
|
ldx #$83
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
; e.g. Word Munchers v1.1
|
; e.g. Word Munchers v1.1
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
!zone {
|
!zone {
|
||||||
lda gIsMECCFastloader
|
lda gMECCFastloadType
|
||||||
ora gIsMECC3
|
cmp #ID_MECC3
|
||||||
bne .exit
|
bne .exit
|
||||||
lda #$0A
|
lda #$0A
|
||||||
ldx #$E8
|
ldx #$E8
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
; e.g. A-201 Conquering Whole Numbers
|
; e.g. A-201 Conquering Whole Numbers
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
!zone {
|
!zone {
|
||||||
lda gIsMECCFastloader
|
lda gMECCFastloadType
|
||||||
ora gIsMECC4
|
cmp #ID_MECC4
|
||||||
bne .exit
|
bne .exit
|
||||||
lda #$08
|
lda #$08
|
||||||
ldx #$83
|
ldx #$83
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
; fastloader disks
|
; fastloader disks
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
!zone {
|
!zone {
|
||||||
lda gIsMECCFastloader
|
lda gMECCFastloadType
|
||||||
bne .exit
|
beq .exit
|
||||||
|
|
||||||
ldy #$11
|
ldy #$11
|
||||||
jsr SearchTrack
|
jsr SearchTrack
|
||||||
|
@ -144,7 +144,7 @@ StringTable
|
|||||||
; can be set directly before calling PrintByID.
|
; can be set directly before calling PrintByID.
|
||||||
;
|
;
|
||||||
.header
|
.header
|
||||||
!text "Passport by 4am 2018-06-21",$00
|
!text "Passport by 4am 2018-07-03",$00
|
||||||
.mainmenu
|
.mainmenu
|
||||||
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
|
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
|
||||||
!text " "
|
!text " "
|
||||||
|
Loading…
Reference in New Issue
Block a user