mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-17 07:31:19 +00:00
prevent interrupts during disk access
This commit is contained in:
parent
8762f39998
commit
045fe1cfef
@ -314,13 +314,14 @@ traverse
|
|||||||
|
|
||||||
promote
|
promote
|
||||||
!pseudopc $bf00 {
|
!pseudopc $bf00 {
|
||||||
|
php
|
||||||
|
sei
|
||||||
lda $c012
|
lda $c012
|
||||||
asl
|
!byte $24
|
||||||
!byte $2c
|
|
||||||
nop
|
|
||||||
;$bf06
|
;$bf06
|
||||||
rts ;clock interface, must be RTS on real ProDOS if program uses $20x
|
rts ;clock interface, must be RTS on real ProDOS if program uses $20x
|
||||||
|
|
||||||
|
asl
|
||||||
lda $c011
|
lda $c011
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
;$bf10
|
;$bf10
|
||||||
@ -333,18 +334,20 @@ ProDOS_savedX
|
|||||||
ldx #$d1
|
ldx #$d1
|
||||||
ProDOS_savedY
|
ProDOS_savedY
|
||||||
ldy #$d1
|
ldy #$d1
|
||||||
|
plp
|
||||||
|
lda #0
|
||||||
|
clc
|
||||||
rts
|
rts
|
||||||
|
|
||||||
ProDOS_fatal ;only for debugging, will be removed
|
!text "4Q!"
|
||||||
pha
|
|
||||||
lda $c081
|
|
||||||
jsr $fe89
|
|
||||||
|
|
||||||
!byte $24
|
|
||||||
ProDOS_unit
|
ProDOS_unit
|
||||||
;$bf30
|
;$bf30
|
||||||
!byte $d1
|
!byte $d1
|
||||||
|
|
||||||
|
ProDOS_fatal ;only for debugging, will be removed
|
||||||
|
bit $c081
|
||||||
|
pha
|
||||||
|
jsr $fe89
|
||||||
jsr $fe93
|
jsr $fe93
|
||||||
pla
|
pla
|
||||||
jsr $fdda
|
jsr $fdda
|
||||||
@ -414,6 +417,8 @@ ProDOS_enter
|
|||||||
pla
|
pla
|
||||||
tax
|
tax
|
||||||
pla
|
pla
|
||||||
|
tay
|
||||||
|
pla
|
||||||
sta @fetchaddr+1
|
sta @fetchaddr+1
|
||||||
pla
|
pla
|
||||||
sta @fetchaddr+2
|
sta @fetchaddr+2
|
||||||
@ -427,6 +432,8 @@ ProDOS_enter
|
|||||||
pha
|
pha
|
||||||
lda @fetchaddr+1
|
lda @fetchaddr+1
|
||||||
pha
|
pha
|
||||||
|
tya
|
||||||
|
pha
|
||||||
php
|
php
|
||||||
txa
|
txa
|
||||||
pha
|
pha
|
||||||
@ -728,8 +735,6 @@ ProDOS_enter
|
|||||||
plp
|
plp
|
||||||
adc #0
|
adc #0
|
||||||
tax
|
tax
|
||||||
lda #0
|
|
||||||
clc
|
|
||||||
jmp ProDOS_exit
|
jmp ProDOS_exit
|
||||||
|
|
||||||
@handle
|
@handle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user