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