
SECTION 6
Conversions and Interfaces
PEN*KEY
R
6100 Computer Programmer’s Reference Guide 6-73
INT 15h, Function AX = 01F5h: Exchange Network Packets
4000API
Allows access to the BIOS Media ACcess (MAC) layer for sending and then imĆ
mediately receiving a network packet. Set the COM channel for the proper comĆ
munication rate, parity, and bits before making this call.
On Entry:
AH = 01h
AL = 0F5h
ES:BX = Pointer to cbuf to receive
DS:DI = Pointer to cbuf to send
DL = COM port (0 or 1)
CX = Timeout value in milliseconds for send and receive
On Return:
AX = (Undefined)
DX = (Undefined)
CX = +Length or -Error
-21 = Packet too long for this address
-41 = CRC error in packet for this address
-A1 = Timeout, transmit operation did not complete
-B1 = Timeout, receive macro service has stalled
-C1 = Timeout, transmit complete, no receive activity
-FF = Timeout, receive activity
Code fragment:
cbuf struc
dd
? ; BIOS scratch area
db
? ; unused by BIOS
db
? ; BIOS scratch area
len
dw
? ; length of buffer data
dw
? ; BIOS scratch area
adr
db
? ; network address
dw
? ; BIOS scratch area
ctl
db
? ; frame control field
buffer
db
? ; dup(?); frame i-field buffer
dw
? ; BIOS scratch area
cbuf ends
INT 15h, Function AX = 01F8h: Adjust CX for Processor Speed
4000API
Programs that use software timing loops should use this function to adjust their
loop counts to match the processor speed. The input value of CX is assumed to
be the loop count for 4ĆMhz operation (8ĆMHz crystal speed).
On Entry:
AH = 01h
AL = 0F8h
CX = Count value for 4ĆMHz operation
On Return:
CX = Adjusted count value for current processor speed
Zero = 0 = No counter underflow error
1 = Counter value underflowed
Carry =0 = No counter overflow error
1 = Counter value overflowed
6. Conversions and
Interfaces
Содержание PEN*KEY 6100
Страница 1: ...PEN KEYR 6100 Computer PROGRAMMER S REFERENCE GUIDE P N 977 054 001 Revision B December 2000 ...
Страница 14: ...CONTENTS xii PEN KEYR 6100 Computer Programmer s Reference Guide ...
Страница 22: ...Preface 8 PEN KEYR 6100 Computer Programmer s Reference Guide PREFACE ...
Страница 112: ...SECTION 4 Power Management 4 10 PEN KEYR 6100 Computer Programmer s Reference Guide 4 Power Management ...
Страница 318: ...GENERAL INDEX Index 6 PEN KEYR 6100 Computer Programmer s Reference Guide ...