/*
This function downloads a single RTS instruction into the first word of the
Message Based Interface user global area. T h e identifier "exampleRTS"
is given to this executable block. Subsequent to S-record download, a
Message-Based Interface command is sent to invoke the named function
we've just downloaded. e.g. "exampleRTS".
*1
void downloadAndInvokeRTS(int ud /* unit descriptor */)
extern int strlen(const char *s);
static char *downloadCmd = "download exampleRTS();";
static char *Srecords[] =
"S00600004844521B", /* header record * /
"S2054010004E75E7", /* an RTS instr @ 0x401000 */
"S804401000AB" / * transfer addr = 0x401000 */
1
#define NRCDS (sizeof(Srecords)/sizeof(char*))
static char *invokeCmd = "exampleRTS();"
int ud, i;
/* Open the Message Based Interface */
ud = ibfind ("VXITECH");
/* Tell the Interface you're about to download a named block */
ibwrt (ud, downloadCmd, strlen(downloadCmd));
/* Download a single RTS instruction * /
for (i = 0; i < NRCDS; i++)
ibwrt (ud, Srecordstil, strlen(Srecordsi ii));
/* Tell the Interface to invoke the named block * /
ibwrt (ud, invokeCmd. strlen(invokeCmd));
1
4-15
Summary of Contents for 7064
Page 2: ...Racal Instruments...
Page 6: ...I 1 1 1 1 1...
Page 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Page 29: ...I I I I I I I I I I I I I I I I I I I...
Page 57: ...1 I I I I I I I I I I I I I I I I I I...
Page 77: ...1...
Page 111: ...0 00 0 00 tI I 4 0 0 I7 r i 6 4 7 4 7 0 T 6 0 0 7 28...
Page 112: ......
Page 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Page 115: ...7 32...
Page 148: ......
Page 164: ...I I I I I I I I I I 1 I I I I I I I I...
Page 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...