From d50efa0988b1891874c076d9ae49b5cae90e9e7c Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 20 Apr 2014 00:13:58 +0300 Subject: [PATCH] fixed the example assembler program. compilation actually works --- unused/code_generator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unused/code_generator.rb b/unused/code_generator.rb index 49f4b871..0c9a104a 100644 --- a/unused/code_generator.rb +++ b/unused/code_generator.rb @@ -9,7 +9,8 @@ if (__FILE__ == $0) loop_start.set! subs r0, r0, 1 bne loop_start - bx lr + mov r7, 1 + swi 0 } require 'asm/object_writer'