From c265371f7f5272c0dd849287a1e8b87fca0eedea Mon Sep 17 00:00:00 2001 From: Michael Abed Date: Tue, 31 Jan 2012 21:16:26 -0500 Subject: get rid of needless things --- problem1.asm | 2 ++ problem3.asm | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/problem1.asm b/problem1.asm index 5cdcfc0..8ba4e9a 100644 --- a/problem1.asm +++ b/problem1.asm @@ -8,6 +8,8 @@ cmp R3, R4 je zero sub R1, R2 + cmp R1, R4 + je zero mov R4, R1 mov R1, 0x0 loop: diff --git a/problem3.asm b/problem3.asm index 29a1a56..5f58bb1 100644 --- a/problem3.asm +++ b/problem3.asm @@ -13,7 +13,6 @@ loop: sub R1, R3 cmp R1, R4 jne loop - mov R0, 0x3F mov R2, [R0] add R5, R2 @@ -21,7 +20,5 @@ loop: add R0, R1 mov R2, [R0] add R5, R2 - mov R0, 0x1E mov [R0], R5 - halt -- cgit v1.2.3-54-g00ecf