Add tmpWord2 in calculator.asm

This commit is contained in:
Juhani Krekelä 2022-08-17 03:01:34 +03:00
parent 109cdf5a3a
commit 95c29fc2e0
1 changed files with 16 additions and 0 deletions

View File

@ -88,6 +88,8 @@ stEmit:
tmpWordHigh: data 0
tmpWordLow: data 0
tmpWord2High: data 0
tmpWord2Low: data 0
; in:
; r0:r1 = word
@ -110,6 +112,20 @@ tmpLoadWord23:
load r3, tmpWordLow
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:
; r0:r1 = word
; clobbers: