From fb4a33dfbbfd3d85e3ecee65bdee36b12c4f9937 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Wed, 8 Jan 2014 10:38:42 +0100 Subject: Crap. Here it is. --- cpu/prog_test1.rom | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cpu/prog_test1.rom (limited to 'cpu') diff --git a/cpu/prog_test1.rom b/cpu/prog_test1.rom new file mode 100644 index 0000000..9695447 --- /dev/null +++ b/cpu/prog_test1.rom @@ -0,0 +1,30 @@ +48 8 +10101010 11111011 # liuz SP 85 + # init: +00000010 01011011 # liuz B 64 +00000010 01000001 # lw B 0(B) +00010110 11000000 # add C C B +01111111 11101100 # incri SP -2 +00000111 11010001 # sw C 0(SP) +01010100 10010011 # lilz A msgtick +00000000 10001011 # liu A msgtick +00010000 00010010 # jal ser_out_msg +00000111 11000001 # lw C 0(SP) +01000000 11101100 # incri SP 2 +00110111 11100010 # j init + # ser_out_msg: +00000100 01001001 # lb B 0(A) +00010100 10110011 # lilz E ser_out_msg_ret +00000000 10101011 # liu E ser_out_msg_ret +01000101 01001010 # jer B E Z +10000010 11011011 # liuz C 65 +01000000 11000011 # lil C 2 +00000110 01011001 # sb B 0(C) +01001111 11100010 # j ser_out_msg + # ser_out_msg_ret: +00000000 01101010 # jr RA + # msgtick: +10010110 00101010 # bytes 84 105 +11010110 11000110 # bytes 99 107 +00000000 10000100 # bytes 33 0 + -- cgit v1.2.3