What is your ports adressation ?
VELESOFT
Добавлено через 33 минуты
I write new fitmware for my K-MOUSE TURBO interface
http://velesoft.speccy.cz/kmturbo-cz.htm
New K-MOUSE 2008 features:
- kempston mouse+wheel support
- add detect port FEDF
- add master/slave switch
- master interface use kempston joystick port
- slave interface use fuller joystick port
- is possible read port 7FFD (last 8bit writed value) - this feature remove crash on original ZX128/+2 (this computers contain HW bug and is impossible read port 7FFD)
- return to data bus correct low 8bit adress (#FF) of interrupt vector (remove problem with uncomplette IM2 vector table)
- add port FEDF for detection K-MOUSE 2008
//Ports adressation:
//master K-MOUSE ports
//====================
//buttons = 64223(#FADF) 1xxxx0x0 11011111 ( D4-D7=4bit wheel counter )
//X-AXIS = 64479(#FBDF) 1xxxx0x1 11011111
//Y-AXIS = 65503(#FFDF) 1xxxx1x1 11011111
//detect = 65247(#FEDF) 1xxxx1x0 11011111 ( return always byte 128 }
//A-MOUSE/KEMPSTON JOY = 31 (#1F) 00011111 ( port #1F is available on master + switch EN31 on )
//slave K-MOUSE ports
//====================
//buttons = 31455(#7ADF) 0xxxx0x0 11011111 ( D4-D7=4bit wheel counter )
//X-AXIS = 31711(#7BDF) 0xxxx0x1 11011111
//Y-AXIS = 32735(#7FDF) 0xxxx1x1 11011111
//detect = 32479(#7EDF) 0xxxx1x0 11011111 ( return always byte 128 }
//FULLER JOYSTICK =127 (#7F) 01111111 ( port #7F is available on slave mode always )
//K-MOUSE: 3 buttons + wheel support
//mouse buttons port 64223(#FADF):
// D0- right button
// D1- left button
// D2- middle button
// D3- always log.1
// D4- \
// D5- \ 4bit mouse
// D6- / wheel counter
// D7- /
//(press button = log.0)
//AMIGA-MOUSE / KEMPSTON JOYSTICK: port 31(#1F)
//D0- XB / joy RIGHT
//D1- YB / joy LEFT
//D2- XA / joy DOWN
//D3- YA / joy UP
//D4- left button / joy FIRE 1
//D5- right button / joy FIRE 2
//D6- middle button / joy FIRE 3
//D7- always log.0
//(all signals on port #1F is active in log.1)
//FULLER JOYSTICK: port 127(#7F)
//D0- YA / joy RIGHT
//D1- XA / joy LEFT
//D2- YB / joy DOWN
//D3- XB / joy UP
//D4- always log.1
//D5- middle button / joy FIRE 3
//D5- right button / joy FIRE 2
//D7- left button / joy FIRE 1
//(all signals on port #7F is active in log.0)

