Reading from Keyboard

Reading from Keyboard - Through emulator: MOVE.B #6,D0...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Reading from Keyboard: Read Keyboard input through emulator: MOVE.B #5,d0 TRAP #15 Read Keyboard input through ACIA: charin MOVE.B ACIASR,D0 BTST.B #0,D0 BEQ charin MOVE.B ACIA_I_DR,D1 . Read Keyboard input through PIA: MOVE.B PBDR1,D1 Output:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Through emulator: MOVE.B #6,D0 ;Make sure that D1.B holds the character TRAP #15 Through ACIA: charout MOVE.B ACIASR,D0 BTST.B #1,D0 BEQ charout MOVE.B D1,ACIA_O_DR Through PIA: MOVE.B D1,PADR1...
View Full Document

This note was uploaded on 04/17/2008 for the course CE 0306-250-0 taught by Professor Melton during the Fall '07 term at RIT.

Ask a homework question - tutors are online