aboutsummaryrefslogtreecommitdiffstats
path: root/src/blk.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/blk.asm')
-rw-r--r--src/blk.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blk.asm b/src/blk.asm
index 2be961e..76561da 100644
--- a/src/blk.asm
+++ b/src/blk.asm
@@ -34,6 +34,8 @@ ENDM
; -----------------------------------------------------------------------------
read_block::
ld c, a
+ di ; the tick ISR pushes on SP, which points into
+ ; the $A000 window we are about to remap
srl a
srl a
srl a
@@ -54,6 +56,7 @@ read_block::
dec b
jr nz, .cp
restore_bank ; inline - no stack while the disk bank is mapped
+ ei
ret
; -----------------------------------------------------------------------------
@@ -61,6 +64,7 @@ read_block::
; -----------------------------------------------------------------------------
write_block::
ld c, a
+ di ; see read_block
srl a
srl a
srl a
@@ -81,6 +85,7 @@ write_block::
dec b
jr nz, .cp
restore_bank
+ ei
ret
; =============================================================================