Skip to Content
Computers as Components, 2nd Edition
book

Computers as Components, 2nd Edition

by Marilyn Wolf
July 2008
Intermediate to advanced
544 pages
16h 52m
English
Morgan Kaufmann
Content preview from Computers as Components, 2nd Edition
74 CHAPTER 2 Instruction Sets
to return. To properly return, we must save the PC value when the procedure/
function is called and, when the procedure is finished, set the PC to the address of
the instruction just after the call to the procedure. (You don’t want to endlessly
execute the procedure,after all.) The branch-and-link instruction is used in theARM
for procedure calls. For instance,
BL foo
will perform a branch and link to the code starting at location foo (using PC-relative
addressing,of course).The branch and link is much like a branch,except that before
branching it stores the current PC value in r14. Thus, to return from a procedure,
you
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computers as Components, 3rd Edition

Computers as Components, 3rd Edition

Marilyn Wolf
Computer System Designs: System-on-Chip

Computer System Designs: System-on-Chip

Michael J. Flynn, Wayne Luk
PC Hardware in a Nutshell, 3rd Edition

PC Hardware in a Nutshell, 3rd Edition

Robert Bruce Thompson, Barbara Fritchman Thompson

Publisher Resources

ISBN: 9780123743978