Simulating I/O With A Debug Procedure; System Parameters Used With I/O Debug Procedures - Intel l2ICE User Manual

Integrated instrumentation and in-circuit emulation system
Table of Contents

Advertisement

Simulating I/O with a Debug Procedure

A debug procedure is a named group of PICE commands. To simulate I/O using a debug
procedure, map one or more I/O partitions to ICE and follow the keyword ICE with the name
of a previously-defined debug procedure, as follows:
*MAPIO 0 LENGTH 64T ICE(money)
Input
When the user program requests input, the PICE system calls the specified debug procedure,
and that procedure supplies the value. Use the following commands to define a debug proce­
dure called money that supplies 100 when the program reads port 2 and 65 when the program
reads port 4:
* DEFINE PROC money « DO
- *IF
■ . *PORTDATA-100T
. ■ *ELSEIF% 0** * 4 THEN
- - - *PORTDATA-65T
. . . *END
. . *END
- *END
The percent sign (%) identifies a system parameter passed to the debug procedure. Table 3-1
lists the system parameters used with I/O debug procedures.
System
Parameter
%0
%1
%2
To map the first I/O partition to ICE(money), enter the following:
*MAF(0 0 LENGTH 64T ICE(rooney)
*MAP!0 64T LENGTH 64T USER
*MAPIO
HAPIO ODDDDH LENGTH D0040H ICE MONEY
nAPIO 0D04DH LENGTH DOOflOH USER
If you run the example program cmaker.86 in Chapter 2, the console does not prompt for
input. Instead, the input is supplied by the debug procedure money.
Introduction to Using the PICE™ System
THEN
Table 3-1 System Parameters Used with I/O Debug Procedures
The port number.
TRUE for a read and FALSE for a write.
TRUE for a byte-port access; FALSE for a word-port access.
Description
3-23

Advertisement

Table of Contents
loading

Table of Contents