/*============================================================================*/
/*
	ww_sys.h

	Wonder Witch 汎用マクロ

	Version		Date			Design		Comment
	--------------------------------------------------------------------
	1.00		2000/08/12		T.Tokdua

*/
/*============================================================================*/
#ifndef _WW_SYS_H_
#define _WW_SYS_H_

/*==============================================================================
//	INCLUDE
//============================================================================*/

/*==============================================================================
//	DEFINE
//============================================================================*/
#define BIOS_INLINE

/*--------------------------------------------------------------
//	スクリーン
//------------------------------------------------------------*/
#define SCR_WIDTH	(224)	/* スクリーン幅 */
#define SCR_HEIGHT	(144)	/* スクリーン高さ */
#define VSCR_WIDTH	(256)	/* 仮想スクリーン幅 */
#define VSCR_HEIGHT	(256)	/* 仮想スクリーン高さ */

#define SCR_FONT_HM		(0x8000)	/* フォント横反転 */
#define SCR_FONT_VM		(0x4000)	/* フォント縦反転 */
#define SCR_FONT_HMVM	(0xc000)	/* フォント縦横反転 */
#define SCR_FONT_PAL00	(0x0000)	/* フォントパレット０ */
#define SCR_FONT_PAL01	(0x0200)
#define SCR_FONT_PAL02	(0x0400)
#define SCR_FONT_PAL03	(0x0600)
#define SCR_FONT_PAL04	(0x0800)
#define SCR_FONT_PAL05	(0x0a00)
#define SCR_FONT_PAL06	(0x0c00)
#define SCR_FONT_PAL07	(0x0e00)
#define SCR_FONT_PAL08	(0x1000)
#define SCR_FONT_PAL09	(0x1200)
#define SCR_FONT_PAL10	(0x1400)
#define SCR_FONT_PAL11	(0x1600)
#define SCR_FONT_PAL12	(0x1800)
#define SCR_FONT_PAL13	(0x1a00)
#define SCR_FONT_PAL14	(0x1c00)
#define SCR_FONT_PAL15	(0x1e00)	/* フォントパレット１５ */

#define SPR_FONT_HM		(0x8000)	/* スプライト横反転 */
#define SPR_FONT_VM		(0x4000)	/* スプライト縦反転 */
#define SPR_FONT_HMVM	(0xc000)	/* スプライト縦横反転 */
#define SPR_FONT_PR		(0x2000)	/* スクリーン2より優先 */
#define SPR_FONT_CT		(0x1000)	/* スプライトウィンドウの外側部分を表示 */
#define SPR_FONT_PAL00	(0x0000)	/* スプライトパレット0(フォントパレット8と同じ) */
#define SPR_FONT_PAL01	(0x0200)
#define SPR_FONT_PAL02	(0x0400)
#define SPR_FONT_PAL03	(0x0600)
#define SPR_FONT_PAL04	(0x0800)
#define SPR_FONT_PAL05	(0x0a00)
#define SPR_FONT_PAL06	(0x0c00)
#define SPR_FONT_PAL07	(0x0e00)	/* スプライトパレット7(フォントパレット15と同じ) */

/*==============================================================================
//	TYPE DEFINE
//============================================================================*/
typedef unsigned char	u_char;
typedef unsigned short	u_short;
typedef unsigned int	u_int;
typedef unsigned long	u_long;

/*==============================================================================
//	ENUM
//============================================================================*/

/*==============================================================================
//	RESOURCE
//============================================================================*/

/*==============================================================================
//	GLOBAL
//============================================================================*/

/*==============================================================================
//	PROTTYPE
//============================================================================*/

/*==============================================================================
//	FUNCTION
//============================================================================*/
#endif
