1 |
38 |
julius |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
|
|
;arith_3
|
3 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
4 |
|
|
.h8300sx
|
5 |
|
|
.text
|
6 |
|
|
_start:
|
7 |
|
|
neg.b r1h ;1781
|
8 |
|
|
neg.b @er1 ;7d101780
|
9 |
|
|
neg.b @(0x3:2,er1) ;017768181780
|
10 |
|
|
neg.b @er1+ ;01746c181780
|
11 |
|
|
neg.b @-er1 ;01776c181780
|
12 |
|
|
neg.b @+er1 ;01756c181780
|
13 |
|
|
neg.b @er1- ;01766c181780
|
14 |
|
|
neg.b @(0x1234:16,er1) ;01746e1812341780
|
15 |
|
|
neg.b @(0x12345678:32,er1) ;78146a28123456781780
|
16 |
|
|
neg.b @(0x1234:16,r2l.b) ;01756e2812341780
|
17 |
|
|
neg.b @(0x1234:16,r2.w) ;01766e2812341780
|
18 |
|
|
neg.b @(0x1234:16,er2.l) ;01776e2812341780
|
19 |
|
|
neg.b @(0x12345678:32,r2l.b) ;78256a28123456781780
|
20 |
|
|
neg.b @(0x12345678:32,r2.w) ;78266a28123456781780
|
21 |
|
|
neg.b @(0x12345678:32,er2.l) ;78276a28123456781780
|
22 |
|
|
neg.b @0xffffff12:8 ;7f121780
|
23 |
|
|
neg.b @0x1234:16 ;6a1812341780
|
24 |
|
|
neg.b @0x12345678:32 ;6a38123456781780
|
25 |
|
|
|
26 |
|
|
neg.w r1 ;1791
|
27 |
|
|
neg.w @er1 ;7d901790
|
28 |
|
|
neg.w @(0x6:2,er1) ;015769181790
|
29 |
|
|
neg.w @er1+ ;01546d181790
|
30 |
|
|
neg.w @-er1 ;01576d181790
|
31 |
|
|
neg.w @+er1 ;01556d181790
|
32 |
|
|
neg.w @er1- ;01566d181790
|
33 |
|
|
neg.w @(0x1234:16,er1) ;01546f1812341790
|
34 |
|
|
neg.w @(0x12345678:32,er1) ;78146b28123456781790
|
35 |
|
|
neg.w @(0x1234:16,r2l.b) ;01556f2812341790
|
36 |
|
|
neg.w @(0x1234:16,r2.w) ;01566f2812341790
|
37 |
|
|
neg.w @(0x1234:16,er2.l) ;01576f2812341790
|
38 |
|
|
neg.w @(0x12345678:32,r2l.b) ;78256b28123456781790
|
39 |
|
|
neg.w @(0x12345678:32,r2.w) ;78266b28123456781790
|
40 |
|
|
neg.w @(0x12345678:32,er2.l) ;78276b28123456781790
|
41 |
|
|
neg.w @0x1234:16 ;6b1812341790
|
42 |
|
|
neg.w @0x12345678:32 ;6b38123456781790
|
43 |
|
|
|
44 |
|
|
neg.l er1 ;17b1
|
45 |
|
|
neg.l @er1 ;0104691817b0
|
46 |
|
|
neg.l @(0xc:2,er1) ;0107691817b0
|
47 |
|
|
neg.l @er1+ ;01046d1817b0
|
48 |
|
|
neg.l @-er1 ;01076d1817b0
|
49 |
|
|
neg.l @+er1 ;01056d1817b0
|
50 |
|
|
neg.l @er1- ;01066d1817b0
|
51 |
|
|
neg.l @(0x1234:16,er1) ;01046f18123417b0
|
52 |
|
|
neg.l @(0x12345678:32,er1) ;78946b281234567817b0
|
53 |
|
|
neg.l @(0x1234:16,r2l.b) ;01056f28123417b0
|
54 |
|
|
neg.l @(0x1234:16,r2.w) ;01066f28123417b0
|
55 |
|
|
neg.l @(0x1234:16,er2.l) ;01076f28123417b0
|
56 |
|
|
neg.l @(0x12345678:32,r2l.b) ;78a56b281234567817b0
|
57 |
|
|
neg.l @(0x12345678:32,r2.w) ;78a66b281234567817b0
|
58 |
|
|
neg.l @(0x12345678:32,er2.l) ;78a76b281234567817b0
|
59 |
|
|
neg.l @0x1234:16 ;01046b08123417b0
|
60 |
|
|
neg.l @0x12345678:32 ;01046b281234567817b0
|
61 |
|
|
|
62 |
|
|
tas @er1 ;01e07b1c
|
63 |
|
|
|
64 |
|
|
extu.w r1 ;1751
|
65 |
|
|
extu.w @er1 ;7d901750
|
66 |
|
|
extu.w @(0x6:2,er1) ;015769181750
|
67 |
|
|
extu.w @er1+ ;01546d181750
|
68 |
|
|
extu.w @-er1 ;01576d181750
|
69 |
|
|
extu.w @+er1 ;01556d181750
|
70 |
|
|
extu.w @er1- ;01566d181750
|
71 |
|
|
extu.w @(0x1234:16,er1) ;01546f1812341750
|
72 |
|
|
extu.w @(0x12345678:32,er1) ;78146b28123456781750
|
73 |
|
|
extu.w @(0x1234:16,r2l.b) ;01556f2812341750
|
74 |
|
|
extu.w @(0x1234:16,r2.w) ;01566f2812341750
|
75 |
|
|
extu.w @(0x1234:16,er2.l) ;01576f2812341750
|
76 |
|
|
extu.w @(0x12345678:32,r2l.b) ;78256b28123456781750
|
77 |
|
|
extu.w @(0x12345678:32,r2.w) ;78266b28123456781750
|
78 |
|
|
extu.w @(0x12345678:32,er2.l) ;78276b28123456781750
|
79 |
|
|
extu.w @0x1234:16 ;6b1812341750
|
80 |
|
|
extu.w @0x12345678:32 ;6b38123456781750
|
81 |
|
|
|
82 |
|
|
extu.l er1 ;1771
|
83 |
|
|
extu.l @er1 ;010469181770
|
84 |
|
|
extu.l @(0xc:2,er1) ;010769181770
|
85 |
|
|
extu.l @er1+ ;01046d181770
|
86 |
|
|
extu.l @-er1 ;01076d181770
|
87 |
|
|
extu.l @+er1 ;01056d181770
|
88 |
|
|
extu.l @er1- ;01066d181770
|
89 |
|
|
extu.l @(0x1234:16,er1) ;01046f1812341770
|
90 |
|
|
extu.l @(0x12345678:32,er1) ;78946b28123456781770
|
91 |
|
|
extu.l @(0x1234:16,r2l.b) ;01056f2812341770
|
92 |
|
|
extu.l @(0x1234:16,r2.w) ;01066f2812341770
|
93 |
|
|
extu.l @(0x1234:16,er2.l) ;01076f2812341770
|
94 |
|
|
extu.l @(0x12345678:32,r2l.b) ;78a56b28123456781770
|
95 |
|
|
extu.l @(0x12345678:32,r2.w) ;78a66b28123456781770
|
96 |
|
|
extu.l @(0x12345678:32,er2.l) ;78a76b28123456781770
|
97 |
|
|
extu.l @0x1234:16 ;01046b0812341770
|
98 |
|
|
extu.l @0x12345678:32 ;01046b28123456781770
|
99 |
|
|
|
100 |
|
|
extu.l #2,er1 ;1761
|
101 |
|
|
extu.l #2,@er1 ;010469181760
|
102 |
|
|
extu.l #2,@(0xc:2,er1) ;010769181760
|
103 |
|
|
extu.l #2,@er1+ ;01046d181760
|
104 |
|
|
extu.l #2,@-er1 ;01076d181760
|
105 |
|
|
extu.l #2,@+er1 ;01056d181760
|
106 |
|
|
extu.l #2,@er1- ;01066d181760
|
107 |
|
|
extu.l #2,@(0x1234:16,er1) ;01046f1812341760
|
108 |
|
|
extu.l #2,@(0x12345678:32,er1) ;78946b28123456781760
|
109 |
|
|
extu.l #2,@(0x1234:16,r2l.b) ;01056f2812341760
|
110 |
|
|
extu.l #2,@(0x1234:16,r2.w) ;01066f2812341760
|
111 |
|
|
extu.l #2,@(0x1234:16,er2.l) ;01076f2812341760
|
112 |
|
|
extu.l #2,@(0x12345678:32,r2l.b) ;78a56b28123456781760
|
113 |
|
|
extu.l #2,@(0x12345678:32,r2.w) ;78a66b28123456781760
|
114 |
|
|
extu.l #2,@(0x12345678:32,er2.l) ;78a76b28123456781760
|
115 |
|
|
extu.l #2,@0x1234:16 ;01046b0812341760
|
116 |
|
|
extu.l #2,@0x12345678:32 ;01046b28123456781760
|
117 |
|
|
|
118 |
|
|
exts.w r1 ;17d1
|
119 |
|
|
exts.w @er1 ;7d9017d0
|
120 |
|
|
exts.w @(0x6:2,er1) ;0157691817d0
|
121 |
|
|
exts.w @er1+ ;01546d1817d0
|
122 |
|
|
exts.w @-er1 ;01576d1817d0
|
123 |
|
|
exts.w @+er1 ;01556d1817d0
|
124 |
|
|
exts.w @er1- ;01566d1817d0
|
125 |
|
|
exts.w @(0x1234:16,er1) ;01546f18123417d0
|
126 |
|
|
exts.w @(0x12345678:32,er1) ;78146b281234567817d0
|
127 |
|
|
exts.w @(0x1234:16,r2l.b) ;01556f28123417d0
|
128 |
|
|
exts.w @(0x1234:16,r2.w) ;01566f28123417d0
|
129 |
|
|
exts.w @(0x1234:16,er2.l) ;01576f28123417d0
|
130 |
|
|
exts.w @(0x12345678:32,r2l.b) ;78256b281234567817d0
|
131 |
|
|
exts.w @(0x12345678:32,r2.w) ;78266b281234567817d0
|
132 |
|
|
exts.w @(0x12345678:32,er2.l) ;78276b281234567817d0
|
133 |
|
|
exts.w @0x1234:16 ;6b18123417d0
|
134 |
|
|
exts.w @0x12345678:32 ;6b381234567817d0
|
135 |
|
|
|
136 |
|
|
exts.l er1 ;17f1
|
137 |
|
|
exts.l @er1 ;0104691817f0
|
138 |
|
|
exts.l @(0xc:2,er1) ;0107691817f0
|
139 |
|
|
exts.l @er1+ ;01046d1817f0
|
140 |
|
|
exts.l @-er1 ;01076d1817f0
|
141 |
|
|
exts.l @+er1 ;01056d1817f0
|
142 |
|
|
exts.l @er1- ;01066d1817f0
|
143 |
|
|
exts.l @(0x1234:16,er1) ;01046f18123417f0
|
144 |
|
|
exts.l @(0x12345678:32,er1) ;78946b281234567817f0
|
145 |
|
|
exts.l @(0x1234:16,r2l.b) ;01056f28123417f0
|
146 |
|
|
exts.l @(0x1234:16,r2.w) ;01066f28123417f0
|
147 |
|
|
exts.l @(0x1234:16,er2.l) ;01076f28123417f0
|
148 |
|
|
exts.l @(0x12345678:32,r2l.b) ;78a56b281234567817f0
|
149 |
|
|
exts.l @(0x12345678:32,r2.w) ;78a66b281234567817f0
|
150 |
|
|
exts.l @(0x12345678:32,er2.l) ;78a76b281234567817f0
|
151 |
|
|
exts.l @0x1234:16 ;01046b08123417f0
|
152 |
|
|
exts.l @0x12345678:32 ;01046b281234567817f0
|
153 |
|
|
|
154 |
|
|
exts.l #2,er1 ;17e1
|
155 |
|
|
exts.l #2,@er1 ;0104691817e0
|
156 |
|
|
exts.l #2,@(0xc:2,er1) ;0107691817e0
|
157 |
|
|
exts.l #2,@er1+ ;01046d1817e0
|
158 |
|
|
exts.l #2,@-er1 ;01076d1817e0
|
159 |
|
|
exts.l #2,@+er1 ;01056d1817e0
|
160 |
|
|
exts.l #2,@er1- ;01066d1817e0
|
161 |
|
|
exts.l #2,@(0x1234:16,er1) ;01046f18123417e0
|
162 |
|
|
exts.l #2,@(0x12345678:32,er1) ;78946b281234567817e0
|
163 |
|
|
exts.l #2,@(0x1234:16,r2l.b) ;01056f28123417e0
|
164 |
|
|
exts.l #2,@(0x1234:16,r2.w) ;01066f28123417e0
|
165 |
|
|
exts.l #2,@(0x1234:16,er2.l) ;01076f28123417e0
|
166 |
|
|
exts.l #2,@(0x12345678:32,r2l.b) ;78a56b281234567817e0
|
167 |
|
|
exts.l #2,@(0x12345678:32,r2.w) ;78a66b281234567817e0
|
168 |
|
|
exts.l #2,@(0x12345678:32,er2.l) ;78a76b281234567817e0
|
169 |
|
|
exts.l #2,@0x1234:16 ;01046b08123417e0
|
170 |
|
|
exts.l #2,@0x12345678:32 ;01046b281234567817e0
|
171 |
|
|
|
172 |
|
|
.end
|