diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-15 20:51:15 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-15 20:51:15 +0100 |
commit | 92ad493aaec8325637a467903b506ec22c49f485 (patch) | |
tree | 41a20e36bdb2eb46790b4b999167a0e8df582e87 /01.s | |
download | Arm_Programming-92ad493aaec8325637a467903b506ec22c49f485.tar.gz Arm_Programming-92ad493aaec8325637a467903b506ec22c49f485.tar.bz2 Arm_Programming-92ad493aaec8325637a467903b506ec22c49f485.zip |
Initial Commit
Diffstat (limited to '01.s')
-rw-r--r-- | 01.s | 44 |
1 files changed, 44 insertions, 0 deletions
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 |