From abda6589daac234cd3f0caaa8f0f3a75a1ce3d0f Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Tue, 13 Nov 2018 19:29:22 +0100 Subject: [PATCH] new version --- foo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foo.c b/foo.c index 7600064..5c3fc8a 100644 --- a/foo.c +++ b/foo.c @@ -11,8 +11,8 @@ u8 i0; u8 i1; u8 i2; u8 i3; -u8 x; u8 t; +u8 x; u8 _; #define Mh x //mod3 vars #define Ml t // -"- @@ -66,7 +66,7 @@ void g(void) { ADC X_hi, zero LD t, X */ t = (((i1&0x1f)<<8|i0)*t)>>8; //TODO - RET //TODO: CALL/RET is expensive; store PC in register and RJMP, then JRMP back + RET //TODO: CALL/RET is expensive; store next-instruction-position in Z register and RJMP, then JRMP back (maybe unnecessary, since timer might need stack anyways) }; int main(void) { -- 2.39.3