This preview shows page 1. Sign up to view the full content.
Unformatted text preview: directly into the third byte of the ‘Character output from operand’ instruc-tion that would write out the character. Now, let’s code the program using direct addressing. That is, the operand specifier for each ‘Character output from operand’ instruction should contain the address of the character to be output rather than the character itself. Therefore, we must change the instruction specifier from 00011 1 11 )1 h7x to 00011 1 10 )0 h7x We must also change the operand specifier from the ASCII character to the address describing where the ASCII character is stored in memory. How do we know what the address is? We must store the character in a byte...
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10