Hitachi S10mini Hardware Manual page 53

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

Advertisement

4 USER GUIDE
J_SND
Function
Link Procedure
long
(* j_snd)();
long
rtn;
struct sr_para
j_snd=0xa00400;
rtn=(*j_snd)(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_SND subroutine uses 128 bytes of the user program stack.
Data transmission by the J_SND subroutine affects the I/O service refresh
cycle because it is synchronized with the I/O service.
Parameters
struct sr_para {
unsigned char mdl;
unsigned char sid;
unsigned char net;
unsigned char fu;
unsigned long adr;
unsigned short len;
} ;
Transmits as many bytes of data as specified from the area specified by
parameters to the external device connected to J.STATION.
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 transmitted data */
/* Number of bytes of transmitted data (/01 to /200) */
Assembly language
movea.l
#$a00400,a0
movea.l
#sr_para,-(sp)
jsr
(a0)
addq.l
#4,sp
sr_para:
Parameter
CAUTION
4-26

Advertisement

Table of Contents
loading

Table of Contents