;****************************************************************************
;*		label for mario-kart	                                    *
;*						1992.05.25	            *
;****************************************************************************
ending_time	equ	1000h			;5 seconds
main_bank	equ	000000h
mario		equ	0000h
luigi		equ	0002h
koopa		equ	0004h
peach		equ	0006h
cong		equ	0008h
kong		equ	0008h
nokonoko	equ	000ah
kinopio		equ	000ch
yossy		equ	000eh
;
DEMO_KINOPIO	equ	0849e90h
DEMO_PEACH	equ	0849f60h
;
DEMO_MARIO	equ	087ff45h
;
DEMO_YOSSY	equ	0c01f4ch
;
DEMO_KONG	equ	0c21c93h
DEMO_KAME	equ	0c21d23h
DEMO_LUIGI	equ	DEMO_YOSSY
DEMO_KOOPA	equ	DEMO_YOSSY
;
Title_BGM	equ	0849801h
;
Sand_BGM	equ	084c800h
Castle_BGM	equ	084cc3ah
Dart_BGM	equ	084cfafh
;
Star_BGM	equ	086fa73h
;
Ending_BGM	equ	087f18dh
Final02_BGM	equ	087fbe1h
;
Obake_BGM	equ	0c00334h
;
Final01_BGM	equ	0c21a83h
Grass_BGM	equ	0c30b9dh
;
Select_BGM	equ	0c61e28h
;
Circuit_BGM	equ	0c76301h
Battle_BGM	equ	0c76876h
Ice_BGM		equ	0c76d16h
;
NINTENDO	equ	084c500h
LOST		equ	0848000h
;
KILLER			equ	0c60000h
Drive_data_address	equ	0c60526h
TAN_DATA		equ	0c61f46h
;
SAND		equ	0849c1ch
;
BG_ITEM		equ	0c40000h		;mode 7 BG item
ITEM		equ	0c40594h		;obj item
;
POLE		equ	0c00000h
MOGURA		equ	0c005d6h
WATER		equ	0c00903h
CHECKER		equ	0c00bb7h		;checker flag OBJ
BALL		equ	0c00e96h
DOSSUN		equ	0c01070h
;
BG_DATA		equ	087fdbah
tan_table	equ	07f0000h
;
JUGEM_SHADOW	equ	0c10000h
PAKKUN		equ	0c10aa5h
DOKAN		equ	0c10f9bh
ABC		equ	0c112f8h
PUKUPUKU	equ	0c11706h
PERAPERA	equ	0c11c0eh
;
MARK		equ	0c30000h
;
;----------------------------------------------------------------------------
;		ROM1    bank 083h
;----------------------------------------------------------------------------
MAP06_SCR	equ	083d551h		;sand01
MAP05_SCR	equ	083ead1h		;star01
;----------------------------------------------------------------------------
;		ROM2    bank 0C0h
;----------------------------------------------------------------------------
MAP0F_SCR	equ	0c50c45h		;circuit04
;----------------------------------------------------------------------------
;		ROM2	bank 0C2h		
;----------------------------------------------------------------------------
MAP14_SCR	equ	0c214eeh		;battle02
MAP17_SCR	equ	0c21765h	        ;battle05
;----------------------------------------------------------------------------
;		ROM2    bank 0C3h
;----------------------------------------------------------------------------
MAP0C_SCR	equ	0c3103ch		;ice02
;----------------------------------------------------------------------------
;		ROM3	bank 0C7h
;----------------------------------------------------------------------------
MAP12_SCR       equ     0c77251h         	;dart03
;----------------------------------------------------------------------------
;		ROM4	bank 086h
;----------------------------------------------------------------------------
MAP00_SCR	equ	0868000h		;circuit01
MAP07_SCR	equ	0868d2ch		;circuit02
MAP0E_SCR	equ	086952bh		;circuit03
MAP08_SCR	equ	086a245h		;obake02
MAP02_SCR	equ	086a823h		;grass01
MAP04_SCR	equ	086bf68h		;ice01
MAP0A_SCR	equ	086cfc4h		;dart02
MAP0D_SCR	equ	086e1aeh		;sand02
MAP16_SCR	equ	086f338h		;battle06
MAP10_SCR	equ	086f5bfh		;obake03
;----------------------------------------------------------------------------
;		ROM4    bank 087h
;----------------------------------------------------------------------------
MAP0B_SCR	equ	0878a6bh		;grass02
MAP13_SCR 	equ     087a181h	        ;grass03
MAP11_SCR	equ	087b825h		;castle03
MAP03_SCR	equ	087c527h		;castle01
MAP09_SCR	equ	087d5ffh		;castle2
MAP01_SCR	equ	087e821h		;obake01
MAP15_SCR	equ	087ed3bh		;battle03
;----------------------------------------------------------------------------
;		OTHER DATA
;----------------------------------------------------------------------------
CIRCUIT_CHR	equ	08481c9h         ;circuit
OBAKE_CHR	equ     0c60189h         ;obake
GRASS_CHR	equ	0c50000h         ;grass
CASTLE_CHR	equ	0848f6ah         ;castle
ICE_CHR		equ	0c014eeh         ;ice
DART_CHR	equ	0878000h         ;dart
SAND_CHR	equ	0c51636h         ;sand
STAR_CHR	equ	0c41ebbh	 ;star
;;
CIRCUIT_BCH	equ	0c20000h         ;circuit
OBAKE_BCH	equ     0c20148h         ;obake
GRASS_BCH	equ	0c20356h         ;grass
CASTLE_BCH	equ	0c20523h         ;castle
ICE_BCH		equ	0c205ebh         ;ice
DART_BCH	equ	0c206b5h         ;dart
SAND_BCH	equ	0c208a2h         ;sand
STAR_BCH	equ	0c01499h         ;star
;;
CIRCUIT_BSC	equ	0c20946h         ;circuit
OBAKE_BSC	equ     0c20b34h         ;obake
GRASS_BSC	equ	0c20cf3h         ;grass
CASTLE_BSC	equ	0c20e85h         ;castle
ICE_BSC		equ	0c21126h         ;ice
DART_BSC	equ	0c2124ch         ;dart
SAND_BSC	equ	0c213a8h         ;sand
STAR_BSC	equ	0c7718ah	 ;star
;;
CIRCUIT_COL	equ	0c4117fh         ;circuit
OBAKE_COL	equ     0c41313h         ;obake
GRASS_COL	equ	0c414c4h         ;grass
CASTLE_COL	equ	0c41675h         ;castle
ICE_COL		equ	0c4182fh         ;ice
DART_COL	equ	0c419c0h         ;dart
SAND_COL	equ	0c41b5bh         ;sand
STAR_COL	equ	0c41d0bh         ;star
ENDING_COL	equ	0c31f7fh	 ;ending
;
CIRCUIT_OBJ	equ	DOKAN
OBAKE_OBJ	equ     POLE
GRASS_OBJ	equ	MOGURA
CASTLE_OBJ	equ	DOSSUN
ICE_OBJ		equ	DOKAN
DART_OBJ	equ	PAKKUN
SAND_OBJ	equ	PUKUPUKU
STAR_OBJ	equ	DOSSUN
;
MAP00_CHR	equ	CIRCUIT_CHR
MAP01_CHR	equ	OBAKE_CHR
MAP02_CHR	equ	GRASS_CHR
MAP03_CHR	equ	CASTLE_CHR
MAP04_CHR	equ	ICE_CHR
MAP05_CHR	equ	DART_CHR
MAP06_CHR	equ	SAND_CHR
MAP07_CHR	equ	CIRCUIT_CHR
MAP08_CHR	equ	OBAKE_CHR
MAP09_CHR	equ	CASTLE_CHR
MAP0A_CHR	equ	DART_CHR
MAP0B_CHR	equ	GRASS_CHR
MAP0C_CHR	equ	ICE_CHR
MAP0D_CHR	equ	SAND_CHR
MAP0E_CHR	equ	CIRCUIT_CHR
MAP0F_CHR	equ	CIRCUIT_CHR
MAP10_CHR	equ	OBAKE_CHR
MAP11_CHR	equ	CASTLE_CHR
MAP12_CHR	equ	DART_CHR
MAP13_CHR	equ     GRASS_CHR
MAP14_CHR	equ	ICE_CHR		;(battleA)
MAP15_CHR	equ	GRASS_CHR       ;(battleB)
MAP16_CHR	equ	DART_CHR 	;(battleC)
MAP17_CHR	equ	SAND_CHR	;(battleD)
MAP18_CHR	equ	GRASS_CHR       ;(battleE)
;
MAP00_BCH	equ	CIRCUIT_BCH
MAP01_BCH	equ	OBAKE_BCH
MAP02_BCH	equ	GRASS_BCH
MAP03_BCH	equ	CASTLE_BCH
MAP04_BCH	equ	ICE_BCH
MAP05_BCH	equ	DART_BCH
MAP06_BCH	equ	SAND_BCH
MAP07_BCH	equ	CIRCUIT_BCH
MAP08_BCH	equ	OBAKE_BCH
MAP09_BCH	equ	CASTLE_BCH
MAP0A_BCH	equ	DART_BCH
MAP0B_BCH	equ	GRASS_BCH
MAP0C_BCH	equ	ICE_BCH
MAP0D_BCH	equ	SAND_BCH
MAP0E_BCH	equ	CIRCUIT_BCH
MAP0F_BCH	equ	CIRCUIT_BCH
MAP10_BCH	equ	OBAKE_BCH
MAP11_BCH	equ	CASTLE_BCH
MAP12_BCH	equ	DART_BCH
MAP13_BCH	equ     GRASS_BCH
MAP14_BCH	equ	ICE_BCH		;(battle)
MAP15_BCH	equ	GRASS_BCH       ;(battle)
MAP16_BCH	equ	DART_BCH	;(battle)
MAP17_BCH	equ	SAND_BCH  	;(battle)
MAP18_BCH	equ	GRASS_BCH       ;(battle)
;
MAP00_BSC	equ	CIRCUIT_BSC
MAP01_BSC	equ	OBAKE_BSC
MAP02_BSC	equ	GRASS_BSC
MAP03_BSC	equ	CASTLE_BSC
MAP04_BSC	equ	ICE_BSC
MAP05_BSC	equ	DART_BSC
MAP06_BSC	equ	SAND_BSC
MAP07_BSC	equ	CIRCUIT_BSC
MAP08_BSC	equ	OBAKE_BSC
MAP09_BSC	equ	CASTLE_BSC
MAP0A_BSC	equ	DART_BSC
MAP0B_BSC	equ	GRASS_BSC
MAP0C_BSC	equ	ICE_BSC
MAP0D_BSC	equ	SAND_BSC
MAP0E_BSC	equ	CIRCUIT_BSC
MAP0F_BSC	equ	CIRCUIT_BSC
MAP10_BSC	equ	OBAKE_BSC
MAP11_BSC	equ	CASTLE_BSC
MAP12_BSC	equ	DART_BSC
MAP13_BSC	equ     GRASS_BSC
MAP14_BSC	equ	ICE_BSC	;(battle)
MAP15_BSC	equ	GRASS_BSC       ;(battle)
MAP16_BSC	equ	DART_BSC  	;(battle)
MAP17_BSC	equ	SAND_BSC	;(battle)
MAP18_BSC	equ	GRASS_BSC       ;(battle)
;
MAP00_COL	equ	CIRCUIT_COL
MAP01_COL	equ	OBAKE_COL
MAP02_COL	equ	GRASS_COL
MAP03_COL	equ	CASTLE_COL
MAP04_COL	equ	ICE_COL
MAP05_COL	equ	DART_COL
MAP06_COL	equ	SAND_COL
MAP07_COL	equ	CIRCUIT_COL
MAP08_COL	equ	OBAKE_COL
MAP09_COL	equ	CASTLE_COL
MAP0A_COL	equ	DART_COL
MAP0B_COL	equ	GRASS_COL
MAP0C_COL	equ	ICE_COL
MAP0D_COL	equ	SAND_COL
MAP0E_COL	equ	CIRCUIT_COL
MAP0F_COL	equ	CIRCUIT_COL
MAP10_COL	equ	OBAKE_COL
MAP11_COL	equ	CASTLE_COL
MAP12_COL	equ	DART_COL
MAP13_COL	equ     GRASS_COL
MAP14_COL	equ	ICE_COL	;(battle)
MAP15_COL	equ	GRASS_COL       ;(battle)
MAP16_COL	equ	DART_COL       ;(battle)
MAP17_COL	equ	SAND_COL       ;(battle)
MAP18_COL	equ	GRASS_COL       ;(battle)
;
MAP00_OBJ	equ	CIRCUIT_OBJ
MAP01_OBJ	equ	OBAKE_OBJ
MAP02_OBJ	equ	GRASS_OBJ
MAP03_OBJ	equ	CASTLE_OBJ
MAP04_OBJ	equ	ICE_OBJ
MAP05_OBJ	equ	DART_OBJ
MAP06_OBJ	equ	SAND_OBJ
MAP07_OBJ	equ	CIRCUIT_OBJ
MAP08_OBJ	equ	OBAKE_OBJ
MAP09_OBJ	equ	CASTLE_OBJ
MAP0A_OBJ	equ	DART_OBJ
MAP0B_OBJ	equ	GRASS_OBJ
MAP0C_OBJ	equ	ICE_OBJ
MAP0D_OBJ	equ	SAND_OBJ
MAP0E_OBJ	equ	CIRCUIT_OBJ
MAP0F_OBJ	equ	CIRCUIT_OBJ
MAP10_OBJ	equ	OBAKE_OBJ
MAP11_OBJ	equ	CASTLE_OBJ
MAP12_OBJ	equ	DART_OBJ
MAP13_OBJ	equ     GRASS_OBJ
MAP14_OBJ	equ	GRASS_OBJ	;(battle)
MAP15_OBJ	equ	GRASS_OBJ       ;(battle)
MAP16_OBJ	equ	GRASS_OBJ       ;(battle)
MAP17_OBJ	equ	GRASS_OBJ       ;(battle)
MAP18_OBJ	equ	GRASS_OBJ       ;(battle)
;
MAP00_area	equ	Drive_data_address+0000h
MAP00_target	equ	Drive_data_address+0119h
;
MAP01_area	equ	Drive_data_address+01cdh
MAP01_target	equ	Drive_data_address+02a1h
;
MAP02_area	equ	Drive_data_address+0328h
MAP02_target	equ	Drive_data_address+03e5h
;
MAP03_area	equ	Drive_data_address+0457h
MAP03_target	equ	Drive_data_address+0598h
;
MAP04_area	equ	Drive_data_address+065eh
MAP04_target	equ	Drive_data_address+06f0h
;
MAP05_area	equ	Drive_data_address+0747h
MAP05_target	equ	Drive_data_address+0822h
;
MAP06_area	equ	Drive_data_address+08ach
MAP06_target	equ	Drive_data_address+0948h
;
MAP07_area	equ	Drive_data_address+09a5h
MAP07_target	equ	Drive_data_address+0a34h
;
MAP08_area	equ	Drive_data_address+0a8eh
MAP08_target	equ	Drive_data_address+0b6dh
;
MAP09_area	equ	Drive_data_address+0bf7h
MAP09_target	equ	Drive_data_address+0cf7h
;
MAP0A_area	equ	Drive_data_address+0d90h
MAP0A_target	equ	Drive_data_address+0e22h
;
MAP0B_area	equ	Drive_data_address+0e79h
MAP0B_target	equ	Drive_data_address+0f21h
;
MAP0C_area	equ	Drive_data_address+0f8ah
MAP0C_target	equ	Drive_data_address+1002h
;
MAP0D_area	equ	Drive_data_address+104dh
MAP0D_target	equ	Drive_data_address+1100h
;
MAP0E_area	equ	Drive_data_address+116ch
MAP0E_target	equ	Drive_data_address+1238h
;
MAP0F_area	equ	Drive_data_address+12b3h
MAP0F_target	equ	Drive_data_address+135dh
;
MAP10_area	equ	Drive_data_address+13c6h
MAP10_target	equ	Drive_data_address+1468h
;
MAP11_area	equ	Drive_data_address+14cbh
MAP11_target	equ	Drive_data_address+157bh
;
MAP12_area	equ	Drive_data_address+15e4h
MAP12_target	equ	Drive_data_address+1670h
;
MAP13_area	equ	Drive_data_address+16c7h
MAP13_target	equ	Drive_data_address+1783h
;
MAP14_area	equ	Drive_data_address+17f8h
MAP14_target	equ	Drive_data_address+185dh
;
MAP15_area	equ	MAP14_area
MAP15_target	equ	MAP14_target
MAP16_area	equ	Drive_data_address+1899h
MAP16_target	equ	Drive_data_address+18dbh
MAP17_area	equ	MAP14_area
MAP17_target	equ	MAP14_target
MAP18_area	equ	MAP14_area
MAP18_target	equ	MAP14_target
;
;
MAP00_ARE	equ	0316000h
MAP01_ARE	equ	0316400h
MAP02_ARE	equ	0316800h
MAP03_ARE	equ	0316c00h
MAP04_ARE	equ	0317000h
MAP05_ARE	equ	0317400h
MAP06_ARE	equ	0317800h
MAP07_ARE	equ	0317c00h
MAP08_ARE	equ	0326000h
MAP09_ARE	equ	0326400h
MAP0A_ARE	equ	0326800h
MAP0B_ARE	equ	0326c00h
MAP0C_ARE	equ	0327000h
MAP0D_ARE	equ	0327400h
MAP0E_ARE	equ	0327800h
MAP0F_ARE	equ	0327c00h
MAP10_ARE	equ	0336000h
MAP11_ARE	equ	0336400h
MAP12_ARE	equ	0336800h
MAP13_ARE	equ	0336c00h
MAP14_ARE	equ	0337000h
MAP15_ARE	equ	MAP14_ARE
MAP16_ARE	equ	0337800h
MAP17_ARE	equ	MAP14_ARE
MAP18_ARE	equ	MAP14_ARE
;
MAP00_TRG	equ	0316280h
MAP01_TRG	equ	0316680h
MAP02_TRG	equ	0316a80h
MAP03_TRG	equ	0316e80h
MAP04_TRG	equ	0317280h
MAP05_TRG	equ	0317680h
MAP06_TRG	equ	0317a80h
MAP07_TRG	equ	0317e80h
MAP08_TRG	equ	0326280h
MAP09_TRG	equ	0326680h
MAP0A_TRG	equ	0326a80h
MAP0B_TRG	equ	0326e80h
MAP0C_TRG	equ	0327280h
MAP0D_TRG	equ	0327680h
MAP0E_TRG	equ	0327a80h
MAP0F_TRG	equ	0327e80h
MAP10_TRG	equ	0336280h
MAP11_TRG	equ	0336680h
MAP12_TRG	equ	0336a80h
MAP13_TRG	equ	0336e80h
MAP14_TRG	equ	0337280h
MAP15_TRG	equ	MAP14_TRG
MAP16_TRG	equ	0337a80h
MAP17_TRG	equ	MAP14_TRG
MAP18_TRG	equ	MAP14_TRG
;
Moji_address equ	7faa00h		;7faa00h-7fbfffh (1600h)
Mark_address	equ	7f8000h		;7f8000h-7f8800h (0800h)
Item_address	equ	7f9000h		;7f8800h-7fa3ffh (1a00h)--c00
;;
Title_chr	equ	7f0000h
Title_scr1	equ	7f2000h
Title_scr2	equ	7f2800h
Name_scr	equ	7f3800h
Title_col	equ	7f4000h
Name_col	equ	7f4200h
;;
K_select_scr1	equ	7fc000h
K_select_scr2	equ	7fc800h
K_select_scr3	equ	7fd800h
K_select_col	equ	7fe800h
K_select_chr	equ	7fea00h
W_select_scr	equ	7fef00h
W_select_col	equ	7ff700h
W_select_chr	equ	7ff900h
