Skip to main content

Assembly Language Programming

  • Chapter
  • First Online:
Introduction to Embedded Systems

Abstract

Programming provides us with the flexibility to use the same hardware core for different applications. A device whose performance can be modified through some sort of instructions is called a programmable or configurable device. Most I/O ports and peripherals are examples of these blocks; their configuration should be part of our program design.

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 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover 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

Notes

  1. 1.

    Texas Instruments has many code examples available for MSP430 at http://msp430.com.

  2. 2.

    This hands on exercise is adapted from TI with permission

  3. 3.

    Strictly speaking, the opcode is part of the machine language code only and the mnemonic is the assembly language name for the opcode.

  4. 4.

    For a more in depth treatment than the introductory level provided in this book, the reader may consult the document “MSP430 IAR: Reference Guide for Texas Instruments’ MSP430 Microcontroller Family”, published by IAR Systems Inc. and downloadable from the Internet.

  5. 5.

    Unfortunately, now and then TI edits the files and changes names. If one of the errors shown during assembly indicates unknown definition, first check spelling. If this is not the source of error, check for an updated header file.

  6. 6.

    An excellent and more in depth discussion about this topic can be found at http://en.wikipedia.org/wiki/Assembly_language. We encourage the reader to go to this site and also look several of the references listed therein.

  7. 7.

    Hence the name immediate mode.

  8. 8.

    It is meaningless to end a real world application with this command, just waiting until battery dries up!

  9. 9.

    Most information in this section follows the application report slaa042, available from Texas Instruments website. Yet, this report has the old names for the registers: SUMLO and SUMHI for current RESLO and RESHI, respectively.

  10. 10.

    The MSP430 CPU can run programs from the RAM space. This is not a feature of every microcontroller.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Manuel Jiménez .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer Science+Business Media New York

About this chapter

Cite this chapter

Jiménez, M., Palomera, R., Couvertier, I. (2014). Assembly Language Programming. In: Introduction to Embedded Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-3143-5_4

Download citation

  • DOI: https://doi.org/10.1007/978-1-4614-3143-5_4

  • Published:

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4614-3142-8

  • Online ISBN: 978-1-4614-3143-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics