8-Bit Software

The BBC and Master Computer Public Domain Library

Back to 8BS Or Back to Disassembly


Page Last Altered:

AE3F GET

Submitted by Steve Fewell

Description:

Call OSRDCH operating system routine to wait for a key to be pressed on the keyboard
(if the keyboard buffer is empty) and return in A the next character read from the
Keyboard buffer.
Call the Set 8-bit Integer routine to put the ASCII value of the returned character
into the first byte of the IWA (setting the rest of the IWA to zero),
returning with A = &40 (as result was an Integer).


Disassembly for the GET routine

AE3F   032 224 255 20 E0 FF JSR &FFE0 OSRDCH
AE42   128 212 80 D4 BRA -44 --> &AE18

 


 Back to 8BS
Or