KeyboardPolling - bne POLL ;if the bit is not set jmp to...

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

View Full Document Right Arrow Icon
KBSTATUS equ $FF8006 KBDATA equ $FF8008 OUTPUTDEVICE equ $600002 ORG $8000 move.w #$80, D2 POLL move.b KBSTATUS, D1 AND D2, D1 ;MASK out the status bit cmp D1, D2 ;Check to see if the ready bit is set
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: bne POLL ;if the bit is not set jmp to POLL else output character move.b KBDATA, $600002 ;output character bra POLL...
View Full Document

Ask a homework question - tutors are online