Return to previous page Return to menu Go to next page

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, enter data using the software keyboard, and read and write memory contents.

1.2 Description

1.3 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 (); / * Use simple debugging environment * /

}


Return to previous page Return to menu Go to next page