Add tmpWord2 in calculator.asm
This commit is contained in:
parent
109cdf5a3a
commit
95c29fc2e0
|
@ -88,6 +88,8 @@ stEmit:
|
||||||
|
|
||||||
tmpWordHigh: data 0
|
tmpWordHigh: data 0
|
||||||
tmpWordLow: data 0
|
tmpWordLow: data 0
|
||||||
|
tmpWord2High: data 0
|
||||||
|
tmpWord2Low: data 0
|
||||||
|
|
||||||
; in:
|
; in:
|
||||||
; r0:r1 = word
|
; r0:r1 = word
|
||||||
|
@ -110,6 +112,20 @@ tmpLoadWord23:
|
||||||
load r3, tmpWordLow
|
load r3, tmpWordLow
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
; in:
|
||||||
|
; r0:r1 = word
|
||||||
|
tmp2StoreWord01:
|
||||||
|
store tmpWord2High, r0
|
||||||
|
store tmpWord2Low, r1
|
||||||
|
ret
|
||||||
|
|
||||||
|
; out:
|
||||||
|
; r0:r1 = word
|
||||||
|
tmp2LoadWord01:
|
||||||
|
load r0, tmpWord2High
|
||||||
|
load r1, tmpWord2Low
|
||||||
|
ret
|
||||||
|
|
||||||
; out:
|
; out:
|
||||||
; r0:r1 = word
|
; r0:r1 = word
|
||||||
; clobbers:
|
; clobbers:
|
||||||
|
|
Loading…
Reference in New Issue