summaryrefslogtreecommitdiff
path: root/asm/test.asm
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-08 18:10:01 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-08 18:10:01 +0100
commitb2c5356b3f6d2e0a836a19b4cae1791d350785d3 (patch)
treec84011df6867b5fa9e4c211f300dbc0421683f93 /asm/test.asm
parentfb4a33dfbbfd3d85e3ecee65bdee36b12c4f9937 (diff)
downloadSystDigit-Projet-b2c5356b3f6d2e0a836a19b4cae1791d350785d3.tar.gz
SystDigit-Projet-b2c5356b3f6d2e0a836a19b4cae1791d350785d3.zip
Assembler kind of works ; created simple assembly program that prints Tick! every second.
Diffstat (limited to 'asm/test.asm')
-rw-r--r--asm/test.asm8
1 files changed, 5 insertions, 3 deletions
diff --git a/asm/test.asm b/asm/test.asm
index 2597f1f..d37ca61 100644
--- a/asm/test.asm
+++ b/asm/test.asm
@@ -4,6 +4,7 @@
init:
liuz B 0x40
lw B 0(B)
+ jz B init
add D D B
push D
la A msgtick
@@ -12,13 +13,14 @@ init:
j init
ser_out_msg:
- lb B 0(A)
- jz B ser_out_msg_ret
liuz C 0x41
lil C 0x02
+ser_out_msg_loop:
+ lb B 0(A)
+ jz B ser_out_msg_ret
sb B 0(C)
incri A 1
- j ser_out_msg
+ j ser_out_msg_loop
ser_out_msg_ret:
jr RA