mirror of
https://github.com/david-schmidt/FocusDrive3.git
synced 2024-06-10 06:29:34 +00:00
Clean up initialization a bit
This commit is contained in:
parent
b4d899a566
commit
5699c3146c
13
.gitignore
vendored
13
.gitignore
vendored
|
@ -1,2 +1,13 @@
|
||||||
/.project
|
# Mac
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# Eclipse
|
||||||
|
.settings/
|
||||||
|
.classpath
|
||||||
|
.cache*
|
||||||
|
.project
|
||||||
|
bin/
|
||||||
/out/
|
/out/
|
||||||
|
|
|
@ -413,7 +413,10 @@ CheckSig: lda #$08 ; Prepare MSlot16 slot address calculation
|
||||||
jsr InitDrive ; Hit the hardware, load up defaults
|
jsr InitDrive ; Hit the hardware, load up defaults
|
||||||
bcs NoDevice
|
bcs NoDevice
|
||||||
DInitDone:
|
DInitDone:
|
||||||
clc
|
lda CardIsOK ; Did we previously find a card?
|
||||||
|
bne :+
|
||||||
|
jmp NoDevice ; If not... then bail
|
||||||
|
: clc
|
||||||
rts
|
rts
|
||||||
|
|
||||||
;
|
;
|
||||||
|
@ -773,8 +776,8 @@ PartStart:
|
||||||
ldy #$03 ; Kill File system ID, end of part
|
ldy #$03 ; Kill File system ID, end of part
|
||||||
jsr KillYWords ; (Part*0x10)+0x2a..0x2f killed
|
jsr KillYWords ; (Part*0x10)+0x2a..0x2f killed
|
||||||
|
|
||||||
ldx Ytemp
|
ldx Ytemp ; X now holds partition number
|
||||||
ldy DCB_Idx,x
|
ldy DCB_Idx,x ; Y now holds offset to DIBx_Blks of this partition/unit
|
||||||
lda PartSizeLo1
|
lda PartSizeLo1
|
||||||
sta DIB0_Blks,y
|
sta DIB0_Blks,y
|
||||||
lda PartSizeMid1
|
lda PartSizeMid1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user