From 8b842f3539e7ade18a590c67c096413ed05ccd12 Mon Sep 17 00:00:00 2001 From: Michael Abed Date: Tue, 31 Jan 2012 21:16:43 -0500 Subject: handle x^0 --- problem4.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/problem4.asm b/problem4.asm index 9c52c4e..3bf06de 100644 --- a/problem4.asm +++ b/problem4.asm @@ -5,10 +5,15 @@ mov R4, [R4] mov R5, R4 inc R2 + cmp R1, R0 + je zero cmp R1, R2 jne outer mov R0, R4 jmp done +zero: + mov R0, 0x1 + jmp done outer: mov R0, 0 inner: -- cgit v1.2.3-54-g00ecf