;============================================================
;	「総合的なパーツ」定義 GENERIC.ASM
;
;					Program TAGOCHAN
;============================================================
INCLUDE	CHRDEF.INC

CODE	SEGMENT
START:
; -------------------- ヘッダ
	DB	'WSCD'		; ワンダースワンキャラクタデータシグネチャ
	DB	01h		; バージョン
	DB	01h		; ( 00h = 白黒 / 01h = カラー )
; -------------------- 各データのオフセットアドレス
	DW	OFFSET CHR	; キャラクタ
	DW	OFFSET PALET	; パレット
; -------------------- オブジェクトデータのオフセットアドレス
OBJECT	DW	OFFSET GE_000, OFFSET GE_001, OFFSET GE_002, OFFSET GE_003
	DW	OFFSET GE_004, OFFSET GE_005, OFFSET GE_006, OFFSET GE_007
	DW	OFFSET GE_008, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
; -------------------- BG 配置データのオフセットアドレス
MAP	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h
	DW	00000h, 00000h, 00000h, 00000h

; -------------------- キャラクタデータ
; 17 キャラクタ
; LIFE (2 キャラ) + LIFEBOX (3 キャラ)
; LEFT (2 キャラ x 3 (2 キャラ分は予約) )
; 
; LIFE
CHR	DD	000404040h, 040E4E4E4h, 044EFEFEFh, 040E5E5E5h, 045EFEFEFh, 044FFFFFFh, 074FFFFFFh, 000747474h
	DD	000606060h, 060FCFCFCh, 08CFEFEFEh, 092FFFFFFh, 0DEFFFFFFh, 090FEFEFEh, 08CDEDEDEh, 0008C8C8Ch
; LIFEBOX ■□｜
	DD	0FFFFFFFFh, 08080FF80h, 08080FF80h, 08080FF80h, 08080FF80h, 08080FF80h, 08080FF80h, 0FFFFFFFFh
	DD	0FFFFFFFFh, 080FFFFFFh, 080FFFFFFh, 080FFFFFFh, 080FFFFFFh, 080FFFFFFh, 080FFFFFFh, 0FFFFFFFFh
	DD	080808080h, 080808080h, 080808080h, 080808080h, 080808080h, 080808080h, 080808080h, 080808080h
; LEFT (剣士)
	DD	00C0C0C0Fh, 01C14141Fh, 03D29293Fh, 04B49497Fh, 05554547Fh, 03E3E3C37h, 01E1E1D12h, 0080A0D0Ah
	DD	0B8B8B8B8h, 04C2C2CDCh, 02E2636FEh, 0060202EEh, 0A6A2A2E6h, 00202E206h, 06808D84Ch, 0C0205864h
; LEFT (魔法使い(予約))
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
; LEFT (武闘家(予約))
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
; Item1 ハートマーク(赤)
	DD	000060606h, 000090F09h, 000101F10h, 000101F10h, 000101F10h, 000080F08h, 000040704h, 000020302h
	DD	000606060h, 00090F090h, 00008F808h, 00008F808h, 00008F808h, 00010F010h, 00020E020h, 00040C040h
; Item2 1UP
	DD	00000001Fh, 00A0A0A3Fh, 01A1A1A7Fh, 00A0A0A7Fh, 00A0A0A7Fh, 00A0A0A7Fh, 00B0B0B3Fh, 00000001Fh
	DD	0000000F8h, 0B8B8B8FCh, 0A8A8A8FEh, 0A8A8A8FEh, 0B8B8B8FEh, 0A0A0A0FEh, 0A0A0A0FCh, 0000000F8h
; Item3 ハートマーク(黄)
	DD	000060606h, 0000F0F09h, 0001F1F10h, 0001F1F10h, 0001F1F10h, 0000F0F08h, 000070704h, 000030302h
	DD	000606060h, 000F0F090h, 000F8F808h, 000F8F808h, 000F8F808h, 000F0F010h, 000E0E020h, 000C0C040h
; ファイヤーボール
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 007000001h, 03F000102h
	DD	000000000h, 000000000h, 001000000h, 007000000h, 00F000007h, 03F00070Bh, 0FF033CCCh, 0FF2FD810h
	DD	000000000h, 028000000h, 0FF00003Ch, 0FF0000FFh, 0FF00F00Fh, 0FF00F8C4h, 0FC80704Ch, 0F8804070h
	DD	000000000h, 00F000001h, 02F00010Eh, 0BF1C0723h, 0FF1F3220h, 0FF7F340Bh, 0FFFFA01Fh, 0FFFF403Fh
	DD	07F010E06h, 0FF031DECh, 0FF0718FFh, 0FF3FF0CFh, 0FFFFA41Bh, 0FFFF42BCh, 0FFFE0DF1h, 0FFFC36C3h
	DD	0FFFC3603h, 0FFFC12E0h, 0FFF87C80h, 0F9E04098h, 0FAC06030h, 0F1804020h, 0FA00C020h, 0F800C000h
	DD	0F00000E0h, 0E0000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	0FFFF403Fh, 0FFFF6A15h, 0FF7F0483h, 0FF2F1010h, 0FF342B0Bh, 07F3D0242h, 0BF1F0020h, 01F0F0804h
	DD	0FFF827C4h, 0FFF84680h, 0FF00FDD3h, 0FF00FCE0h, 0FE00FCE2h, 0FC00F8C4h, 0F8C02030h, 0F8804060h
	DD	0F00000C0h, 0F00000C0h, 0E0000000h, 080000000h, 080000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
