Table of Contents for
Modern Assembly Language Programming with the ARM Processor
Close
Version ebook
/
Retour
Modern Assembly Language Programming with the ARM Processor
by Larry D. Pyeatt
Published by Newnes, 2016
Modern Assembly Language Programming with the ARM Processor
Cover image
Title page
Table of Contents
Copyright
List of Tables
List of Figures
List of Listings
Preface
Companion Website
Acknowledgments
Part I: Assembly as a Language
Chapter 1: Introduction
Chapter 2: GNU Assembly Syntax
Chapter 3: Load/Store and Branch Instructions
Chapter 4: Data Processing and Other Instructions
Chapter 5: Structured Programming
Chapter 6: Abstract Data Types
Part II: Performance Mathematics
Chapter 7: Integer Mathematics
Chapter 8: Non-Integral Mathematics
Chapter 9: The ARM Vector Floating Point Coprocessor
Chapter 10: The ARM NEON Extensions
10.10 Multiplication and Division
Part III: Accessing Devices
Chapter 11: Devices
Chapter 12: Pulse Modulation
Chapter 13: Common System Devices
Chapter 14: Running Without an Operating System
Index
Table of Contents
Cover image
Title page
Table of Contents
Copyright
List of Tables
List of Figures
List of Listings
Preface
Choice of Processor Family
General Approach
Companion Website
Acknowledgments
Part I: Assembly as a Language
Chapter 1: Introduction
Abstract
1.1 Reasons to Learn Assembly
1.2 The ARM Processor
1.3 Computer Data
1.4 Memory Layout of an Executing Program
1.5 Chapter Summary
Exercises
Chapter 2: GNU Assembly Syntax
Abstract
2.1 Structure of an Assembly Program
2.2 What the Assembler Does
2.3 GNU Assembly Directives
2.4 Chapter Summary
Exercises
Chapter 3: Load/Store and Branch Instructions
Abstract
3.1 CPU Components and Data Paths
3.2 ARM User Registers
3.3 Instruction Components
3.4 Load/Store Instructions
3.5 Branch Instructions
3.6 Pseudo-Instructions
3.7 Chapter Summary
Exercises
Chapter 4: Data Processing and Other Instructions
Abstract
4.1 Data Processing Instructions
4.2 Special Instructions
4.3 Pseudo-Instructions
4.4 Alphabetized List of ARM Instructions
4.5 Chapter Summary
Exercises
Chapter 5: Structured Programming
Abstract
5.1 Sequencing
5.2 Selection
5.3 Iteration
5.4 Subroutines
5.5 Aggregate Data Types
5.6 Chapter Summary
Exercises
Chapter 6: Abstract Data Types
Abstract
6.1 ADTs in Assembly Language
6.2 Word Frequency Counts
6.3 Ethics Case Study: Therac-25
6.4 Chapter Summary
Exercises
Part II: Performance Mathematics
Chapter 7: Integer Mathematics
Abstract
7.1 Subtraction by Addition
7.2 Binary Multiplication
7.3 Binary Division
7.4 Big Integer ADT
7.5 Chapter Summary
Exercises
Chapter 8: Non-Integral Mathematics
Abstract
8.1 Base Conversion of Fractional Numbers
8.2 Fractions and Bases
8.3 Fixed-Point Numbers
8.4 Fixed-Point Operations
8.5 Floating Point Numbers
8.6 Floating Point Operations
8.7 Computing Sine and Cosine
8.8 Ethics Case Study: Patriot Missile Failure
8.9 Chapter Summary
Exercises
Chapter 9: The ARM Vector Floating Point Coprocessor
Abstract
9.1 Vector Floating Point Overview
9.2 Floating Point Status and Control Register
9.3 Register Usage Rules
9.4 Load/Store Instructions
9.5 Data Processing Instructions
9.6 Data Movement Instructions
9.7 Data Conversion Instructions
9.8 Floating Point Sine Function
9.9 Alphabetized List of VFP Instructions
9.10 Chapter Summary
Exercises
Chapter 10: The ARM NEON Extensions
Abstract
10.1 NEON Intrinsics
10.2 Instruction Syntax
10.3 Load and Store Instructions
10.4 Data Movement Instructions
10.5 Data Conversion
10.6 Comparison Operations
10.7 Bitwise Logical Operations
10.8 Shift Instructions
10.9 Arithmetic Instructions
10.10 Multiplication and Division
10.11 Pseudo-Instructions
10.12 Performance Mathematics: A Final Look at Sine
10.13 Alphabetized List of NEON Instructions
10.14 Chapter Summary
Part III: Accessing Devices
Chapter 11: Devices
Abstract
11.1 Accessing Devices Directly Under Linux
11.2 General Purpose Digital Input/Output
11.3 Chapter Summary
Exercises
Chapter 12: Pulse Modulation
Abstract
12.1 Pulse Density Modulation
12.2 Pulse Width Modulation
12.3 Raspberry Pi PWM Device
12.4 pcDuino PWM Device
12.5 Chapter Summary
Exercises
Chapter 13: Common System Devices
Abstract
13.1 Clock Management Device
13.2 Serial Communications
13.3 Chapter Summary
Exercises
Chapter 14: Running Without an Operating System
Abstract
14.1 ARM CPU Modes
14.2 Exception Processing
14.3 The Boot Process
14.4 Writing a Bare-Metal Program
14.5 Using an Interrupt
14.6 ARM Processor Profiles
14.7 Chapter Summary
Exercises
Index
List of tables
Tables in Chapter 1
Table 1.1
Table 1.2
Table 1.3
Table 1.4
Table 1.5
Table 1.6
Table 1.7
Table 1.8
Table 1.9
Tables in Chapter 3
Table 3.1
Table 3.2
Table 3.3
Table 3.4
Table 3.5
Tables in Chapter 4
Table 4.1
Table 4.2
Tables in Chapter 8
Table 8.1
Table 8.2
Table 8.3
Table 8.4
Tables in Chapter 9
Table 9.1
Table 9.2
Tables in Chapter 10
Table 10.1
Table 10.2
Table 10.3
Table 10.4
Tables in Chapter 11
Table 11.1
Table 11.2
Table 11.3
Table 11.4
Table 11.5
Table 11.6
Table 11.7
Table 11.8
Table 11.9
Tables in Chapter 12
Table 12.1
Table 12.2
Table 12.3
Table 12.4
Table 12.5
Tables in Chapter 13
Table 13.1
Table 13.2
Table 13.3
Table 13.4
Table 13.5
Table 13.6
Table 13.7
Table 13.8
Table 13.9
Table 13.10
Table 13.11
Table 13.12
Table 13.13
Table 13.14
Table 13.15
Table 13.16
Table 13.17
Table 13.18
Table 13.19
Table 13.20
Table 13.21
Table 13.22
Table 13.23
Table 13.24
Table 13.25
Table 13.26
Tables in Chapter 14
Table 14.1
Table 14.2
Table 14.3
List of figures
Figures in Chapter 1
Figure 1.1
Figure 1.2
Figure 1.3
Figure 1.4
Figure 1.5
Figure 1.6
Figure 1.7
Figures in Chapter 2
Listing 2.1
Listing 2.2
Listing 2.3
Figure 2.1
Listing 2.4
Listing 2.5
Listing 2.6
Figures in Chapter 3
Figure 3.1
Figure 3.2
Figure 3.3
Figures in Chapter 5
Listing 5.1
Listing 5.2
Listing 5.3
Listing 5.4
Listing 5.5
Listing 5.6
Listing 5.7
Listing 5.8
Listing 5.9
Listing 5.10
Listing 5.11
Listing 5.12
Listing 5.13
Listing 5.14
Listing 5.15
Figure 5.1
Listing 5.16
Listing 5.17
Listing 5.18
Listing 5.19
Listing 5.20
Listing 5.21
Listing 5.22
Listing 5.23
Listing 5.24
Listing 5.25
Listing 5.26
Listing 5.27
Listing 5.28
Listing 5.29
Listing 5.30
Listing 5.31
Listing 5.32
Listing 5.33
Listing 5.34
Listing 5.35
Listing 5.36
Listing 5.37
Listing 5.38
Listing 5.39
Listing 5.40
Figures in Chapter 6
Listing 6.1
Listing 6.2
Listing 6.3
Listing 6.4
Listing 6.5
Listing 6.6
Listing 6.7
Listing 6.8
Listing 6.9
Figure 6.1
Listing 6.10
Figure 6.2
Figure 6.3
Listing 6.11
Figures in Chapter 7
Algorithm 1
Listing 7.1
Listing 7.2
Listing 7.3
Figure 7.1
Figure 7.2
Figure 7.3
Figure 7.4
Figure 7.5
Listing 7.4
Listing 7.5
Listing 7.6
Listing 7.7
Listing 7.8
Listing 7.9
Listing 7.10
Figures in Chapter 8
Figure 8.1
Listing 8.1
Listing 8.2
Listing 8.3
Listing 8.4
Listing 8.5
Listing 8.6
Listing 8.7
Listing 8.8
Figures in Chapter 9
Figure 9.1
Figure 9.2
Listing 9.1
Listing 9.2
Listing 9.3
Listing 9.4
Figures in Chapter 10
Figure 10.1
Figure 10.2
Figure 10.3
Figure 10.4
Figure 10.5
Figure 10.6
Figure 10.7
Figure 10.8
Figure 10.9
Figure 10.10
Listing 10.1
Listing 10.2
Figures in Chapter 11
Figure 11.1
Listing 11.1
Listing 11.2
Figure 11.2
Listing 11.3
Figure 11.3
Figure 11.4
Figure 11.5
Listing 11.4
Listing 11.5
Listing 11.6
Figure 11.6
Figure 11.7
Figures in Chapter 12
Figure 12.1
Figure 12.2
Figures in Chapter 13
Figure 13.1
Figure 13.2
Listing 13.1
Figures in Chapter 14
Figure 14.1
Listing 14.1
Figure 14.2
Figure 14.3
Listing 14.2
Listing 14.3
Listing 14.4
Listing 14.5
Listing 14.6
Listing 14.7
Listing 14.8
Listing 14.9
Listing 14.10
Listing 14.12
Listing 14.13
Listing 14.11
Listing 14.14
Listing 14.15
Listing 14.16
Listing 14.17
Listing 14.18
Landmarks
Cover
Title page
Table of contents
iv
xiii
xiv
xv
xvi
xvii
xviii
xix
xxi
xxii
xxiii
xxv
xxvii
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
468
469
470
471
472
473
474
475
476