We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f230e1a commit 33eb3baCopy full SHA for 33eb3ba
1 file changed
src/llvm/shres_asm.s
@@ -9,11 +9,24 @@
9
; and processor flags into _shres_regs[4].
10
11
_shres_trap:
12
- ldq _shres_regs ; Load 32-bit value from _shres_regs
13
- stq $D645 ; Store to the MEGA65 SYSPART trap address
+ ldx #3
+ll1: lda _shres_regs,x
14
+ sta $D645,x
15
+ dex
16
+ bpl ll1
17
+
18
+ lda _shres_regs+0
19
+ ldx _shres_regs+1
20
+ ldy _shres_regs+2
21
+ ldz _shres_regs+3
22
+ sta $D645 ; Store to the MEGA65 SYSPART trap address
23
nop ; Delay/stabilize (preserved from original)
24
- stq _shres_regs ; Store result back into _shres_regs
25
+ ; Store result back into _shres_regs
26
+ sta _shres_regs+0
27
+ stx _shres_regs+1
28
+ sty _shres_regs+2
29
+ stz _shres_regs+3
30
31
php
32
pla
0 commit comments