; 燃える
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 007000000h, 00F000609h, 00F00060Bh, 00F000E07h, 00F060801h, 00F060902h, 00F070C0Ah
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 003000000h, 001000001h, 003010100h
	DD	00F07080Fh, 00F07080Fh, 00F07080Fh, 05F07085Fh, 0FF0F50BFh, 0DF5F800Fh, 0FFCF100Fh, 0FFDF2689h
	DD	0F400A050h, 0F800F830h, 0FC807830h, 0FC807808h, 0FC807884h, 0FF807EFCh, 0FFB846C1h, 0FEF800A0h
	DD	000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h, 000000000h
	DD	00F030300h, 00F030304h, 00F07000Bh, 01F0B0404h, 01F020400h, 00F000006h, 03F00030Dh, 000000000h
	DD	0FFFF0788h, 0FF8F7778h, 0FF0FF7F0h, 0FF0BF7B4h, 0FF07F208h, 0FF0E0DD0h, 0FF00FFECh, 04E000000h
	DD	0FEF800F0h, 0FEE834D0h, 0FFF824DCh, 0FFFC3AC6h, 0FF3FCA04h, 0FF0FF190h, 0FF10ECE7h, 050000000h
	DD	000000000h, 000000000h, 040000000h, 00A000000h, 0EE0C86C8h, 0F0F020D0h, 0F80000C8h, 000000000h

; -------------------- パレットデータ
PALET	DW	0000h, 000Fh, 0F00h, 0F0Fh, 00F0h, 00FFh, 0FF0h, 0000h
	DW	0100h, 0210h, 0620h, 0A51h, 0EA3h, 0FD0h, 0FD4h, 0FFFh	; 文字
	DW	0000h, 0100h, 0200h, 0300h, 0400h, 0500h, 0600h, 0700h
	DW	0800h, 0900h, 0A00h, 0B00h, 0C00h, 0D00h, 0E00h, 0F00h	; 赤文字
	DW	0FFFh, 0060h, 0009h, 0A02h, 0666h, 003Ch, 0F00h, 0999h
	DW	066Fh, 06C9h, 0FC0h, 00CFh, 0CCCh, 0F96h, 0FC9h, 0000h	; 剣士
	DW	0FFFh, 0060h, 0009h, 0A02h, 0666h, 003Ch, 0F00h, 0999h
	DW	066Fh, 06C9h, 0FC0h, 00CFh, 0CCCh, 0F96h, 0FC9h, 0000h	; 魔法使い(予約)
	DW	0FFFh, 0060h, 0009h, 0A02h, 0666h, 003Ch, 0F00h, 0999h
	DW	066Fh, 06C9h, 0FC0h, 00CFh, 0CCCh, 0F96h, 0FC9h, 0000h	; 武闘家(予約)

; -------------------- オブジェクトデータ
; Life ( 2 x 1 )
GE_000	DW	SP_NORMAL
	DW	2, 7
	DW	384,0,0, 385,8,0
; Left ( 2 x 1 )
GE_001	DW	SP_NORMAL
	DW	2, 4
	DW	389,0,0, 390,8,0
; Heart(赤) ( 2 x 1 )
GE_002	DW	SP_NORMAL + SP_DEFCHR
	DW	2, 7
	DW	11,0,0, 12,8,0
; 1UP ( 2 x 1 )
GE_003	DW	SP_NORMAL + SP_DEFCHR
	DW	2, 7
	DW	13,0,0, 14,8,0
; Heart(黄) ( 2 x 1 )
GE_004	DW	SP_NORMAL + SP_DEFCHR
	DW	2, 7
	DW	15,0,0, 16,8,0
; ファイヤーボール 左向き ( 4 x 3 )
GE_005	DW	SP_NORMAL + SP_DEFCHR
	DW	12, 7
	DW	17,0,0,  18,8,0,  19,16,0,  20,24,0
	DW	21,0,8,  22,8,8,  23,16,8,  24,24,8
	DW	25,0,16, 26,8,16, 27,16,16, 28,24,16
; ファイヤーボール 右向き ( 4 x 3 )
GE_006	DW	SP_RL_REVERSE + SP_DEFCHR
	DW	12, 7
	DW	20,0,0,  19,8,0,  18,16,0,  17,24,0
	DW	24,0,8,  23,8,8,  22,16,8,  21,24,8
	DW	28,0,16, 27,8,16, 26,16,16, 25,24,16
; 燃える 左向き ( 2 x 1 )
GE_007	DW	SP_NORMAL + SP_DEFCHR
	DW	12, 7
	DW	29,0,0,  30,8,0,  31,16,0,  32,24,0
	DW	33,0,8,  34,8,8,  35,16,8,  36,24,8
	DW	37,0,16, 38,8,16, 39,16,16, 40,24,16
; 燃える 右向き ( 4 x 3 )
GE_008	DW	SP_RL_REVERSE + SP_DEFCHR
	DW	12, 7
	DW	32,0,0,  31,8,0,  30,16,0,  29,24,0
	DW	36,0,8,  35,8,8,  34,16,8,  33,24,8
	DW	40,0,16, 39,8,16, 38,16,16, 37,24,16

CODE	ENDS
	END	START
