mirror of
https://github.com/a2-4am/passport.git
synced 2025-08-09 07:25:06 +00:00
shave some bytes
This commit is contained in:
@@ -50,10 +50,9 @@ AnalyzeT00
|
|||||||
!source "../patchers/t00_datasoft2.a" ; in A=0A,X=3A,Y=06; out A=01,X=48,Y=02
|
!source "../patchers/t00_datasoft2.a" ; in A=0A,X=3A,Y=06; out A=01,X=48,Y=02
|
||||||
!source "../patchers/t00_jmpb500.a"
|
!source "../patchers/t00_jmpb500.a"
|
||||||
|
|
||||||
!source "../patchers/t00_jmpb660.a" ; in A=02,X=F6,Y=03; out A=02,X=F6,Y=03
|
!source "../patchers/t00_earthware.a" ; out A=02,X=F6,Y=03
|
||||||
!source "../patchers/t00_earthware.a" ; in A=02,X=F6,Y=03; out A=02,X=F6,Y=03
|
!source "../patchers/t00_jmpb660.a" ; in A=02,X=F6,Y=03
|
||||||
|
|
||||||
!source "../patchers/t00_jmpb720.a"
|
|
||||||
!source "../patchers/t00_jmpbbfe.a"
|
!source "../patchers/t00_jmpbbfe.a"
|
||||||
!source "../patchers/t00_jmpbcf0.a"
|
!source "../patchers/t00_jmpbcf0.a"
|
||||||
!source "../patchers/t00_jmpbeb1.a"
|
!source "../patchers/t00_jmpbeb1.a"
|
||||||
|
@@ -458,8 +458,8 @@ _byte_hi = * + 2
|
|||||||
_byte_skip_hi:
|
_byte_skip_hi:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
!source "wholetrack.a"
|
|
||||||
!source "id/bootfailure.a"
|
!source "id/bootfailure.a"
|
||||||
|
!source "wholetrack.a"
|
||||||
!source "apicode.a" ; /!\ must be last
|
!source "apicode.a" ; /!\ must be last
|
||||||
|
|
||||||
!if RELBASE = $2000 {
|
!if RELBASE = $2000 {
|
||||||
|
@@ -4,7 +4,8 @@
|
|||||||
; timing bits for DOS sectors but
|
; timing bits for DOS sectors but
|
||||||
; not others
|
; not others
|
||||||
;
|
;
|
||||||
; in: A=02,X=F6,Y=03
|
; in: gTrack = 0
|
||||||
|
; Caller found DOS 3.3 RWTS
|
||||||
; out: A=02,X=F6,Y=03
|
; out: A=02,X=F6,Y=03
|
||||||
;
|
;
|
||||||
; tested on
|
; tested on
|
||||||
@@ -13,9 +14,9 @@
|
|||||||
; - Star Search (Earthware Computer Services)
|
; - Star Search (Earthware Computer Services)
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
EARTHWARE
|
EARTHWARE
|
||||||
; gTrack = 0
|
lda #$02
|
||||||
; Caller found DOS 3.3 RWTS
|
ldx #$F6
|
||||||
|
ldy #$03
|
||||||
jsr compare
|
jsr compare
|
||||||
!byte $4C,$89,$B6
|
!byte $4C,$89,$B6
|
||||||
bcs @exit ; passport-test-suite/Zoo Master.woz [C=0] here
|
bcs @exit ; passport-test-suite/Zoo Master.woz [C=0] here
|
||||||
|
@@ -1,28 +1,37 @@
|
|||||||
;-------------------------------
|
;-------------------------------
|
||||||
; #JMPB660
|
; #JMPB660
|
||||||
; RWTS jumps to $B660 instead of
|
; RWTS jumps to $B660 for check for timing bits
|
||||||
; checking third data prologue
|
|
||||||
;
|
;
|
||||||
; in: gTrack = 0
|
; in: gTrack = 0
|
||||||
; Caller found DOS 3.3 RWTS
|
; Caller found DOS 3.3 RWTS
|
||||||
; out: A=02,X=F6,Y=03
|
; A=02,X=F6,Y=03
|
||||||
;
|
;
|
||||||
; e.g. Analogies Tutorial, Verb Viper
|
; e.g. Analogies Tutorial, Verb Viper
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
!zone {
|
T00_JMPB660
|
||||||
_jmpb660
|
;
|
||||||
; gTrack = 0
|
; RWTS jumps to $B660 instead of
|
||||||
; Caller found DOS 3.3 RWTS
|
; checking third data prologue
|
||||||
|
;
|
||||||
lda #$02
|
|
||||||
ldx #$F6
|
|
||||||
ldy #$03
|
|
||||||
jsr compare ; if T00,S02,$F6 ==
|
jsr compare ; if T00,S02,$F6 ==
|
||||||
!byte $4C,$60,$B6
|
!byte $4C,$60,$B6
|
||||||
bcs .exit ; passport-test-suite/Analogies Tutorial.woz [C=0] matches
|
bcs + ; passport-test-suite/Analogies Tutorial.woz [C=0] matches
|
||||||
jsr PrintByID
|
jsr PrintByID
|
||||||
!byte s_jmpb660
|
!byte s_jmpb660
|
||||||
jsr modify ; then set T00,S02,$F6 =
|
jsr modify ; then set T00,S02,$F6 =
|
||||||
!byte $BD,$8C,$C0
|
!byte $BD,$8C,$C0
|
||||||
.exit
|
;
|
||||||
}
|
; RWTS swapper forcibly reinstalls a jump to $B720 instead of writing
|
||||||
|
; the third data prologue
|
||||||
|
;
|
||||||
|
lda #$0B
|
||||||
|
ldx #$08
|
||||||
|
ldy #$06
|
||||||
|
jsr compare ; and T00,S0B,$08 ==
|
||||||
|
!byte $4C,$20,$B7
|
||||||
|
!byte $4C,$0E,$A9
|
||||||
|
bcs + ; passport-test-suite/Analogies Tutorial.woz [C=0] matches
|
||||||
|
jsr modify ; then set T00,S0B,$08 =
|
||||||
|
!byte $BD,$8C,$C0
|
||||||
|
!byte $20,$B8,$B8
|
||||||
|
+
|
||||||
|
@@ -1,33 +0,0 @@
|
|||||||
;-------------------------------
|
|
||||||
; #JMPB720
|
|
||||||
; RWTS swapper forcibly reinstalls
|
|
||||||
; a jump to $B720 instead of writing
|
|
||||||
; third data prologue
|
|
||||||
; e.g. Analogies Tutorial, Verb Viper
|
|
||||||
;-------------------------------
|
|
||||||
!zone {
|
|
||||||
_jmpb720
|
|
||||||
; gTrack = 0
|
|
||||||
; Caller found DOS 3.3 RWTS
|
|
||||||
|
|
||||||
lda #$0B
|
|
||||||
ldx #$08
|
|
||||||
ldy #$18
|
|
||||||
jsr compare ; and T00,S0B,$08 ==
|
|
||||||
!byte $4C,$20,$B7
|
|
||||||
!byte $4C,$0E,$A9
|
|
||||||
!byte $A2,$02
|
|
||||||
!byte $BD,$0B,$B7
|
|
||||||
!byte $9D,$5E,$B8
|
|
||||||
!byte $BD,$08,$B7
|
|
||||||
!byte $9D,$F6,$B8
|
|
||||||
!byte $CA
|
|
||||||
!byte $10,$F1
|
|
||||||
!byte $60
|
|
||||||
bcs .exit ; passport-test-suite/Analogies Tutorial.woz [C=0] matches
|
|
||||||
ldy #$06
|
|
||||||
jsr modify ; then set T00,S0B,$08 =
|
|
||||||
!byte $BD,$8C,$C0
|
|
||||||
!byte $20,$B8,$B8
|
|
||||||
.exit
|
|
||||||
}
|
|
Reference in New Issue
Block a user