Skip to content

Commit

Permalink
sbcv2: fix IY corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
EtchedPixels committed Jun 28, 2024
1 parent 6208e6f commit 93ef1dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Kernel/platform/platform-sbcv2/tricks.S
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
; if your platform has an NMI to handle.
;
bankfork:
push ix
push iy
dec a ; offset by 1 from hardware (see map_*)
dec c ; likewise
ld (cpatch0 + 1),a ; patch parent into loop
Expand Down Expand Up @@ -114,6 +116,8 @@ copy_over:
; Get the stack back
;
ld sp,(spcache)
pop iy
pop ix
;
; And the correct kernel bank.
;
Expand Down

0 comments on commit 93ef1dd

Please sign in to comment.