User Tools

Site Tools


x68000:joystick_regs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
x68000:joystick_regs [2017/10/03 15:20] – created neko68kx68000:joystick_regs [2019/08/27 20:45] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Joystick Registers ====== ====== Joystick Registers ======
 +The X68000 joystick interface is a [[http://nfggames.com/x68000/Development/datasheets/82C55%20-%20PPI.pdf|µPD82C55]]. The ADPCM sample rate and pan pot are also set through Port C of this device.
  
 ===== Register List ===== ===== Register List =====
Line 12: Line 13:
  
 Joystick # 1 (0xE9A001): \\  Joystick # 1 (0xE9A001): \\ 
-Joystick # 2 (0xE9A003):+Joystick # 2 (0xE9A003): \\ 
 + 
 +^MSX 2 Button^
  
 ^  7  ^  6  ^  5  ^  4  ^  3  ^  2  ^  1  ^  0  ^ ^  7  ^  6  ^  5  ^  4  ^  3  ^  2  ^  1  ^  0  ^
 |  0  |  TRG B  |  TRG A  |  0  |  RIGHT  |  LEFT  |  BACK  |  FORWARD  | |  0  |  TRG B  |  TRG A  |  0  |  RIGHT  |  LEFT  |  BACK  |  FORWARD  |
 +
 +^CPSF and CPSF-MD^
 +
 +PC4/PC5 = 0:
 +
 +^  7  ^  6  ^  5  ^  4  ^  3  ^  2  ^  1  ^  0  ^
 +|  0  |  TRG B  |  TRG A  |  0  |  RIGHT  |  LEFT  |  BACK  |  FORWARD  |
 +
 +PC4/PC5 = 1:
 +
 +^  7  ^  6  ^  5  ^  4  ^  3  ^  2  ^  1  ^  0  ^
 +|  0  |  START  |  TRG C  |  0  |  MODE  |  TRG X  |  TRG Y  |  TRG Z  |
  
 --- ---
Line 35: Line 50:
 --- ---
  
-Control Word bit set/reset (0xE9A007):+Control Word - Bit Set/Reset (0xE9A007):
  
 * Note: When MSB of this register is '0' the function is 8255 Port C line set/reset. * Note: When MSB of this register is '0' the function is 8255 Port C line set/reset.
Line 43: Line 58:
  
 ^Bits^Name^Description^ ^Bits^Name^Description^
-|  3~1  |  BITSEL  |Specify the position to manipulate. Each bit corresponds to its respective PCn line on the 8255.|+|  3~1  |  BITSEL  |Specify the position to manipulate. Values 0~7 correspond to its respective PCn line on the 8255.|
 |  0  |  DATA  |Value to set| |  0  |  DATA  |Value to set|
  
 --- ---
  
-Control Word Mode (0xE9A007):+Control Word Mode (0xE9A007):
  
 * Note: When MSB of this register is '1' the function is 8255 mode setting. * Note: When MSB of this register is '1' the function is 8255 mode setting.
x68000/joystick_regs.1507008044.txt.gz · Last modified: 2019/08/27 20:44 (external edit)