home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16189 < prev    next >
Encoding:
Text File  |  1992-11-21  |  958 b   |  32 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!shogun
  3. From: shogun@DIALix.oz.au (Matthew Fitzgerald)
  4. Subject: Reading RAW key codes!
  5. Organization: DIALix Services, Perth, Western Australia
  6. Date: Sun, 22 Nov 92 03:26:35 GMT
  7. Message-ID: <1992Nov22.032635.21717@DIALix.oz.au>
  8. Keywords: Stop the god damn handshaking!
  9. Lines: 21
  10.  
  11. Hi, 
  12.  
  13. I have a problem, I am testing for a key from the keyboard (I am hardware
  14. coding by th way!) the following way:
  15.  
  16. loop:
  17.     move.b    $bfec01,d0
  18.     not.b    d0
  19.     ror.b    #1,d0
  20.     cmp.b    #$45,d0        ;ESC pressed??
  21.     bne    loop        ;no, loop back
  22.  
  23. The above works fine, except I get everything I type echoed back to the CLI
  24. when I quit out of my program, I read something about SP handshaking and the
  25. pulse high/low thingy, but no actual register coding of this, if anyone knows
  26. how to fix this (perhaps it is just an interrupt thingy, I may have to set
  27. a few bits - but who knows??)
  28.  
  29. Regards,
  30. Matt (Onodi of Epsilon)
  31.  
  32.