h6. [[OS SWI Calls]] h6(. » [[OS_Byte]] h6((. » OS_Byte 221 - 228 h2. OS_Byte 221 - 228 h5. (SWI &06) |_<^{width:4em}. Entry | | |<^. R0|<^. 221 - 228 (&DD - &E5) | |<^. R1|<^. EOR value | |<^. R2|<^. AND value | |_<^{width:4em}. Exit|_<^. | |<^. R0|<^. Preserved | |<^. R1|<^. Previous value | |<^. R2|<^. Corrupted | h4. Meaning of value passed by R0 |_<^{width:4em}. R0|_<^{width:6em}. Range Affected|_<^{width:6em}. Default Value|_<^. Effect| |<^. 221|<^. &C0 - &CF|<^. 1|<^. Function keys (Print, F1-F9, cursor keys and copy [[OS_Byte 4|if acting as function keys]])| |<^. 222|<^. &D0 - &FF |<^. &80|<^. Return buffer code - 16| |<^. 223|<^. &E0 - &FF |<^. &90|<^. Return buffer code - 16| |<^. 224|<^. &F0 - &FF |<^. 0|<^. Discard | |<^. 225|<^. &80 - &8F |<^. 1|<^. Function keys (F10-F12, Insert)| |<^. 226|<^. &90 - &9F |<^.&D0 |<^. Return buffer code | |<^. 227|<^. &A0 - &AF |<^. &E0|<^. Return buffer code | |<^. 228|<^. &B0 - &BF |<^. &F0|<^. Return buffer code | h4. Use The purpose of this call is to read or write the interpretation of input values &80-&FF, which includes [[OS_Byte 221 - 228 Key Codes|codes generated by the function keys]]. h4. Notes The 128 buffer codes are divided into 8 blocks, and the block affected is chosen by R0. The value generated via R1 and R2 determines the interpretation of buffer codes: |_<^{width:4em}. Value|_<^. Interpretation| |<^. 0|<^. Discard | |<^. 1|<^. Expand function key number (code MOD 16)| |<^. 2|<^. Insert 0 byte followed by code | |<^. 3 - 255|<^. Insert (code MOD 16) + value| h4. See also * [[OS_Byte]] * [[OS_Byte 221 - 228 Key Codes]]