Instruction Set Architecture » History » Version 4
Alexander Protsenko, 03/16/2023 10:41 AM
1 | 1 | Alexander Protsenko | h1. Instruction Set Architecture |
---|---|---|---|
2 | |||
3 | 3 | Alexander Protsenko | h2. Data processing - immediate |
4 | |||
5 | 1 | Alexander Protsenko | h3. Arithmetic (immediate) |
6 | |||
7 | ### ADD (immediate). Add. |
||
8 | Specification: add, add_32 |
||
9 | ### SUB (immediate). Subtract. |
||
10 | Specification: sub, sub_32 |
||
11 | ### ADDS (immediate). Add and set flags. |
||
12 | Specification: adds, adds_32 |
||
13 | ### SUBS (immediate). Subtract and set flags. |
||
14 | Specification: subs, subs_32 |
||
15 | ### CMP (immediate). Compare. |
||
16 | Specification: cmp, cmp_32 |
||
17 | ### CMN (immediate). Compare negative. |
||
18 | Specification: cmn, cmn_32 |
||
19 | |||
20 | h3. Logical (immediate) |
||
21 | |||
22 | ### AND (immediate). Bitwise AND |
||
23 | Specification: and_bitmask, and_bitmask_32 |
||
24 | ### ANDS (immediate). Bitwise AND and set flags |
||
25 | Specification: ands_bitmask, ands_bitmask_32 |
||
26 | ### EOR (immediate). Bitwise exclusive OR |
||
27 | Specification: eor_bitmask, eor_bitmask_32 |
||
28 | ### ORR (immediate). Bitwise inclusive OR |
||
29 | Specification: orr_bitmask, orr_bitmask_32 |
||
30 | ### TST (immediate). TST Test bits |
||
31 | Specification: tst_bitmask, tst_bitmask_32 |
||
32 | |||
33 | h3. Move (wide immediate) |
||
34 | |||
35 | ### MOVZ. Move wide with zero |
||
36 | Specification: movz, movz_32 |
||
37 | ### MOVN. Move wide with NOT |
||
38 | Specification: movn, movn_32 |
||
39 | ### MOVK. Move wide with keep |
||
40 | Specification: movk, movk_32 |
||
41 | |||
42 | h3. Move (immediate) |
||
43 | |||
44 | ### MOV (wide immediate). Move (wide immediate) |
||
45 | Specification: mov_wide_imm, mov_wide_imm_32 |
||
46 | ### MOV (inverted wide immediate). Move (inverted wide immediate) |
||
47 | Specification: mov_inv_wide_imm, mov_inv_wide_imm_32 |
||
48 | 2 | Alexander Protsenko | ### MOV (bitmask immediate). Move (bitmask immediate) |
49 | 1 | Alexander Protsenko | Specification: mov_bitmask, mov_bitmask_32 |
50 | |||
51 | 3 | Alexander Protsenko | h3. PC-relative address calculation |
52 | |||
53 | ### ADRP. Compute address of 4KB page at a PC-relative offset |
||
54 | Specification: adrp |
||
55 | ### ADR. Compute address of label at a PC-relative offset. |
||
56 | Specification: adr |
||
57 | |||
58 | h3. Extract register |
||
59 | |||
60 | ### EXTR. Extract register from pair |
||
61 | Specification: extr, extr_32 |
||
62 | |||
63 | h2. Data processing - register |
||
64 | |||
65 | h3. Arithmetic (shifted register) |
||
66 | |||
67 | ### ADD (shifted register). Add |
||
68 | Specification: add_sh_reg, add_sh_reg_32 |
||
69 | ### ADDS (shifted register). Add and set flags |
||
70 | Specification: adds_sh_reg, adds_sh_reg_32 |
||
71 | ### SUB (shifted register). Subtract |
||
72 | Specification: sub_sh_reg, sub_sh_reg_32 |
||
73 | ### SUBS (shifted register). Subtract and set flags |
||
74 | Specification: subs_sh_reg, subs_sh_reg_32 |
||
75 | ### CMN (shifted register). Compare negative |
||
76 | Specification: cmn_sh_reg, cmn_sh_reg_32 |
||
77 | ### CMP (shifted register). Compare |
||
78 | Specification: cmp_sh_reg, cmp_sh_reg_32 |
||
79 | |||
80 | h3. Arithmetic (extending register) |
||
81 | |||
82 | ### ADD (extended register). Add |
||
83 | Specification: add_ex_reg, add_ex_reg_32 |
||
84 | ### ADDS (extended register). Add and set flags |
||
85 | Specification: adds_ex_reg, adds_ex_reg_32 |
||
86 | ### SUB (extended register). Subtract |
||
87 | Specification: sub_ex_reg, sub_ex_reg_32 |
||
88 | ### SUBS (extended register). Subtract and set flags |
||
89 | Specification: subs_ex_reg, subs_ex_reg_32 |
||
90 | ### CMN (extended register). Compare negative |
||
91 | Specification: cmn_ex_reg, cmn_ex_reg_32 |
||
92 | ### CMP (extended register). Compare |
||
93 | Specification: cmp_ex_reg, cmp_ex_reg_32 |
||
94 | 1 | Alexander Protsenko | |
95 | h3. Logical (shifted register) |
||
96 | |||
97 | 4 | Alexander Protsenko | ### AND (shifted register). Bitwise AND |
98 | Specification: and_bitwise, and_bitwise_32 |
||
99 | ### ANDS (shifted register). Bitwise AND and set flags |
||
100 | Specification: ands_bitwise, ands_bitwise_32 |
||
101 | ### BIC (shifted register). Bitwise bit clear |
||
102 | Specification: bic_bitwise, bic_bitwise_32 |
||
103 | ### BICS (shifted register). Bitwise bit clear and set flags |
||
104 | Specification: bics_bitwise, bics_bitwise_32 |
||
105 | ### EON (shifted register). Bitwise exclusive OR NOT |
||
106 | Specification: eon_bitwise, eon_bitwise_32 |
||
107 | ### EOR (shifted register). Bitwise exclusive OR |
||
108 | Specification: eor_bitwise, eor_bitwise_32 |
||
109 | ### ORR (shifted register). Bitwise inclusive OR |
||
110 | Specification: orr_bitwise, orr_bitwise_32 |
||
111 | ### MVN. Bitwise NOT |
||
112 | Specification: mvn_bitwise, mvn_bitwise_32 |
||
113 | ### ORN (shifted register). Bitwise inclusive OR NOT |
||
114 | Specification: orn_bitwise, orn_bitwise_32 |
||
115 | ### TST (shifted register). Test bits |
||
116 | Specification: tst_bitwise, tst_bitwise_32 |
||
117 | |||
118 | h3. Move (register) |
||
119 | |||
120 | ### MOV (register). Move register |
||
121 | Specification: mov_reg, mov_reg_32 |
||
122 | ### MOV (to/from SP). Move register to SP or move SP to register |
||
123 | Specification: mov_sp, mov_sp_32 |
||
124 | 3 | Alexander Protsenko | |
125 | [47]: madd |
||
126 | [48]: madd_32 |
||
127 | [49]: msub |
||
128 | [50]: msub_32 |
||
129 | [51]: mneg |
||
130 | [52]: mneg_32 |
||
131 | [53]: mul |
||
132 | [54]: mul_32 |
||
133 | [55]: smaddl |
||
134 | [56]: smsubl |
||
135 | [57]: smnegl |
||
136 | [58]: smull |
||
137 | [59]: smulh |
||
138 | [60]: umaddl |
||
139 | [61]: umsubl |
||
140 | [62]: umnegl |
||
141 | [63]: umull |
||
142 | [64]: umulh |
||
143 | [65]: sdiv |
||
144 | [66]: sdiv_32 |
||
145 | [67]: udiv |
||
146 | [68]: udiv_32 |
||
147 | |||
148 | 1 | Alexander Protsenko | [115]: b |
149 | [116]: cbnz |
||
150 | [117]: cbnz_32 |
||
151 | [118]: cbz |
||
152 | [119]: cbz_32 |
||
153 | [120]: tbnz |
||
154 | [121]: tbz |
||
155 | [122]: b_imm |
||
156 | [123]: bl |
||
157 | [124]: blr |
||
158 | [125]: br |
||
159 | [126]: ret |
||
160 | [127]: ldr_postindex |
||
161 | [128]: str_postindex |
||
162 | [129]: ldxr |
||
163 | [130]: ldxr_32 |
||
164 | [131]: ldxrb_32 |
||
165 | [132]: ldxrh_32 |
||
166 | [133]: ldxp |
||
167 | [134]: ldxp_32 |
||
168 | [135]: stxr |
||
169 | [136]: stxr_32 |
||
170 | [137]: stxrb_32 |
||
171 | [138]: stxrh_32 |
||
172 | [139]: stxp |
||
173 | [140]: stxp_32 |
||
174 | [141]: ldar |
||
175 | [142]: ldar_32 |
||
176 | [143]: ldarb |
||
177 | [144]: ldarh |
||
178 | [145]: stlr |
||
179 | [146]: stlr_32 |
||
180 | [147]: stlrb |
||
181 | [148]: stlrh |
||
182 | [149]: ldaxr |
||
183 | [150]: ldaxr_32 |
||
184 | [151]: ldaxrb_32 |
||
185 | [152]: ldaxrh_32 |
||
186 | [153]: ldaxp |
||
187 | [154]: ldaxp_32 |
||
188 | [155]: stlxr |
||
189 | [156]: stlxr_32 |
||
190 | [157]: stlxrb_32 |
||
191 | [158]: stlxrh_32 |
||
192 | [159]: stlxp |
||
193 | [160]: stlxp_32 |
||
194 | [161]: svc |
||
195 | [162]: hvc |
||
196 | [163]: smc |
||
197 | [164]: eret |
||
198 | [165]: brk |
||
199 | [166]: hlt |
||
200 | [167]: dcps1 |
||
201 | [168]: dcps2 |
||
202 | [169]: dcps3 |
||
203 | [170]: drps |
||
204 | [171]: mrs |
||
205 | [172]: msr |
||
206 | [173]: msr_dc |
||
207 | [174]: msr_ds |
||
208 | [175]: msr_ss |
||
209 | [176]: msr_uao |
||
210 | [177]: sys |
||
211 | [178]: sysl |
||
212 | [179]: ic |
||
213 | [180]: ic_reg |
||
214 | [181]: dc |
||
215 | [182]: at |
||
216 | [183]: tlbi |
||
217 | [184]: tlbi_reg |
||
218 | [185]: hint |
||
219 | [186]: nop |
||
220 | [187]: yield_op |
||
221 | [188]: wfe |
||
222 | [189]: wfi |
||
223 | [190]: sev |
||
224 | [191]: sevl |
||
225 | [192]: clrex |
||
226 | [193]: dsb |
||
227 | [194]: dmb |
||
228 | [195]: isb |
||
229 | |||
230 | [200]: psldr |
||
231 | [201]: psldr32 |