File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -745,13 +745,7 @@ IF NOT(_MM32_)
745
745
IF _DONBOOT_
746
746
LDX #&03
747
747
.loop
748
- \\ Load the first sector of the disk table
749
- TXA
750
- PHA
751
- LDA #&00
752
- JSR LoadDiskTable \\ Corrupts A, X, Y
753
- PLA
754
- TAX
748
+ JSR LoadBaseSector
755
749
\\ Copy the drive mapping from the disk table to &B8/B9
756
750
LDA MA+&0E00, X
757
751
STA &B8
@@ -760,6 +754,20 @@ IF _DONBOOT_
760
754
JSR LoadDriveX
761
755
DEX
762
756
BPL loop
757
+ RTS
758
+ }
759
+ \\ Load the first sector of the disk table, taking account of chunk base
760
+ .LoadBaseSector
761
+ {
762
+ TXA
763
+ PHA
764
+ LDA CHUNK_BASE
765
+ DO_ASLA_X4
766
+ JSR LoadDiskTable \\ Corrupts A, X, Y
767
+ PLA
768
+ TAX
769
+ RTS
770
+ }
763
771
ELSE
764
772
LDA #0
765
773
STA &B9
769
777
JSR LoadDriveX
770
778
DEX
771
779
BPL loop
772
- ENDIF
773
780
RTS
774
781
}
782
+ ENDIF
775
783
ENDIF
776
784
777
785
\\ If sector 0 set , check it's the same card
Original file line number Diff line number Diff line change @@ -8168,8 +8168,7 @@ IF _INCLUDE_CMD_DONBOOT_
8168
8168
.CMD_DONBOOT
8169
8169
JSR Param_DriveAndDisk
8170
8170
\\ Exit: CurrentDrv=drive , Word &B8=disk no.
8171
- LDA # 0
8172
- JSR LoadDiskTable
8171
+ JSR LoadBaseSector
8173
8172
LDX CurrentDrv
8174
8173
LDA &B8
8175
8174
STA MA + &0E00 , X
You can’t perform that action at this time.
0 commit comments