Hitachi S10mini Hardware Manual page 55

Option j.net
Hide thumbs Also See for S10mini:
Table of Contents

Advertisement

4 USER GUIDE
J_RCV
Function
Link Procedure
long
(* j_rcv)();
long
rtn;
struct sr_para
j_rcv=0xa00406;
rtn=(*j_rcv)(padr);
The assembly language guarantees the contents of registers other than the
DO register that stores return codes. (In C, these registers are transparent to
the user.)
The J_RCV subroutine uses 128 bytes of the user program stack.
Parameters
struct sr_para {
unsigned char mdl;
unsigned char sid;
unsigned char net;
unsigned char fu;
unsigned long adr;
unsigned short len;
} ;
Captures as many bytes of data as specified from the external device connected
to J.STATION into the receive area specified by parameters.
C
*padr;
/* Module No. (= 0 for main module; = 1 for sub-module) */
/* Station ID (/01 to /1F) */
/* Net No. (= 0 for N1; = 1 for N2) */
/* Unoccupied */
/* Starting address of received data */
/* Number of bytes of received data (/01 to /200) */
Assembly language
movea.l
#$a00406,a0
movea.l
#sr_para,-(sp)
jsr
(a0)
addq.l
#4,sp
sr_para:
Parameter
CAUTION
4-28

Advertisement

Table of Contents
loading

Table of Contents