Added P2-P8 offsets
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2021-01-03 04:54:30 +01:00
parent eb9b13c7cc
commit d70d63ee24

View file

@ -10,6 +10,15 @@
.constant P0 std_PARAMETER_0
.constant P1 std_PARAMETER_1
; These are offset registers to be called with <OP>~3 to access stack parameters
.constant P2 %1, +1 ; Equivalent to same address in POPP <Reg>, 1
.constant P3 %1, +2 ; Equivalent to same address in POPP <Reg>, 2
.constant P4 %1, +3 ; Equivalent to same address in POPP <Reg>, 3
.constant P5 %1, +4 ; Equivalent to same address in POPP <Reg>, 4
.constant P6 %1, +5 ; Equivalent to same address in POPP <Reg>, 5
.constant P7 %1, +6 ; Equivalent to same address in POPP <Reg>, 6
.constant P8 %1, +7 ; Equivalent to same address in POPP <Reg>, 7
; Ephemeral registers to be used within functions. These values may not be kept when calling other functions. They can be used when returning values if necessary.
; Some std functions might restore these values.
.constant std_EPHEMERAL_REGISTER_0 BSM_SCRATCH_START +0x1F0