]> git.gag.com Git - debian/cc1111/blob - sim/ucsim/avr.src/test_mov.asm
Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / avr.src / test_mov.asm
1 ;X      =       0x001a
2 ;XL     =       0x001a
3 ;XH     =       0x001b
4 ;Y      =       0x001c
5 ;YL     =       0x001c
6 ;YH     =       0x001d
7 ;Z      =       0x001e
8 ;ZL     =       0x001e
9 .equ    ZH      =$1f
10
11         jmp     t42
12         
13         ldi     r16,0
14         ldi     r16,16
15         ldi     r17,0
16         ldi     r17,17
17         ldi     r30,0
18         ldi     r30,30
19         ldi     r30,255
20 t1:
21         ldi     r30,low(copyright)
22         ldi     r31,high(copyright)
23         lpm
24         ldi     r30,low(copyright+1)
25         ldi     r31,high(copyright+1)
26         lpm
27 t2:
28         ldi     r31,0
29         ldi     r30,100
30         ldi     r16,$65
31         std     z+1,r16
32         std     z+63,r16
33         ldd     r1,z+1
34         ldd     r2,z+63
35 t21:
36         ldi     r31,0
37         ldi     r30,255
38         ldi     r18,88
39         std     z,r18
40         ld      r6,z+
41         ld      r7,-z
42 t3:
43         ldi     r29,0
44         ldi     r28,100
45         ldi     r17,$45
46         std     y+2,r17
47         std     y+62,r17
48         ldd     r3,y+2
49         ldd     r4,y+62
50 t31:
51         ldi     r29,0
52         ldi     r28,255
53         ldi     r19,$55
54         std     y,r19
55         ld      r8,y+
56         ld      r9,-y
57 t32:
58         ldi     r27,0
59         ldi     r26,255
60         ldi     r19,$70
61         st      x,r19
62         ld      r20,x
63         ld      r10,x+
64         ld      r11,-x
65 t4:
66         ldi     r31,0
67         ldi     r30,255
68         ldi     r16,66
69         ldi     r17,77
70         st      z+,r16
71         st      -z,r17
72 t41:
73         ldi     r29,0
74         ldi     r28,255
75         ldi     r18,88
76         ldi     r19,99
77         st      y+,r18
78         st      -y,r19
79 t42:
80         ldi     r27,0
81         ldi     r26,255
82         ldi     r20,22
83         ldi     r21,11
84         st      x+,r20
85         st      -x,r21
86
87         lds     r5,162
88         sts     161,r5
89
90         nop
91         
92 copyright:
93         .db     "(c) 2000 Talker Bt."