🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7337

reading keys from the keyboard (without exec)

#7337
From: Rik Harris
Date: Mon, 10 Dec 1990 11:32
36 lines
1850 bytes
***WARNING   If you are one of those squeamish people who don't
believe in ever accessing hardware without Exec's permission, then
don't read this article.

I have been spending some time trying to read keys from the amiga
keyboard.

As far as I can tell, I have set up everything required (as written in
the 1.3 version of the hardware reference manual), ie:
  a hook on the CIA interrupt vector
  enable CIA ints
  enable keyboard ints
  setup timer A (CIA) for handshaking

I read the key, setup the CIA for output clocked by timer A, and then
wait for the second interrupt to turn the line back around for another
key.

The problem is: once I hit a key, I get constant interrupts from then
on (on vector 3, the CIA vector).

I have looked at the MINIX code, and my code appears to be fuctionally
similar, but I can't see what the problem is.

If someone has done this, could you please send me email, so I can
discuss it. (or even post/mail some example code :-)

Any help greatly appreciated

Rik.
-- 
Rik Harris - edp367s@monu6.cc.monash.edu.au           | Build a system that
new address!  rik@sola.fcit.monash.edu.au             | even a fool can use,
Faculty of Computing and Information Technology,      | and only a fool will 
Monash University, Caulfield Campus, Australia        | want to use it.
Technical Details
Message-ID: <1990Dec10.113212.2038@monu6.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!usc!wuarchive!uunet!munnari.oz.au!goanna!minyos!monu6!edp367s

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!usc!wuarchive!uunet!munnari.oz.au!goanna!minyos!monu6!edp367s
From: edp367s@monu6.cc.monash.edu.au (Rik Harris)
Newsgroups: comp.sys.amiga.tech
Subject: reading keys from the keyboard (without exec)
Summary: How do I do it?
Keywords: keyboard programming anti-exec
Message-ID: <1990Dec10.113212.2038@monu6.cc.monash.edu.au>
Date: 10 Dec 90 11:32:12 GMT
Organization: Monash University, Caulfield Campus
Lines: 36