Using Simulated I/O - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Using Simulated I/O

Simulated I/O (SIMIO) lets programs use the UNIX file system, run UNIX
commands, and use the keyboard and display for input and output.
Your programs can use SIMIO by means of the I/O libraries and environment
dependent routines provided with the HP B3640 C Cross Compiler. Your
programs use the library functions when they open, close, read, or write to
files, etc. These simulated I/O functions are identical in both the
debugger/emulator and debugger/simulator to let you write programs that will
function correctly in both environments. Refer to the "Environment
Dependent Routines" chapter of your compiler manual for information on
using the C SIMIO libraries.
If you are using the Microtec Research, Inc., C compiler (HP B3640), your
programs can use SIMIO by means of the C routines supplied to you with the
debugger software. These routines can be found in a subdirectory of debugger
demo directory /usr/hp64000/demo/debug_env/sim68000 named "mri." Your
programs can use these functions to open, close, read, or write to files, etc, in
the debugger environment. See the "simio.c," "simio.h," and the "README"
files in the "mri" subdirectory for more information.
Your programs can also use simulated I/O by means of user-written assembly
code. If you are developing programs that use simulated I/O from assembly
code, refer to the Simulated I/O User's Guide for a complete description of
simulated I/O protocol.
This chapter shows you how to:
Enable simulated I/O.
Disable simulated I/O.
Set the keyboard I/O mode.
Redirect I/O.
Check resource usage.
Increase file resources.
Display the simulated I/O system report.
Chapter 4: Viewing Code and Data
Using Simulated I/O
163

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents