h6. [[OS SWI Calls]] h6(. » [[OS_Byte]] h6((. » OS_Byte 138 h2. OS_Byte 138 h5. (SWI &06) |_<^{width:3em}. Entry | | |<^. R0|<^. 138 (&8A) | |<^. R1|<^. [[Buffer Numbers|Buffer number]] | |<^. R2|<^. Byte to insert | |_<^{width:3em}. Exit|_<^. | |<^. R0|<^. Preserved | |<^. R1|<^. Preserved | |<^. R2|<^. Preserved | |\2<^. C flag set if buffer was full, otherwise clear | h4. Use The purpose of this call is to insert a byte into a buffer. h4. Notes 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. h4. See also * [[Buffer Numbers]] * [[OS_Byte]]