base:formatting_a_disk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
base:formatting_a_disk [2016-10-17 04:50] – tww_ctr | base:formatting_a_disk [2016-10-17 18:27] (current) – tww_ctr | ||
---|---|---|---|
Line 16: | Line 16: | ||
lda #$36 | lda #$36 | ||
sta $01 // BANK KERNAL+IO+RAM | sta $01 // BANK KERNAL+IO+RAM | ||
- | sei // Make sure our external IRQ don't kick in while messing with the vectors | ||
ldx #6 | ldx #6 | ||
!: lda SetParameters, | !: lda SetParameters, | ||
Line 37: | Line 36: | ||
FormatName: | FormatName: | ||
- | .text "N: | + | .text "N0: |
</ | </ | ||
- | Make sure You have your Vectors at 0314 etc. set up correctly as they will be called since the OPEN command invokes CLI. Also if you want to maintain compatibility you will have to make sure the KERNAL RAM Vectors are set up correctly and call OPEN and CLOSE from the KERNAL Jump Table and use SETNAM / SETLFS instead of the loop-routine. | + | Make sure You have your Vectors at 0314 etc. set up correctly as they will be called since the OPEN command invokes CLI (Set Interrupt flag before modifying the vectors to avoid any accidental IRQ firing while modifying IRQ vectors). Also if you want to maintain compatibility you will have to make sure the KERNAL RAM Vectors are set up correctly and call OPEN and CLOSE from the KERNAL Jump Table and use SETNAM / SETLFS instead of the loop-routine. |
I also encountered an issue where I had to initialize the drive before formatting worked. Suspect it was an emulator issue but posting the work-around for sake of good order: | I also encountered an issue where I had to initialize the drive before formatting worked. Suspect it was an emulator issue but posting the work-around for sake of good order: |
base/formatting_a_disk.txt · Last modified: 2016-10-17 18:27 by tww_ctr