Difference between revisions of "GeneveOS XOP Definitions"
Jump to navigation
Jump to search
(Created page with "== General usage of XOPs == == XOP five: Keyboard == {| class="xop5" | Input | R0 LSB | Scan mode |- | Output | R0 LSB | Scan mode |- | | R1 MSB | Scan code |- | | R2 MSB | Jo...") |
|||
Line 41: | Line 41: | ||
== XOP ten: Maths == | == XOP ten: Maths == | ||
[[Category:MDOS]] | |||
[[Category:Geneve]] | |||
[[Category:Programming]] |
Revision as of 23:34, 13 August 2011
General usage of XOPs
XOP five: Keyboard
Input | R0 LSB | Scan mode |
Output | R0 LSB | Scan mode |
R1 MSB | Scan code | |
R2 MSB | Joystick Y value (see TI, 8376) | |
R2 LSB | Joystick X value (see TI, 8377) | |
EQ bit | if a new key has been pressed |
The scan modes 0-5 are identical to those in the TI console. Scan mode 7 is specifically used to check the BREAK key (EQ set), and scan mode 8 returns the raw scan code in R1 MSB. If no key was pressed, R1 MSB contains 0xFF.