A89: 89 keyboard


[Prev][Next][Index][Thread]

A89: 89 keyboard




i use the following routine to directly read the 89's keyboard (after 
disabling the interrupts):

readkey:
  move.w   d0,($600018)
  nop
  nop
  nop
  nop
  nop
  nop
  nop
  nop
  clr.w    d0
  move.b   ($60001b),d0
  rts

input is d0=keymask (ie %111111110 for arrows)
output is d0=bitmap of keys for that mask

ok..im not too sure how to explain this, so bear with me...this works 
fine, but when i press keys in a different row that have the same bits 
(for example, the "0" and "4" keys which have the same bits as the up 
arrow and down arrow) and EITHER the up or down arrow, it tells me they 
are BOTH pressed...i think i know why this is from looking at 
explanations of how the 89 keyboard is laid out on the circuit board, 
but this could obviously cause problems in games..what i want to know is 
if anyone else has encountered this and if it is possible to detect more 
accurately which keys are being pressed..


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com