From 95c29fc2e0d89df57a9687e1ef1a0023d8c5605c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 17 Aug 2022 03:01:34 +0300 Subject: [PATCH] Add tmpWord2 in calculator.asm --- calculator.asm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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: