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

ADB sample code




Hello,


I am new to Macintosh programming.  I have to build this ADB device, so I need to write a little routine to test out something.

Basically, the routine is just waiting for a key to press then does a ADBOp.
However, I am not familiar with all the Data Types.  I have trouble compiling it.  Is there such defined type as Integer?  The Inside Macintosh book seems to indicate that there is such type.  

I would be very appreciated if someone can send me a sample code on GetKeys and ADBOp.  Basically, my routine will just wait in a loop waiting for a key press then use ADBop to send out a Listen Register 1 command and some 2bytes data.


Thanks so much in advance.


-thinh