1 * Some Q&D stuff to test BIOS console routines.
14 HELLO DC.B 'Greetings.',$0A,$0D,0
15 PROMPT DC.B 'Hit a key.',0
42 * 0 for not ready, -1 for ready for a character
48 LEA 4(SP),SP ; keep the flags
69 MOVEM.L A0,(PSP) ; update the pointer, keep the flags
79 * 0 for not ready, -1 for ready
82 MOVE.W #bconstat,-(SP)
85 LEA 4(SP),SP ; keep the flags
94 MOVE.L D0,-(PSP) ; scancode in high word
98 * ( --- scancode:ch|0 )
101 MOVE.W (PSP),-(PSP) ; duplicate flag word
102 BEQ.S coninnowx ; if not ready, don't wait
104 MOVE.L (PSP)+,(PSP) ; store scancode:ch
143 BNE.S testnowpause ; busy wait