Japanese
PROGRAMMER'S GUIDEDebug support library
■ | Go forward
debug support library

1. guide


1.1 Purpose

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

1.2 Explanation

1.3 Limitations

The debug display screen uses normal scroll 0 with 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("An error occurred in the ~ function of main()"); .......... /* Program */ } void err(Uint8 *mess) { DBG_Printf("%s\n",mess); /* Display message */ DBG_Monitor(); /* Create a simple debug environment * }


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