ulxutil.h 2 KB
/*
 *  F i l e N a m e  :  U L X U T I L . H
 *
 ****************************************************************************
 *                   (C) CopyRight ALPS Electric Co., Ltd. 1996
 ****************************************************************************
 *  Version
 *
 *  ver     Date
 *  ----  --------
 *  1.00  '95-12-20  Initial revision .
 ****************************************************************************
*/
/*===========================================*/
/* ULXUTIL.CΎ͎ގ̎                      */
/*===========================================*/


#include <ultra64.h>

void ulxPrint0(u16 x, u16 y, u16 color, u8* form);
void ulxPrint1(u16 x, u16 y, u16 color, u8* form, u32 data1);
#define ulxPrint2(x, y, c, f, d1, d2)  ulxPrint3(x, y, c, f, d1, d2, d2)
void ulxPrint3(u16 x, u16 y, u16 color, u8* form, u32 data1, u32 data2, u32 data3);

void Disp_Ready( u16, u16, u16 );
void Disp_Fin( void );
void ClrDisp( void ) ;
void Disp1DigHex( u8, u16, u16, u16 ) ;
void ListDisp( u16, u16, u16, u8 **,    u16, u16, u16, u8 **, u16 ) ;     

u8   GetStrLength( u8 * );
u8   I2H( u8 ) ;
u8   IncDig( u8 ) ;
u8   DecDig( u8 ) ;
void MakeRand(u8 *, u32 ) ;
u32  Rand32( void ) ;

u16  InitControllers( void );
u16  InCtrlData( void ) ;
void GetChr( void ) ;
void Wait_Timer( u16  ) ;
u8   InDig8( u8, u16, u16, u16, u16 ) ;
u8   InDig8A(u8, u16, u16, u16 ) ;
u8   InDigFlg( u8, u16, u16, u16 ) ;
u16  InDig16( u16, u16, u16, u16 ) ;
u32  InDig32( u32, u16, u16, u16 ) ;
u8   GetNumFlg( u8, u8 *, u16, u16, u16 ) ;
u8   GetNum8( u8, u8 *, u16, u16, u16 ) ;
u8   GetNum8A( u8, u8 *, u16, u16, u16 ) ;
u16  GetNum16( u16, u8 *, u16, u16, u16 ) ;
u32  GetNum32( u32, u8 *, u16, u16, u16 ) ;
u16  SelStr1( u16, u16, u16, u8 **, u16, u16 ) ;
u16  SelStr2( u16, u16, u16, u8 **, u16, u16, u16, u8 **, u16, u16 ) ;

void ClrBuf( void ) ;
void SwapBuf( void ) ;
void DispBufP( u8 * ) ;
void DispAdr( u8 *, u8 *, u16, u16, u16 ) ;
u32  CompBufChk( u32 ) ;
void CompBufDisp( void ) ;
void EditBuf( u8 *, u8 * ) ;