Skip to content

Commit

Permalink
jit.s typo and speed up stz
Browse files Browse the repository at this point in the history
  • Loading branch information
dp111 committed Sep 4, 2023
1 parent c4869c9 commit 54ac16c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/jit.S
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,21 @@ then return to our secret stack This relies on instructions being re entrant , b
.ifc \reg,regA
MOVR1HIGH
SPACE_THREE_ARM_WORDS
strb regA,[reg1,#0]!
strb \reg,[reg1,#0]!
.else

.ifc \reg,ram6502
MOVR1HIGH
SPACE_THREE_ARM_WORDS
strb \reg,[reg1,#0]!

.else
MOVR1HIGH
ARMNOPR6QUICK
mov reg0,\reg,LSR #24
ARMNOPR6QUICK
strb reg0,[reg1,#0]!
.endif
.endif
.word JITTEDTABLE16-28
.endm
Expand Down Expand Up @@ -2117,7 +2125,7 @@ fiq_during_irq: // we can get here from ARM FIQ or ARM IRQ handler
STMFD r0!, {r14} // save lr to FAKE FIQ stack

CPS #CPSR_MODE_SVR // drop to user mode leaving FIQ and IRQ disabled
// becuase of gating above we know we are in the jitter
// because of gating above we know we are in the jitter
// so regSP is a valid stack pointer

STMFD r0!,{r2-r12,r14} // save everything to FAKE FIQ stack
Expand Down

0 comments on commit 54ac16c

Please sign in to comment.