<<< Lab Description | Index | IO.H Macros >>> |
In order to write useful programs, we need to be able to handle console input and output.
For example, a typical numeric input function
Accepts a string of character codes representing a number.
Converts the characters to a 2's complement in a register.
Stores the value in a memory location associated with some variable name.
A numeric output function
Starts with a 2's complement number in a register.
Converts value to a string of characters that represent the number.
Outputs the string.
<<< Lab Description | Index | IO.H Macros >>> |