progs: fun with deepjit (still doesn't work on real hardware :/)
[calu.git] / progs / testbench.s
1 #include "dt_inc.s"
2
3 .data
4 .org 0x0
5 list:
6         .fill 0x1 ;1. element = 1 ;0x10
7         .fill 0x1 ;2. element = 1 ;0x14
8         .fill 0x10, 0x0 ;nullen..
9 str:
10         .ascii "hier das ergebnis: "
11 .text
12 .org 0x0
13 start:
14         br+ main
15         br+ main
16         ret
17 main:
18         call+ u_init
19         call+ u_recv_byte
20         call u_send_newline
21
22         ldis r1, 0x42
23         call u_send_byte
24         
25         ldis r0, bla/4
26         ; addi r1, r0, 0
27         ; call u_send_byte
28         brr r0
29
30         ldis r1, 0x43
31         call u_send_byte
32
33 hang:
34         br hang
35
36
37 .org 0x50
38 bla:
39         call u_init
40         ldis r1, 0x41
41         call u_send_byte
42         br hang