Skip to main content

Procedures and Macros

  • Chapter
  • First Online:
Guide to Assembly Language

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 3030 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to James T. Streib .

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics