diff --git a/calculator.asm b/calculator.asm index 88aef53..6e0c31e 100644 --- a/calculator.asm +++ b/calculator.asm @@ -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: