21948
Transcript of 21948
-
8/11/2019 21948
1/2
Errors in The Definitive Guide to the ARM Cortex-M3
28-July-2008
Page xviii, second item in bulletin list:
Assembly code in generalized syntax; items inside ! must be re"laced by real register names:#---
Page $% &near bottom o' t(e "age)
*(e +*./01 bit# s(ould be +*./01 bit#
---
Page 34 &near to" o' t(e "age)
*(e address 0x00000000 is used as t(e starting value 'or t(e 56P7#
*(is s(ould be
*(e address 0x00000000 is used to store t(e starting value 'or t(e 56P7#
---
Page 32
ue to an editing error, t(e diagrams on t(is "age are incorrect7 *(e 'ollo9ing are t(e corrected
diagrams:
Main Program ...
; R0 = X, R1 = Y, R2 = Z
BL function1
; Back to main program
; R0 = X, R1 = Y, R2 = Z
... ; next instructions
function1
P!" #R0$R2% ; !tore R0, R1, R2 to stack
... ; &xecuting task 'R0, R1 an( R2
; cou)( *e c+ange(
P-P #R0$R2% ; restore R0, R1, R2BX LR ; Return
Subroutine
igure $744 : 6tac "eration basics: 5ulti"le .egister 6tac "eration
Main Program ...
; R0 = X, R1 = Y, R2 = Z
BL function1
; Back to main program
; R0 = X, R1 = Y, R2 = Z
... ; next instructions
function1P!" #R0$R2, LR% ; !ae registers
; inc)u(ing )ink register
... ; &xecuting task 'R0, R1 an( R2
; cou)( *e c+ange(
P-P #R0$R2, P/% ; Restore registers an(
; return
Subroutine
igure $742 : 6tac "eration basics: +ombining 6tac PP and .< 6igned greater set and ? set, or clear and
-
8/11/2019 21948
2/2
t(an or e@ual ? clear & ?)
---
Page B2 : Cit-band vs Cit Cang box
Cit-band commonly re'ers to driving DE "ins under so't9are control to "rovide serial
communication 'unctions7# s(ould be
Cit-bang commonly re'ers to driving DE "ins under so't9are control to "rovide serial
communication 'unctions7
---
Page 44%, table F74, im"rovement and correction in descri"tions