Hardware Reference
In-Depth Information
4
Advanced Assembly
Programming
4.1 Objectives
Make subroutine calls
Perform terminal I/O by calling
D-Bug12 library functions
Configure an I/O pin for input or for
output
Use HCS12 I/O ports to interface
with simple I/O devices such as
LEDs, seven-segment displays, and
DIP switches
Use an HCS12 I/O pin to generate
waveforms and make sounds
Write subroutines to create time
delays that are a multiple of certain
base values
After completing this chapter, you should
be able to
Explain the reason why the subroutine
is useful
Explain the issues involved in a sub-
routine call
Write subroutines to perform arith-
metic and string processing operations
Access parameters stored in the stack
and manipulate stack data structure
Perform binary-to-ASCII string and
ASCII string-to-binary conversion
Write subroutines to perform certain
functions
 
Search WWH ::




Custom Search