Intel i960 User Manual page 274

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

Language Implementation
Compiling this program produces assembly language similar to the
following:
_main:
ld
0xFE00FF00 , g4;
L5:
ld
0xFE00FF00 , g4;
bbc
0,g4,L5
callj
_service_device
b
L5
The following example shows an
IAC Breakpoint.
inter-agent communication (IAC) breakpoint to the processor. For
information on the IAC structure, see the i960 KB processor manual.
struct message {
unsigned short
unsigned char
unsigned char
unsigned int
unsigned int
unsigned int
} iac_struct;
/*
* This routine issues an IAC message to the local
* processor where the program resides.
* a pointer to a preformed IAC message as input and
* uses the synmovq instruction to send the IAC to the
* processor.
*/
asm void send_iac(struct message *base_msg)
{
%void return; reglit base_msg; tmpreg myreg; spillall;
lda 0xff000010, myreg
synmovq myreg, base_msg
%error;
Incorrect C call to send_iac
}
/*
#first template
#second template
field2;
field1;
message_type;
field3;
field4;
field5;
/* load local IAC address */
/* issue IAC message */
block that sends an
asm
It accepts
7
7-85

Advertisement

Table of Contents
loading

Table of Contents