Figure 2–6. Command Setup for the Debugger (Continued)
(b) Sample initdb.bat file to use with the debugger and emulator
PATH statement
Environment
variables and
I/O space
Reset the
emulator
Invoking the new or modified batch file
-
-
Modifying the PATH statement
Define a path to the debugger directory. The general format for doing this is:
PATH=C:\C2XXHLL
This allows you to invoke the debugger without specifying the name of the di-
rectory that contains the debugger executable file.
-
-
PATH=C:\C2XXHLL;%PATH%
SET D_DIR=C:\C2XXHLL
SET D_SRC=C:\C2XXCODE
SET D_OPTIONS=–P 280
EMURST
If you modify the autoexec.bat file, be sure to invoke it before invoking the
debugger for the first time. To invoke this file, enter:
AUTOEXEC
If you create an initdb.bat file, you must invoke it before invoking the
debugger for the first time. If you are using MS-Windows, invoke initdb.bat
before entering MS-Windows. You'll need to invoke initdb.bat any time that
you power up or reboot your PC. To invoke this file, enter:
INITDB
If you are modifying an autoexec that already contains a PATH statement,
simply include ;C:\c2xxhll at the end of the statement, as shown in
Figure 2–6 (a) .
If you are creating an initdb.bat file, use a different format for the PATH
statement, as shown in Figure 2–6 (b) :
PATH=C:\C2XXHLL;%PATH%
The addition of ;%path% ensures that this PATH statement won't undo
PATH statements in any other batch files (including the autoexec.bat file).
Installing the Emulator and C Source Debugger With MS-Windows
Step 4: Setting Up the Debugger Environment
2-11