HP MC68360 User Manual page 408

Emulator / analyzer graphical user interface
Table of Contents

Advertisement

Chapter 11: Emulator/Analyzer Interface Commands
--SYMB--
Examples
The following short C code example should help illustrate how symbols are
maintained by SRU and referenced in your emulation commands.
File /users/dave/control.c:
int *port_one;
main ()
{
int port_value;
} /* end main */
File /system/project1/porthand.c:
#include "utils.c"
void process_port (int *port_num, int port_data)
{
static int i;
static int i2;
} /* end of process_port */
File /system/project1/utils.c:
delay()
{
int i,j;
int waste_time;
} /* end delay */
388
port_ptr = port_one;
port_value = 10;
process_port (port_ptr, port_value);
for (i = 0; i <= 64; i++) {
i2 = i * 2;
*port_num = port_data + i2;
delay();
{
static int i;
i = 3;
port_data = port_data + i;
}
}
for (i = 0; i <= 256000; i++)
for (j = 0; j <= 256000; j++)
waste_time = 0;

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68en36064780a

Table of Contents