=> R0 = 138
R1 = buffer number
R2 = byte to insert
<= R0-R2 preserved
C flag set if buffer was full, otherwise clear
This call inserts a byte into a buffer. While inserting 9 bytes into the mouse buffer you must disable interrupts to prevent a real mouse transition from being entered into the middle of your data.
Note that characters 0 and 128-255 are inserted into the keyboard buffer as two bytes 0,n to distinguish them from function keys - if you are inserting strings into the keyboard buffer you should be careful to check for top bit set characters and preceed them with a 0 byte, else you may erroneously insert function key keypresses - 'Ì' is equivalent to pressing F12, 'ü' to pressing Control, Shift F12, which in the desktop will respectively generate a CLI prompt, and initiate desktop shutdown.
See PRM 1, page 168
|
|
|