x68000:cpsfdev
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
x68000:cpsfdev [2017/10/02 15:15] – <030 requires supervisor mode. better deinit. neko68k | x68000:cpsfdev [2019/08/27 20:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | This is a simple program demonstrating how to interface with a CPSF or CPSF-MD joystick. Using a second CPSF should follow the same technique but with joyport_b, IOC5 and PC5. It can be compiled with the Lydux toolchain with the following commands: | + | This is a simple program demonstrating how to interface with a CPSF or CPSF-MD joystick. Refer to the following page for joystick register [[joystick_regs|reference]]. Using a second CPSF should follow the same technique but with joyport_b, IOC5 and PC5. It can be compiled with the Lydux toolchain with the following commands: |
< | < | ||
Line 59: | Line 59: | ||
// quit on ESC | // quit on ESC | ||
- | if(_iocs_bitsns(0) == 2){ | + | if(_dos_inpout(0xFF)==0x1B){ |
*joycontrolword = 8; | *joycontrolword = 8; | ||
*joyport_c = joyport_c_old; | *joyport_c = joyport_c_old; |
x68000/cpsfdev.1506921334.txt.gz · Last modified: 2019/08/27 20:44 (external edit)