diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2014-01-08 10:38:42 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2014-01-08 10:38:42 +0100 |
commit | fb4a33dfbbfd3d85e3ecee65bdee36b12c4f9937 (patch) | |
tree | 68921bfc43320b582374d14d403aeba8a6a37cba /asm/test.asm | |
parent | 5738e470e8c2158d2b6a966d86100bb33628b90a (diff) | |
download | SystDigit-Projet-fb4a33dfbbfd3d85e3ecee65bdee36b12c4f9937.tar.gz SystDigit-Projet-fb4a33dfbbfd3d85e3ecee65bdee36b12c4f9937.zip |
Crap. Here it is.
Diffstat (limited to 'asm/test.asm')
-rw-r--r-- | asm/test.asm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/asm/test.asm b/asm/test.asm new file mode 100644 index 0000000..2597f1f --- /dev/null +++ b/asm/test.asm @@ -0,0 +1,26 @@ +.text + liuz SP 0xFF + add D Z Z +init: + liuz B 0x40 + lw B 0(B) + add D D B + push D + la A msgtick + jal ser_out_msg + pop D + j init + +ser_out_msg: + lb B 0(A) + jz B ser_out_msg_ret + liuz C 0x41 + lil C 0x02 + sb B 0(C) + incri A 1 + j ser_out_msg +ser_out_msg_ret: + jr RA + +msgtick: + asciiz "Tick!" |