PROGRAMMER'S GUIDEDebug support library
■ | Advance
Debug support library

1. 1. guide


1.1 Purpose

By incorporating this library into the system under development, you can display character strings on the screen, enter data using the software keyboard, and read and write memory contents.

1.2 Commentary

1.3 Limitations

The debug display screen uses normal scroll 0 as priority 7.
Therefore, lower the priority of other sprite surfaces and scroll surfaces as necessary.

1.4 Program description example

An example of an actual program in C language is shown below.

#include "sega_scl.h"
#include "sega_dbg.h"


void err (Uint8 * mess);



Uint16 PadData;

main () { SCL_Vdp2Init (); DBG_Initial (& PadData, RGB16_COLOR (31,31,31), 0);

.......... / * Program * / if (......) err ("There was an error in the ~ function of main ()"); .......... / * Program * / } void err (Uint8 * mess) { DBG_Printf ("% s \ n", mess); / * Display message * / DBG_Monitor (); / * Make a simple debug environment * }


■ | Advance
PROGRAMMER'S GUIDEDebug support library
Copyright SEGA ENTERPRISES, LTD., 1997