Abstract
This chapter will first show the reader how procedures are implemented in assembly language. The implementation of macros is introduced next which is probably a new topic to most readers. Both procedures and macros are tools that allow programmers to save time by not having to rekey the same code over and over again, but there are important differences between the two mechanisms. The chapter then continues with the introduction of conditional assembly which can be a difficult concept for new assembly language programmers. Lastly, this chapter shows the beginning of the implementation of what might be called a macro calculator which simulates a one register (accumulator) computer.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Streib, J.T. (2020). Procedures and Macros. In: Guide to Assembly Language. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-35639-2_7
Download citation
DOI: https://doi.org/10.1007/978-3-030-35639-2_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-35638-5
Online ISBN: 978-3-030-35639-2
eBook Packages: Computer ScienceComputer Science (R0)