mirror of
https://github.com/Pecusx/jataricart.git
synced 2026-05-20 22:33:22 +02:00
fixed checking (when OPTION pressed)
This commit is contained in:
+21
-12
@@ -35,12 +35,12 @@ _DEST equ $A000
|
|||||||
; test code
|
; test code
|
||||||
org $2000
|
org $2000
|
||||||
FINISH_PROCESS_JMP
|
FINISH_PROCESS_JMP
|
||||||
.print "#define FINISH_PROCESS_JMP 0x",*-$2000+6
|
.print "#define FINISH_PROCESS_JMP 0x",*
|
||||||
jmp FINISH_PROCESS
|
jmp FINISH_PROCESS
|
||||||
MAIN_PROCESS_JMP
|
MAIN_PROCESS_JMP
|
||||||
.print "#define MAIN_PROCESS_JMP 0x",*-$2000+6
|
.print "#define MAIN_PROCESS_JMP 0x",*
|
||||||
jmp MAIN_PROCESS
|
jmp MAIN_PROCESS
|
||||||
.print "#define STARTFLASHWRITE 0x",*-$2000+6
|
.print "#define STARTFLASHWRITE 0x",*
|
||||||
STARTFLASHWRITE
|
STARTFLASHWRITE
|
||||||
mva #$A0 106
|
mva #$A0 106
|
||||||
jsr opened
|
jsr opened
|
||||||
@@ -183,15 +183,22 @@ FORMAT
|
|||||||
jsr flashformatchip1
|
jsr flashformatchip1
|
||||||
bcs formatfailed
|
bcs formatfailed
|
||||||
jsr flashend ; restores display etc. preserves all
|
jsr flashend ; restores display etc. preserves all
|
||||||
|
.print "#define TWO_CHIPS_SWITCH 0x",*-$2000+6+1
|
||||||
|
.print "#define TWO_CHIPS_SWITCH_ADDR 0x",*+1
|
||||||
.if .def TWOCHIPS
|
.if .def TWOCHIPS
|
||||||
|
lda #1
|
||||||
|
.else
|
||||||
|
lda #0
|
||||||
|
.endif
|
||||||
|
beq ?exit2
|
||||||
jsr printdone
|
jsr printdone
|
||||||
jsr printformatting
|
jsr printformatting
|
||||||
jsr print
|
jsr print
|
||||||
dta c'2...',0
|
dta c'2...',0
|
||||||
jsr flashformatchip2
|
jsr flashformatchip2
|
||||||
bcs formatfailed
|
bcs formatfailed
|
||||||
|
?exit2
|
||||||
jsr flashend ; restores display etc. preserves all
|
jsr flashend ; restores display etc. preserves all
|
||||||
.endif
|
|
||||||
printdone jsr print
|
printdone jsr print
|
||||||
dta c'done:)',$9b,0
|
dta c'done:)',$9b,0
|
||||||
jmp eraseSRC_FF
|
jmp eraseSRC_FF
|
||||||
@@ -212,6 +219,7 @@ VERIFYREPAIR
|
|||||||
CHECKONLY
|
CHECKONLY
|
||||||
jsr print
|
jsr print
|
||||||
dta c'Compare.',$9b,0
|
dta c'Compare.',$9b,0
|
||||||
|
jsr eraseSRC_FF
|
||||||
rts
|
rts
|
||||||
|
|
||||||
t_vendor .byte 0
|
t_vendor .byte 0
|
||||||
@@ -243,10 +251,8 @@ CHECK
|
|||||||
jsr GetBankNumToX
|
jsr GetBankNumToX
|
||||||
sta $d500,x
|
sta $d500,x
|
||||||
checkloop
|
checkloop
|
||||||
_csrc equ * + 1
|
lda _csrc:$6000 ; src
|
||||||
lda $6000 ; src
|
cmp _cdst:$A000 ; dst
|
||||||
_cdst equ * + 1
|
|
||||||
cmp $A000 ; dst
|
|
||||||
beq _byte_ok
|
beq _byte_ok
|
||||||
lda _csrc
|
lda _csrc
|
||||||
ldx _csrc+1
|
ldx _csrc+1
|
||||||
@@ -278,10 +284,12 @@ _byte_ok
|
|||||||
req
|
req
|
||||||
|
|
||||||
jsr printnl
|
jsr printnl
|
||||||
|
jsr eraseSRC_FF
|
||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
_all_bytes_ok
|
_all_bytes_ok
|
||||||
jsr cartoff_and_accept_bank_change
|
jsr cartoff_and_accept_bank_change
|
||||||
|
jsr eraseSRC_FF
|
||||||
cli
|
cli
|
||||||
lda #'o'
|
lda #'o'
|
||||||
jsr outchar
|
jsr outchar
|
||||||
@@ -299,15 +307,16 @@ accept_bank_change
|
|||||||
|
|
||||||
eraseSRC_FF
|
eraseSRC_FF
|
||||||
mwa #_SOURCE e_csrc
|
mwa #_SOURCE e_csrc
|
||||||
|
e_loop_init
|
||||||
lda #$FF
|
lda #$FF
|
||||||
e_loop
|
e_loop
|
||||||
sta e_csrc:$6000 ; src
|
sta e_csrc:$ffff ; src
|
||||||
inc e_csrc
|
inc e_csrc
|
||||||
bne e_loop
|
bne e_loop
|
||||||
inc e_csrc+1
|
inc e_csrc+1
|
||||||
lda e_csrc+1
|
lda e_csrc+1
|
||||||
cmp #>_SOURCE+$20
|
cmp #>_SOURCE+$20
|
||||||
bne e_loop
|
bne e_loop_init
|
||||||
rts
|
rts
|
||||||
|
|
||||||
VERIFY
|
VERIFY
|
||||||
@@ -478,7 +487,7 @@ badcompare_tmp2 equ * +1
|
|||||||
jsr printnl
|
jsr printnl
|
||||||
@ inw badcompare_counter
|
@ inw badcompare_counter
|
||||||
sec
|
sec
|
||||||
jmp dmaon
|
jmp dmaon ; rts inside dmaon
|
||||||
; -------
|
; -------
|
||||||
icl 'flashwritelib.asx'
|
icl 'flashwritelib.asx'
|
||||||
icl 'crc16_v2.asm'
|
icl 'crc16_v2.asm'
|
||||||
@@ -526,4 +535,4 @@ GetBankNumToX
|
|||||||
CUSTOM_CART_LAYOUT
|
CUSTOM_CART_LAYOUT
|
||||||
.endif
|
.endif
|
||||||
org $2e2
|
org $2e2
|
||||||
dta a(FINISH_PROCESS)
|
dta a(FINISH_PROCESS_JMP)
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ flashsectorformatgood
|
|||||||
sta colbaks
|
sta colbaks
|
||||||
sta colbak
|
sta colbak
|
||||||
.if (FRAME_FEEDBACK&2)==2
|
.if (FRAME_FEEDBACK&2)==2
|
||||||
lda #34
|
lda #34 ; ???
|
||||||
sta sdmctl
|
sta sdmctl
|
||||||
sta dmactl
|
sta dmactl
|
||||||
.endif
|
.endif
|
||||||
@@ -392,9 +392,8 @@ flashprocessbyte
|
|||||||
; y - byteop for cpu to do with byte
|
; y - byteop for cpu to do with byte
|
||||||
; flashaddr - stored address
|
; flashaddr - stored address
|
||||||
sty flashbyteop
|
sty flashbyteop
|
||||||
flashaddr equ *+1
|
|
||||||
flashbyteop
|
flashbyteop
|
||||||
sta $aaaa
|
sta flashaddr:$aaaa
|
||||||
rts
|
rts
|
||||||
|
|
||||||
flashend
|
flashend
|
||||||
|
|||||||
Reference in New Issue
Block a user