Академический Документы
Профессиональный Документы
Культура Документы
Step 3:
Step 4:
(after fetch & decode)
The real indirect address is loaded into the
The address of the “indirect” address
MDR
loaded into the MAR [PC + offset]
WRITING A CHARACTER TO THE MONITOR USING THE DISPLAY DATA REGISTER (DDR)
STI RO, DDR_ADDR
Note that before this instruction happened, a previous
DDR_ADDR .FILL xFE06
instruction should have checked DSR (Display Status
Step 5: Register) and made sure bit 15 was 1. This indicates
The special address xFE06 is copied from that the monitor is able to output another character.
the MDR into the MAR
LD R2, sub_w_addr
JSRR R2 ; works even if the
; subrountine is far
; from its caller
RET