summaryrefslogtreecommitdiff
path: root/comp/work/18/3.s
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/18/3.s')
-rw-r--r--comp/work/18/3.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/comp/work/18/3.s b/comp/work/18/3.s
new file mode 100644
index 0000000..cbd9075
--- /dev/null
+++ b/comp/work/18/3.s
@@ -0,0 +1,9 @@
+loop:
+ SUB R0, R0, 5
+ CMP R0, #5
+ BLT end
+ ADD R1, R1, 1
+ B loop
+
+end:
+ STR R1, 101