Clean up initialization a bit

This commit is contained in:
David Schmidt 2019-04-02 19:57:58 -04:00
parent b4d899a566
commit 5699c3146c
2 changed files with 18 additions and 4 deletions

13
.gitignore vendored
View File

@ -1,2 +1,13 @@
/.project # Mac
.DS_Store
# IntelliJ
.idea
# Eclipse
.settings/
.classpath
.cache*
.project
bin/
/out/ /out/

View File

@ -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