Specifications
Saturn The DBUGSAT Debugger 11-23
Psy-Q Development System
Debugging Your Program Using Psy-Q
To get you started with the Psy-Q DOS Debugger, this section provides a quick
guide to some of its most important features. Follow this on-line with the simple C
program SAMPLE.C (included with the software) and experiment with the
Debugger commands.
Due to the confidential nature of the information subject to a Sega developer’s
license, we cannot provide example Saturn source code. This sample program does
not refer to confidential Saturn hardware details; the intention is merely to
demonstrate some of the Debugger features.
To build the demo, change into the SAMPLE directory and compile the program
SAMPLE.C by entering the following command line:
ccsh -g -O0 -Xo$6010000 sample.c -osample.cpe,sample.sym
This calls the CCSH program to compile the C source. The -g switch tells CCSH to
produce full debugging information (necessary for Source Level debugging). The -o
switch specifies the output filenames.
This example will output the executable file SAMPLE.CPE and the Symbol File
SAMPLE.SYM.
At this stage you could execute the .CPE File by entering:
RUN SAMPLE
This would not be very useful however, as this example does not produce any Saturn
display; therefore, in order to examine the code you must debug the sample using
DBUGSH.
Start the Debugger by entering the following command line:
DBUGSH sample /e
In this case,
‘sample’
specifies the name of the Symbol File. The
/e
switch causes the
Debugger to also load the .CPE File (default = same name as the Symbol File but
with a .SYM extension).