From 92ad493aaec8325637a467903b506ec22c49f485 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Tue, 15 Oct 2019 20:51:15 +0100 Subject: Initial Commit --- 01.s | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 01.s (limited to '01.s') diff --git a/01.s b/01.s new file mode 100644 index 0000000..c5257f2 --- /dev/null +++ b/01.s @@ -0,0 +1,44 @@ + B main + + +green_bottles DEFB " green bottles",0 +hanging DEFB " hanging on the wall",0 +comma DEFB ",\n",0 +line3 DEFB "And if one green bottle should accidentally fall,\n",0 +line4 DEFB "There will be ",0 +stop DEFB ".\n",0 + + ALIGN +main MOV R0,#10 + SWI 4 + ADR R0,green_bottles + SWI 3 + ADR R0,hanging + SWI 3 + ADR R0,comma + SWI 3 + + MOV R0,#10 + SWI 4 + ADR R0,green_bottles + SWI 3 + ADR R0,hanging + SWI 3 + ADR R0,comma + SWI 3 + + ADR R0, line3 + SWI 3 + + ADR R0, line4 + SWI 3 + MOV R0, #9 + SWI 4 + ADR R0,green_bottles + SWI 3 + ADR R0,hanging + SWI 3 + ADR R0,stop + SWI 3 + + SWI 2 -- cgit 1.4.1