AMX 86 Procedures
K
A
DAK
241
ajinb ajinbajinw ajinwPurpose Read an 8-Bit Input Port (Byte)
Read a 16-Bit Input Port (Word)
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup int portno;
char portbyte;
short int portword;
.
.
portbyte = ajinb(portno);
portword = ajinw(portno);
Where portno is the port number.
portbyte is the data byte read.
portword is the data word read.
Results Interrupts are untouched.
See Also ajoutb, ajoutw