Giuliano_Jefferson_PACMAN.asm
giulysanfins_Pacman-Assembly/Giuliano_Jefferson_PACMAN.asm
TITLE Pacman
.MODEL SMALL
.STACK 100H
.DATA
Lvl_mapa_Escolhido	DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
					DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
		  
					;Número 1: PAREDE
					;Número 2: APAGA_PACMAN
					;Número 3: TELEPORTE
					;Número 4: PORTA FANTASMAS
					;Número 5: PACMAN
					;Número 6: FANTASMA LIGHT GREEN
					;Número 7: FANTASMA CYAN
					;Número 8: FANTASMA RED
					;Número 9: FANTASMA MAGENTA
					
					;PARA NIVEL 2 E 3, SOBREESCREVER A MATRIZ DO Lvl_mapa_Escolhido
		  
Lvl_pastilha_Escolhido	DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
						DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
			  
;------------------------ INICIO MAPA LVL 1 -----------------------------------			  
Lvl1_mapa DW 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
		  DW 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1
		  DW 1,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,1
		  DW 1,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,1
		  DW 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
		  DW 1,0,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1
		  DW 1,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1
		  DW 1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1
		  DW 0,0,0,1,0,1,0,0,0,6,0,0,0,1,0,1,0,0,0
		  DW 1,1,1,1,0,1,0,1,1,4,1,1,0,1,0,1,1,1,1
		  DW 3,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,3
		  DW 1,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,1
		  DW 0,0,0,1,0,1,0,0,7,0,0,0,0,1,0,1,0,0,0
		  DW 1,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,1
		  DW 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1
		  DW 1,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,1
		  DW 1,0,0,1,0,0,0,0,0,5,0,0,0,0,0,1,0,0,1 ;linha 17 | coluna 10
		  DW 1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1
		  DW 1,0,9,0,0,1,0,0,0,1,0,0,0,1,0,8,0,0,1
		  DW 1,0,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0,1
		  DW 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
		  DW 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
		  
Lvl1_pastilha DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;157 pastilhas
			  DW 0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0
			  DW 0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0
			  DW 0,2,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,2,0
			  DW 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0
			  DW 0,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,1,0
			  DW 0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0
			  DW 0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0
			  DW 0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0
			  DW 0,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,2,0
			  DW 0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0
			  DW 0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,0
			  DW 0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0
			  DW 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0
			  DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
;------------------------ FIM MAPA LVL 1 -----------------------------------	


;------------------------ INICIO MAPA LVL 2 -----------------------------------			  
Lvl2_mapa	DW 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
			DW 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
			DW 1,0,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,0,1
			DW 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
			DW 1,0,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,0,1
			DW 1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1
			DW 1,0,1,1,0,1,1,0,1,0,1,0,1,1,0,1,1,0,1
			DW 1,0,1,1,0,1,1,0,1,0,1,0,1,1,0,1,1,0,1
			DW 1,0,0,0,0,1,0,0,0,0,0,0,7,1,0,0,0,0,1
			DW 1,0,1,1,1,1,0,1,1,4,1,1,0,1,1,1,1,0,1
			DW 1,0,0,0,0,0,0,1,0,6,0,1,0,0,0,0,0,0,1
			DW 3,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,3
			DW 1,0,0,0,0,0,8,0,0,0,0,0,9,0,0,0,0,0,1
			DW 1,0,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,1
			DW 1,0,1,0,1,1,0,0,0,0,0,0,0,1,1,0,1,0,1
			DW 1,0,1,0,0,0,0,1,1,0,1,1,0,0,0,0,1,0,1
			DW 1,0,1,0,1,1,0,1,1,5,1,1,0,1,1,0,1,0,1
			DW 1,0,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,1
			DW 1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1
			DW 1,0,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,0,1
			DW 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
			DW 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
		  
Lvl2_pastilha	DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;184
				DW 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0
				DW 0,1,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0
				DW 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0
				DW 0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0
				DW 0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0
				DW 0,1,0,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,0
				DW 0,1,0,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,0
				DW 0,1,1,1,2,0,0,0,0,0,0,0,0,0,2,1,1,1,0
				DW 0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0
				DW 0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0
				DW 0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0
				DW 0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0
				DW 0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0
				DW 0,1,0,1,0,0,1,1,1,1,1,1,1,0,0,1,0,1,0
				DW 0,1,0,1,1,1,1,0,0,1,0,0,1,1,1,1,0,1,0
				DW 0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0
				DW 0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0
				DW 0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0
				DW 0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,1,0
				DW 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0
				DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
;------------------------ FIM MAPA LVL 2 -----------------------------------


;------------------------ INICIO MAPA LVL 3 -----------------------------------			  
Lvl3_mapa	DW 1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1
			DW 1,1,1,0,1,0,0,1,0,0,0,1,0,0,1,0,1,1,1
			DW 1,0,0,0,1,1,1,1,0,1,0,1,1,1,1,0,0,0,1
			DW 1,0,1,1,1,1,0,0,0,1,0,0,0,1,1,1,1,0,1
			DW 1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1
			DW 1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1
			DW 1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1
			DW 1,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,0,1
			DW 1,0,1,0,1,1,0,0,0,0,0,0,0,1,1,0,1,0,1
			DW 1,0,1,0,1,1,6,1,1,4,1,1,7,1,1,0,1,0,1
			DW 3,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,3
			DW 1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,1
			DW 1,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1
			DW 1,0,1,0,0,0,8,1,1,1,1,1,9,0,0,0,1,0,1
			DW 1,0,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,0,1
			DW 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1
			DW 1,0,1,1,1,0,1,1,0,5,0,1,1,0,1,1,1,0,1
			DW 1,0,1,1,0,0,0,1,0,1,0,1,0,0,0,1,1,0,1
			DW 1,0,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,1
			DW 1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,1,1,0,1
			DW 1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1
			DW 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
		  
Lvl3_pastilha 	DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ; 166
				DW 0,0,0,1,0,0,0,0,1,2,1,0,0,0,0,1,0,0,0
				DW 0,1,1,1,0,0,0,0,1,0,1,0,0,0,0,1,1,1,0
				DW 0,1,0,0,0,0,1,1,1,0,1,1,1,0,0,0,0,1,0
				DW 0,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0
				DW 0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0
				DW 0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0
				DW 0,1,0,1,0,1,1,1,0,0,0,1,1,1,0,1,0,1,0
				DW 0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0
				DW 0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0
				DW 0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0
				DW 0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0
				DW 0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0
				DW 0,1,0,1,1,1,0,0,0,0,0,0,0,1,1,1,0,1,0
				DW 0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0
				DW 0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0
				DW 0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0
				DW 0,1,0,0,1,1,1,0,1,0,1,0,1,1,1,0,0,1,0
				DW 0,1,1,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,0
				DW 0,1,0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,1,0
				DW 0,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0
				DW 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
;------------------------ FIM MAPA LVL 3 -----------------------------------			  
		  
		  
		;------------------------------- PACMAN PARA DIREITA -------------------------------------------------
Pacman	DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		
		;------------------------------- PACMAN PARA ESQUERDA -------------------------------------------------
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		
		;------------------------------- PACMAN PARA CIMA -------------------------------------------------
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14 
		DW	14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		

		;------------------------------- PACMAN PARA BAIXO -------------------------------------------------
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14 
		DW	14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00

		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
		DW	00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00 
		DW	00, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
		

PACMAN_MORTE	DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14 
				DW 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00 
				DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 14, 00, 00, 14, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 14, 00, 00, 14, 00, 00, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00

				DW 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00 
				DW 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00 
				DW 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14 
				DW 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14 
				DW 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00 
				DW 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00 
				DW 00, 00, 00, 14, 14, 00, 00, 14, 00, 00, 00, 00, 14, 00, 00, 14, 14, 00, 00, 00 
				DW 00, 00, 00, 00, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 00, 00, 00, 00 
				DW 00, 00, 00, 14, 14, 00, 00, 14, 00, 00, 00, 00, 14, 00, 00, 14, 14, 00, 00, 00 
				DW 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00 
				DW 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00 
				DW 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14 
				DW 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14 
				DW 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00 
				DW 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				DW 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00

		
FANTASMA_MODELO 	DW 00, 00, 00, 00, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00, 00, 00, 00, 00 
					DW 00, 00, 00, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00, 00, 00, 00 
					DW 00, 00, 00, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00, 00, 00, 00 
					DW 00, 13, 13, 13, 13, 15, 15, 15, 13, 13, 13, 13, 13, 15, 15, 15, 13, 00, 00, 00 
					DW 00, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 13, 15, 15, 15, 00, 00, 00, 00, 00 
					DW 00, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 13, 15, 15, 15, 00, 00, 00, 00, 00 
					DW 00, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 13, 15, 15, 15, 00, 00, 00, 00, 00 
					DW 13, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 00 
					DW 13, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 13, 15, 15, 15, 00, 00, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 15, 15, 15, 13, 13, 13, 13, 13, 15, 15, 15, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 00, 00, 13, 13, 13, 13, 13, 00, 13, 13, 13, 13, 13, 13, 00 
					DW 13, 13, 13, 13, 13, 00, 00, 13, 13, 13, 13, 13, 00, 13, 13, 13, 13, 13, 13, 00 
					DW 00, 13, 13, 13, 00, 00, 00, 00, 13, 13, 13, 00, 00, 00, 00, 13, 13, 00, 00, 00
					
					DW 00, 00, 00, 00, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00, 00, 00, 00 
					DW 00, 00, 00, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00, 00, 00 
					DW 00, 00, 00, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00, 00, 00 
					DW 00, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00, 00 
					DW 00, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00, 00 
					DW 00, 01, 01, 01, 15, 15, 15, 15, 01, 01, 01, 15, 15, 15, 15, 01, 01, 00, 00, 00 
					DW 00, 01, 01, 01, 15, 15, 15, 15, 01, 01, 01, 15, 15, 15, 15, 01, 01, 00, 00, 00 
					DW 01, 01, 01, 01, 15, 15, 15, 15, 01, 01, 01, 15, 15, 15, 15, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 15, 15, 15, 15, 01, 01, 01, 15, 15, 15, 15, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 15, 15, 01, 01, 15, 15, 01, 01, 15, 15, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 15, 01, 01, 15, 15, 01, 01, 15, 15, 01, 01, 15, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 00, 00, 01, 01, 01, 01, 01, 00, 01, 01, 01, 01, 01, 00, 00 
					DW 01, 01, 01, 01, 01, 00, 00, 01, 01, 01, 01, 01, 00, 01, 01, 01, 01, 01, 00, 00 
					DW 00, 01, 01, 01, 00, 00, 00, 00, 01, 01, 01, 00, 00, 00, 00, 01, 01, 00, 00, 00
					

LIVES	DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
		DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00 
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00
		
LIVES_ESCRITO	DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15 
				DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00 
				DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00 
				DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00 
				DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00
					
					
Bolinha_grande	DW 0,0,0,1,1,1,0,0,0
				DW 0,0,1,1,1,1,1,0,0
				DW 0,1,1,1,1,1,1,1,0
				DW 0,1,1,1,1,1,1,1,0
				DW 0,1,1,1,1,1,1,1,0
				DW 0,0,1,1,1,1,1,0,0
				DW 0,0,0,1,1,1,0,0,0
				
Bolinha_normal	DW 0,0,1,0,0,0
				DW 0,1,1,1,0,0
				DW 0,0,1,0,0,0
				DW 0,0,0,0,0,0
				
MSG_GAME_OVER	DW 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15
				DW 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15
				DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15
				DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15
				DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15
				DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15
				DW 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15
				DW 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15
				DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
				DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
				DW 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15
				DW 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15	

MSG_VICTORY	DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00
			DW 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00
			DW 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14
			DW 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14				
				
				
ABERTURA DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 00, 00, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 00, 00, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 15, 15, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 15, 15, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 15, 15, 04, 04, 04, 04, 15, 15, 04, 00, 00, 00, 00, 00, 00, 00, 03, 03, 03, 15, 15, 03, 03, 03, 03, 15, 15, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 15, 15, 15, 15, 04, 04, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 03, 03, 15, 15, 15, 15, 03, 03, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 15, 15, 00, 00, 04, 04, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 03, 15, 15, 00, 00, 03, 03, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 15, 15, 00, 00, 04, 04, 15, 15, 00, 00, 04, 00, 00, 00, 00, 00, 03, 03, 03, 15, 15, 00, 00, 03, 03, 15, 15, 00, 00, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 15, 15, 15, 15, 04, 04, 15, 15, 15, 15, 04, 00, 00, 00, 00, 00, 03, 03, 03, 15, 15, 15, 15, 03, 03, 15, 15, 15, 15, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 15, 15, 04, 04, 04, 04, 15, 15, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 15, 15, 03, 03, 03, 03, 15, 15, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 00, 04, 04, 04, 04, 00, 04, 04, 04, 04, 00, 00, 00, 00, 00, 03, 03, 03, 03, 00, 03, 03, 03, 03, 00, 03, 03, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 00, 00, 00, 04, 04, 00, 00, 00, 04, 04, 00, 00, 00, 00, 00, 00, 00, 03, 03, 00, 00, 00, 03, 03, 00, 00, 00, 03, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 15, 15, 05, 05, 05, 05, 15, 15, 05, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 15, 15, 15, 15, 05, 05, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 06, 06, 06, 15, 15, 06, 06, 06, 06, 15, 15, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 15, 15, 00, 00, 05, 05, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 15, 15, 15, 15, 06, 06, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 15, 15, 00, 00, 05, 05, 15, 15, 00, 00, 05, 00, 00, 00, 00, 00, 06, 06, 15, 15, 00, 00, 06, 06, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 15, 15, 15, 15, 05, 05, 15, 15, 15, 15, 05, 00, 00, 00, 00, 06, 06, 06, 15, 15, 00, 00, 06, 06, 15, 15, 00, 00, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 15, 15, 05, 05, 05, 05, 15, 15, 05, 05, 00, 00, 00, 00, 06, 06, 06, 15, 15, 15, 15, 06, 06, 15, 15, 15, 15, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 06, 06, 06, 06, 15, 15, 06, 06, 06, 06, 15, 15, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 05, 05, 00, 05, 05, 05, 05, 00, 05, 05, 05, 05, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 05, 05, 00, 00, 00, 05, 05, 00, 00, 00, 05, 05, 00, 00, 00, 00, 00, 06, 06, 06, 06, 00, 06, 06, 06, 06, 00, 06, 06, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 06, 06, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 00, 00, 15, 00, 15, 00, 15, 00, 00, 15, 15, 00, 00, 00, 15, 15, 15, 00, 00, 15, 15, 15, 00, 00, 00, 15, 15, 15, 00, 15, 15, 15, 00, 00, 15, 00, 00, 15, 00, 00, 15, 00, 00, 15, 00, 00, 15, 15, 00, 00, 15, 00, 00, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 00, 00, 15, 00, 15, 15, 00, 00, 15, 00, 15, 15, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 00, 00, 15, 00, 15, 00, 00, 15, 00, 15, 00, 00, 15, 00, 00, 15, 00, 15, 00, 00, 15, 00, 15, 15, 00, 15, 00, 00, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 15, 15, 00, 00, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 15, 00, 00, 15, 00, 15, 00, 00, 15, 00, 15, 00, 00, 15, 00, 00, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 15, 00, 00, 15, 00, 15, 15, 00, 15, 15, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 15, 00, 00, 00, 00, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 00, 00, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 00, 15, 00, 00, 15, 00, 00, 15, 15, 15, 00, 00, 15, 00, 00, 15, 00, 00, 15, 15, 00, 00, 00, 15, 15, 15, 00, 15, 15, 00, 15, 15, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 
	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
	
	

	

	
	

;-----------------------------------
Mapa_escolhido	DB 0
Pastilhas_mapa_escolhido 	DB 0
color_mapa		DB ?
;-----------------------------------
	
controlador_abertura DW 0
cont_pixel_abertura DW ?
coluna_pixel_abertura DW 1
linha_pixel_abertura DW 1


cont_coluna_abertura DW 0
cont_abertura DW ?
coluna_abertura DW 10
linha_abertura DW 10


separador_quadrado_abertura DB 10
separador_quadrado2_abertura DB 5


cor_abertura	DB ?



color	DB ?
controlador_matriz DW 0
cont_pixel DW ?
coluna_pixel DW 1
linha_pixel DW 1

coluna_pixel_pastilha DW 1
linha_pixel_pastilha DW 1
cont_pixel_pastilha DW ?

controlador_pacman DW 0
controlador_anima DW 0
cont_coluna DW 0
cont DW ?
coluna DW 10
linha DW 10

controlador_bolinha DW 0

linha_pacman DW 1
coluna_pacman DW 1

linha_pacman_atual DW 1
coluna_pacman_atual DW 1
posicao_pacman DW ?
cont_pacman DW ?

separador_quadrado DB 23
separador_quadrado2 DB 5

;separador_lives_linha	DB 5
;separador_lives_coluna	DB 30

testeSetaCima DB 'TECLA CIMA',0AH,0DH,'$'

cont_delay DW ?
cont_delay_ANIMA DW ?

flag_parede DB 0

direcao_pacman DW 0

controlador_fantasma DW 0
linha_fantasma_atual DW 1
coluna_fantasma_atual DW 1
cont_fantasma DW ?

posicao_green DW ?
posicao_green_antiga DW ?

posicao_red DW ?
posicao_cyan DW ?
posicao_magenta DW ?

fantasma_atual DW 6

;-------------
n1 DW 9
n2 DW 3
n3 DW 7
n4 DW 4

numero_randomico DW ?
flag_rand DW 0
flag_rand_primeira DB 1
;-------------

;--------------
rand_green DW 5
coluna_green	DW 0
linha_green		DW 0

rand_red DW 5
coluna_red	DW 0
linha_red	DW 0

rand_cyan DW 5
coluna_cyan	DW 0
linha_cyan	DW 0

rand_magenta DW 5
coluna_magenta	DW 0
linha_magenta	DW 0
;--------------

tecla_atual DB 0

cont_vidas DB 3
cont_pastilhas_pegas DB 0

;------------------------
controlador_medo DW 0
cont_medo DW 0
flag_pastilha DW 0

pastilha_ativa DW 0
tempo_pastilha DW ?

tempo_antes DW ?
tempo_depois DW ?
;------------------------

teste_linha DW ?
teste_coluna DW ?

controlador_anima_morte DW 0

controlador_lives DW 0

;-----------------------
separador_quadrado_escrito DB 2
coluna_pixel_escrito	DW 1
linha_pixel_escrito		DW 1

coluna_quadrado	DW 0
linha_quadrado	DW 0
cont_quadrado	DW ?
;-----------------------

;---------------
controlador_game_over	DW 0
linha_game_over			DW 0
coluna_game_over		DW 0
cont_game_over			DW 0
;---------------


;---------------------------------------------------------------------------------------------------------------
NUM0				DW		0,1,1,1,1,1,0
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,0
					
					
					
	NUM1			DW		0,0,0,1,0,0,0
					DW		0,0,1,1,0,0,0
					DW		0,1,0,1,0,0,0
					DW		1,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					DW		1,1,1,1,1,1,1
					
					
					
	NUM2			DW		1,1,1,1,1,1,0
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,1,0
					DW		0,0,0,0,1,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,1,0,0,0,0
					DW		0,1,0,0,0,0,0
					DW		1,0,0,0,0,0,0
					DW		1,1,1,1,1,1,1
					
					
					
	NUM3			DW		1,1,1,1,1,1,0
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,1,1
					DW		0,0,0,1,1,1,0
					DW		0,0,0,0,0,1,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		1,1,1,1,1,1,0
			
			
			
	NUM4			DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
			
			
			
	NUM5			DW		1,1,1,1,1,1,1
					DW		1,0,0,0,0,0,0
					DW		1,0,0,0,0,0,0
					DW		1,0,0,0,0,0,0
					DW		1,1,1,1,1,1,0
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		1,1,1,1,1,1,0
			
			
			
	NUM6			DW		0,1,1,1,1,1,0
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,0
					DW		1,0,0,0,0,0,0
					DW		1,1,1,1,1,1,0
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,0
					
					
					
	NUM7			DW		1,1,1,1,1,1,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,1,0
					DW		0,0,0,0,0,1,0
					DW		0,0,0,0,1,0,0
					DW		0,0,0,0,1,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					DW		0,0,0,1,0,0,0
					
					
					
	NUM8			DW		0,1,1,1,1,1,0
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,0
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,0
					
					
					
	NUM9			DW		0,1,1,1,1,1,0
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		0,0,0,0,0,0,1
					DW		1,0,0,0,0,0,1
					DW		0,1,1,1,1,1,0	
	
	
	
	
	
	
SCORE				DW		0,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1
					DW		1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0
					DW		1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0
					DW		1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0
					DW		1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,1,1,1,1,1,0,0,0,1,0,0,0,0,0,0
					DW		0,1,1,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,1,0,0,0,0,0,0,1,1,1,1,1,0,0
					DW		0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0
					DW		0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0
					DW		0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0
					DW		0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0
					DW		1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,1,1,1,1,1

SCORE_S					DW	0
SCORE_B					DW	0
SCORE_L					DW	0
SCORE_Q 				DW  0

SCORE_PONT				DW 0

Col_quadrante					DW	0
Lin_quadrante					DW	0
Tam_quadrante				DW	?
MATRIZ 					DW 0
COR DB 0
COLMAIS DW 0
LINMAIS DW 0
VALOR_X_ALG				DW	0

controlador_score	DW 0
score_total			DW 0

;------------------- INICIO MENU PRINCIPAL -------------------------
cont_pixel_MENU DW ?
coluna_pixel_MENU DW 1
linha_pixel_MENU DW 1


cont_coluna_MENU DW 0
cont_MENU DW ?
coluna_MENU DW 10
linha_MENU DW 10


separador_quadrado_MENU DB 10
separador_quadrado2_MENU DB 5


cor_MENU	DB ?


PACMAN_MENU DW    00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
            DW    00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
            DW    00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
			DW	14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
			
			
			;LINHA DW 0
			;COLUNA DW 0
			;CONT DW 0
			CONTROLADOR_MENU DW 0
			CONTROLADOR_MENU_PACMAN DW 0
			;LINHA_PIXEL DW 1
			;COLUNA_PIXEL DW 1
			controlador_menu_pac dw 0
			controlador_menu_pac_apaga dw 0
			coluna_menu_pac DW 0
			linha_menu_pac DW 0
			cont_MENU_PAC DW 0
			
;------------------- FIM MENU PRINCIPAL -------------------------

DIFICULDADE	DW 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15
			DW 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
			DW 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
			DW 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
			DW 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00
			
MAPA1_ESCRITO	DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15
				
MAPA2_ESCRITO	DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15
				DW	15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15


MAPA3_ESCRITO	DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15
				DW	15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00
				DW	15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00

				
SETA_MENU	DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 00, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 00, 00, 00, 00
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00
			DW	15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00
			DW	00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 00, 00, 00, 00, 00, 00
				
coluna_pixel_DIF DW 0
linha_pixel_DIF DW 0
controlador_DIF DW 0
cont_pixel_DIF DW 0
cor_DIF DB 0


cont_coluna_DIF1 DW 0
coluna_pixel_DIF1 DW 0
cont_DIF1 DW 0
separador_quadrado_DIF1 DW 10
coluna_DIF1 DW 0
linha_DIF1 DW 0

linha_pixel_DIF1 DW 0

controlador_menu_flecha dw 0
cont_MENU_FLECHA DW 0



linha_menu_FLECHA1 dw 0
coluna_menu_FLECHA1 dw 0
controlador_menu_flecha_apaga dw 0


;---------------------------------------------------------------------------------------------------------------
MENU_ESCRITO    dw 06, 06, 06, 06, 00, 00, 06, 06, 06, 06, 00, 00, 06, 06, 06, 06, 06, 06, 06, 00, 00, 06, 06, 06, 06, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 06, 06, 00, 00, 06, 06, 06, 06, 00, 00, 06, 06, 06, 06, 06, 06, 06, 00, 00, 06, 06, 06, 06, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 06, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06
				dw 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 06, 06, 06, 00, 00, 06, 06, 00, 00, 00, 00, 06, 06, 00, 00, 06, 06, 06, 06, 06, 06, 06, 06, 06, 06




LEVELS_ESCRITA  DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14 
				DW 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14 
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14

				

				
				
CREDITOS_ESCRITO    DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00;66
					DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15
					DW 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 15, 15
					DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15
					DW 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 00, 00, 00, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 00, 00, 15, 15, 15, 15, 15, 15, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 00, 00, 00, 00, 00, 00, 15, 15, 15, 15, 15, 15, 15, 15, 15

					
					
SAIR_ESCRITO    dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 00, 00, 00, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 ;35
				dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14 
				dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 14, 14, 14, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 00, 14, 14, 14, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 00, 00, 00, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00 
				
				
				
				
PACMAN_ESCRITO  DW 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 	
				DW 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 	
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 15, 15, 00, 00, 14, 14, 00, 00 	
				DW 00, 00, 14, 14, 14, 14, 14, 14, 14, 15, 15, 00, 00, 14, 14, 00, 00 	
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 00, 00, 14, 14, 14, 14 	;17
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 00, 00, 14, 14, 14, 14 	
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 	
				DW 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00 	
				DW 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 	
				DW 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 	
				DW 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 	
				DW 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00 	
																		
																		
opcao_menu_principal	DW 1
;---------------------------------------------------------------------------------------------------------------

;----------- CREDITOS -----------------------------------------------------------------
							
							
CREDITOS_SANFINS    dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00 ;79
					dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00 
					dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00 
					dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00 
					dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00 
					dw 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00 
					dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14 
					dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14 
					dw 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14 
					dw 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 14, 14 
					dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 
					dw 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14 

					
CREDITOS_MENESES    DW 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14
					DW 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 14
					DW 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00 ;84
					DW 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00
					DW 14, 14, 00, 00, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 00, 00, 00, 00, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 14, 00, 00, 14, 14, 14, 14, 14, 14, 14, 00, 14, 14, 00, 00, 00, 00, 14, 14, 14, 14, 14, 14, 00, 00, 00

;----------- CREDITOS -----------------------------------------------------------------


FRUIT	DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06, 06, 06, 06
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 06, 06, 06, 00, 00, 06, 00, 00, 00, 00
		DW 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 00, 00, 00, 00
		DW 00, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00, 00, 06, 00, 00, 00, 00
		DW 00, 00, 04, 04, 04, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00
		DW 00, 00, 04, 04, 04, 06, 06, 00, 00, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00
		DW 04, 04, 04, 04, 04, 06, 06, 04, 04, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00
		DW 04, 04, 04, 04, 04, 06, 06, 04, 04, 00, 00, 00, 00, 06, 06, 00, 00, 00, 00, 00
		DW 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 04, 04, 06, 06, 04, 00, 00, 00, 00
		DW 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00, 04, 04, 06, 06, 04, 00, 00, 00, 00
		DW 04, 04, 15, 15, 04, 04, 04, 00, 00, 04, 04, 04, 04, 06, 06, 04, 04, 04, 00, 00
		DW 04, 04, 15, 15, 04, 04, 04, 00, 00, 04, 04, 04, 04, 06, 06, 04, 04, 04, 00, 00
		DW 00, 00, 04, 04, 04, 04, 04, 00, 00, 04, 04, 04, 04, 04, 04, 04, 04, 04, 00, 00
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 15, 15, 04, 04, 04, 04, 04, 00, 00
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 15, 15, 04, 04, 04, 04, 04, 00, 00
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 00, 00, 00, 00
		DW 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04, 04, 04, 04, 04, 00, 00, 00, 00



;---------------------------------------------------------------------------------------------------------------

.CODE

MAIN PROC

MOV	AX,@DATA
MOV	DS,AX

MOV AX, 4f02H
MOV BX,103H
INT 10H

;--------------------------------PRINTANDO ABERTURA----------------------------------------

CALL PRINT_ABERTURA
MOV AH, 01
INT 21h
JNZ limpa
limpa:
;CALL LIMPATELA



MOV AX, 4f02H
MOV BX,103H
INT 10H
;------------------------------------------------------------------------------------------------------------------
	inicio_menu_principal:
	;------- resetando as variaveis do jogo ----------
	MOV score_total,0
	MOV cont_vidas,3
	;-------------------------------------------------
	
	
	MOV opcao_menu_principal, 1

	mov coluna_pixel,400
	mov linha_pixel,10
	CALL menu_ESCRITO1

	mov coluna_pixel,55
	mov linha_pixel,70
	CALL levels_ESCRITO

	mov coluna_pixel,55
	mov linha_pixel,110
	CALL CREDITS_ESCRITO1

	mov coluna_pixel,55
	mov linha_pixel,150
	CALL EXIT_ESCRITO1

	mov coluna_pixel,20
	mov linha_pixel,70

;--------------------------
	CALL PACMAN_ESCRITO1
	
    loop_enter_PRINCIPAL:


    MOV AH, 0 ;RECEBER SETA
    INT 16H

	CMP AL, 13
    JE fim_loop_menu_PRINCIPAL
	
    CMP AH,50H ; Seta para baixo
    JE SETA_BAIXO_MENU_PRINCIPAL

    CMP AH,48H ; Seta para cima
    JE SETA_CIMA_MENU_PRINCIPAL
	
    JMP loop_enter_PRINCIPAL

	
    SETA_BAIXO_MENU_PRINCIPAL:
								CMP opcao_menu_principal,3
								JE loop_enter_PRINCIPAL
								
								;SE FOR MENOR DO QUE 3
								INC opcao_menu_principal
								CALL APAGA_PACMAN_MENU
								ADD linha_pixel,40

								CALL PACMAN_ESCRITO1
								JMP loop_enter_PRINCIPAL
	
	SETA_CIMA_MENU_PRINCIPAL:
								CMP opcao_menu_principal,1
								JE loop_enter_PRINCIPAL
								
								;SE FOR MAIOR DO QUE 1
								DEC opcao_menu_principal

								CALL APAGA_PACMAN_MENU
								SUB LINHA_PIXEL,40

								CALL PACMAN_ESCRITO1
								JMP loop_enter_PRINCIPAL

	fim_loop_menu_PRINCIPAL:
								
								;MOV AH,4CH
								;INT 21H						
;------------------------------------------------------------------------------------------------------------------
MOV AX, 4f02H
MOV BX,103H
INT 10H


CMP opcao_menu_principal,1
JE OP_NIVEIS

CMP opcao_menu_principal,2
JE OP_CREDITOS

CMP opcao_menu_principal,3
JE OP_SAIR

OP_NIVEIS:	CALL MENU_DIFICULDADE
			;CALL ZERA_MATRIZ
			CALL ESCOLHENDO_MAPA
			JMP CARREGAR_JOGO

OP_CREDITOS:	CALL PRINT_CREDITOS

				MOV AX, 4f02H
				MOV BX,103H
				INT 10H

				JMP inicio_menu_principal

OP_SAIR:		JMP FIM_DO_JOGO


CARREGAR_JOGO:
;------------------------------ INICIO PRINTANDO MAPA 1 ---------------------------------------------
XOR SI,SI
XOR BX,BX
MOV linha_pixel, 1
MOV coluna_pixel, 1

MOV cont_pixel, 418 ;quantidade de itens da matriz

VEZES_MATRIZ:

MOV AX, Lvl_mapa_Escolhido[BX]

CMP controlador_matriz,19 ;quantidade de colunas
JNE nao_pula_MATRIZ
;pula linha
MOV controlador_matriz,0
MOV coluna_pixel,1
INC linha_pixel

nao_pula_MATRIZ:

CMP AX,1
JE branco

CMP AX,4
JE cinza
	  ;PRETO
	  MOV color,0
	  CALL QUADRADO
	  JMP fim	  

branco: ;preto
	  MOV DL, color_mapa
	  MOV color, DL
	  CALL QUADRADO
	  JMP fim
cinza:
	  MOV color,7
	  CALL QUADRADO
	  
fim:
INC coluna_pixel

ADD BX,2

INC controlador_matriz
DEC cont_pixel
CMP cont_pixel,0
JNZ VEZES_MATRIZ
;------------------------------ FIM PRINTANDO MAPA 1 ---------------------------------------------

;------------------------------ CHAMANDO PASTILHAS ---------------------------------------------
CALL PASTILHAS
;------------------------------ CHAMANDO PASTILHAS ---------------------------------------------

;------------------------------- INICIO VERIFICAÇÃO DE TECLAS ---------------------------------------------
	MOV coluna_pixel, 490
	MOV linha_pixel, 100
	CALL PRINT_LIVES_ESCRITO
	
	MOV coluna_pixel, 490
	MOV linha_pixel, 130
	CALL PRINT_LIVES
	
	MOV coluna_pixel, 530
	CALL PRINT_LIVES
	
	MOV coluna_pixel, 490
	MOV linha_pixel, 50
	CALL menu_do_lado
	
	CALL PRINT_FRUTA
	MOV BX, 476
	MOV Lvl_pastilha_Escolhido[BX], 5
	
	CALL PRINT_PACMAN
	XOR DX,DX

TEST1:
	
	;PUSH BX
	;CALL RECOLOCA_PASTILHAS
	;POP BX
	
	; CALL PEGANDO_TEMPO
	; SUB AX, 0
	
	; CMP AX, 10
	; JBE CONTINUA_TEST1
	
	; ;SE TIVER PASSADO MAIS DE 10 SEGUNDOS
	; CALL PRINT_FRUTA
	; MOV BX, 260
	; MOV Lvl_pastilha_Escolhido[BX], 5
	
	; CONTINUA_TEST1:
	
	MOV linha_pixel,75
	CALL menu_do_lado_score
	
	CALL PRINT_PACMAN
	CALL MOV_FANTASMA
	
	MOV DH, tecla_atual
	
	;----- Entrada teclado -----
	MOV AH, 01
	INT 16H
	;--------------------------- 
	JZ  CONTINUA_PEDIR_TECLA
		;Se tiver algo no buffer
		
		
		MOV BX, posicao_pacman
		CALL VERIFICA_PAREDE
		
		MOV AH, 00
    	INT 16H
		
		CMP flag_parede,1
		JE CONTINUA_PEDIR_TECLA
		;SE NÃO FOR PAREDE
		
		MOV DH,AH
		MOV tecla_atual, DH
	
	CONTINUA_PEDIR_TECLA:
	CALL VERIFICA_PASTILHAGRANDE
	
	;- DERROTA -----------------
	CMP cont_vidas,0
	JE DERROTA
	;---------------------------
	
	;- VITORIA -----------------
	MOV CL, Pastilhas_mapa_escolhido
	
	CMP cont_pastilhas_pegas, CL
	JE VITORIA
	;---------------------------
	
	CMP DH,48H ; Seta para cima
	JE SETA_CIMA
	
	CMP DH,4BH ; Seta para esquerda
	JE SETA_ESQUERDA
	
	CMP DH,4DH ; Seta para direita
	JE SETA_DIREITA
	
	CMP DH,50H ; Seta para baixo
	JE SETA_BAIXO
	
	CMP AL, 27
	JNE TEST1
	
	
	JMP FIM_LOOP_PACMAN
	
	
SETA_CIMA:  	MOV direcao_pacman,4800
				CALL FUNC_SETA_CIMA
				JMP TEST1

	
SETA_ESQUERDA:	MOV direcao_pacman,2400
				CALL FUNC_SETA_ESQUERDA
				JMP TEST1
	
SETA_DIREITA:	MOV direcao_pacman,0
				CALL FUNC_SETA_DIREITA
				JMP TEST1
	
SETA_BAIXO:		MOV direcao_pacman,7200
				CALL FUNC_SETA_BAIXO
				JMP TEST1
				
DERROTA:		MOV coluna_pixel, 200
				MOV linha_pixel, 305
				CALL PRINT_GAME_OVER
				
				MOV     CX, 001eH
				MOV     DX, 8480H
				MOV     AH, 86H
				INT     15H

				;CALL LIMPATELA
				JMP FIM_LOOP_PACMAN
				
VITORIA:		MOV coluna_pixel, 200
				MOV linha_pixel, 305
				CALL PRINT_VICTORY
				
				MOV     CX, 001eH
				MOV     DX, 8480H
				MOV     AH, 86H
				INT     15H

				;CALL LIMPATELA
				JMP FIM_LOOP_PACMAN	
				
FIM_LOOP_PACMAN:

MOV AX, 4f02H
MOV BX,103H
INT 10H

;JMP inicio_menu_principal


;------------------------------- FIM VERIFICAÇÃO DE TECLAS ---------------------------------------------
xor al, al  ; al = 0
;mov cx, 10  ; column
;mov dx, 20  ; row
;mov ah, 0dh ; get pixel
;int 10h

; pause the screen for dos compatibility:

;wait for keypress
  ;mov ah,00
  ;int 16h			

; return to text mode:
  mov ah,00 ; set display mode function.
  mov al,03 ; normal text mode 3
  int 10h   ; set it!
 
FIM_DO_JOGO:
MOV AH,4CH
INT 21H

MAIN ENDP

;-------------------- INÍCIO QUADRADO --------------------;
QUADRADO PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX

XOR SI,SI
XOR BX,BX
MOV cont_coluna,0
MOV cont, 484

MOV AX,coluna_pixel
MUL separador_quadrado
MOV coluna, AX

MOV AX,linha_pixel
MUL separador_quadrado
MOV linha, AX

VEZES_BRANCO:
CMP cont_coluna,22
JNE nao_pula_BRANCO
;pula linha

MOV cont_coluna,0
MOV AX,coluna_pixel
MUL separador_quadrado
MOV coluna, AX


INC linha

nao_pula_BRANCO:
	  ;printando
	  mov cx, coluna  ; column
	  mov dx, linha  ; row
	  mov al, color  ; COR ESCOLHIDA
	  mov ah, 0ch ; put pixel
	  int 10h

INC coluna

ADD BX,2

INC cont_coluna
DEC cont
CMP cont,0
JNZ VEZES_BRANCO

POP DX
POP CX
POP BX
POP AX

RET
QUADRADO ENDP
;-------------------- FIM QUADRADO --------------------;

;----------------------- INICIO PACMAN -----------------------------;
PRINT_PACMAN PROC


;-------- PROCURANDO PACMAN A SER APAGADO -----------
XOR SI,SI
XOR BX,BX
MOV coluna_pixel,1
MOV linha_pixel,1
MOV controlador_matriz,0

MOV cont_pixel, 418 ;quantidade de itens da matriz

VEZES_pacman:

MOV AX, Lvl_mapa_Escolhido[BX]

CMP controlador_matriz,19 ;quantidade de colunas
JNE nao_pula_pacman
;pula linha
MOV controlador_matriz,0
MOV coluna_pixel,1
INC linha_pixel

nao_pula_pacman:
PUSH BX

;CMP AX,5	
;JE anima_pacman

CMP AX,2
JE APAGA_PIXEL

JMP fim_pacman	  

			
; anima_pacman: ;valor 5
			
			 ; CALL PACMAN_IMAGEM
			
			 ; JMP fim_pacman
			 
			
APAGA_PIXEL: MOV color,0
			 CALL QUADRADO
			 MOV Lvl_mapa_Escolhido[BX],0
	  
fim_pacman:

POP BX

INC coluna_pixel

ADD BX,2

INC controlador_matriz
DEC cont_pixel
CMP cont_pixel,0
JNZ VEZES_pacman

;-------- PROCURANDO PACMAN ATUAL -----------
XOR SI,SI
XOR BX,BX
MOV coluna_pixel,1
MOV linha_pixel,1
MOV controlador_matriz,0

MOV cont_pixel, 418 ;quantidade de itens da matriz

VEZES_pacman7:

MOV AX, Lvl_mapa_Escolhido[BX]

CMP controlador_matriz,19 ;quantidade de colunas
JNE nao_pula_pacman7
;pula linha
MOV controlador_matriz,0
MOV coluna_pixel,1
INC linha_pixel

nao_pula_pacman7:
PUSH BX

CMP AX,5	
JE anima_pacman

CMP AX,9	
JE anima_fantasma_magenta

CMP AX,8
JE anima_fantasma_red

CMP AX,7
JE anima_fantasma_cyan

CMP AX,6
JE anima_fantasma_green

; CMP AX,2
; JE APAGA_PIXEL

JMP fim_pacman7  
	
anima_pacman: ;valor 5
			 MOV posicao_pacman, BX
			 CALL PACMAN_IMAGEM
			 JMP fim_pacman7

anima_fantasma_magenta: ;fasntasma no mapa ta 9
			 MOV color,13
			 
			 	MOV DX,coluna_pixel
				MOV coluna_magenta,DX
				
				MOV DX,linha_pixel
				MOV linha_magenta,DX
			 
			 MOV posicao_magenta, BX
			 CALL FANTASMA_IMAGEM
			 JMP fim_pacman7


anima_fantasma_red: ;fasntasma no mapa ta 8
			 MOV color,4 
			 
			 	MOV DX,coluna_pixel
				MOV coluna_red,DX
				
				MOV DX,linha_pixel
				MOV linha_red,DX
			 
			 MOV posicao_red, BX
			 CALL FANTASMA_IMAGEM
			 JMP fim_pacman7	

LOLA: JMP VEZES_pacman7
			 
anima_fantasma_cyan:
			 MOV color,3 
			 
			 	MOV DX,coluna_pixel
				MOV coluna_cyan,DX
				
				MOV DX,linha_pixel
				MOV linha_cyan,DX
			 
			 MOV posicao_cyan, BX
			 CALL FANTASMA_IMAGEM
			 JMP fim_pacman7
			 
anima_fantasma_green:
			 MOV color,10	

				MOV DX,coluna_pixel
				MOV coluna_green,DX
				
				MOV DX,linha_pixel
				MOV linha_green,DX
			 
			 MOV posicao_green, BX
			 CALL FANTASMA_IMAGEM
			 JMP fim_pacman7
			 
			
; APAGA_PIXEL: MOV color,0
			 ; CALL QUADRADO
			 ; MOV Lvl_mapa_Escolhido[BX],0
	  
fim_pacman7:

POP BX

INC coluna_pixel

ADD BX,2

INC controlador_matriz
DEC cont_pixel
CMP cont_pixel,0
JNZ LOLA

RET
PRINT_PACMAN ENDP
;----------------------- FIM PACMAN -----------------------------;

;----------------------- INICIO PACMAN IMAGEM -----------------------------;
PACMAN_IMAGEM PROC

PUSH AX
		 
		 MOV AX,coluna_pixel
		 MOV coluna_pacman_atual,AX
		 
		 MOV AX,linha_pixel
		 MOV linha_pacman_atual,AX
		 
		 MOV controlador_pacman,0
		 
		 MOV AX,coluna_pixel
		 MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		 MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 
		 MOV BX, direcao_pacman
		 MOV cont, 1200 ;quantidade de itens da matriz

		 VEZES2_PACMAN:

		 MOV AX, PACMAN[BX]

		 ;--------------------- INICIO ANIMAÇÃO 2 -------------------------------
		 CMP controlador_anima,400 ;quantidade de elementos
		 JNE nao_pula_ANIMA
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA:
		 
		 ;--------------------- FIM ANIMAÇÃO 2 -------------------------------
		 
		 ;--------------------- INICIO ANIMAÇÃO 3 -------------------------------
		 CMP controlador_anima,800 ;quantidade de elementos
		 JNE nao_pula_ANIMA2
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 MOV controlador_anima,0
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA2:
		 
		 ;--------------------- FIM ANIMAÇÃO 3 -------------------------------
		 
		 ;----------------------- VOLTANDO PARA CULUNA 0 ---------------------------------
		 CMP controlador_pacman,20 ;quantidade de colunas
		 JNE nao_pula2_PACMAN
		 ;pula linha
		 MOV controlador_pacman,0
		 
		 CALL RESET_COLUNA_PACMAN
		 
		 INC linha
		 nao_pula2_PACMAN:
		;----------------------- VOLTANDO PARA CULUNA 0 ---------------------------------
		 
		 CMP AX,14
		 JE amarelo_PACMAN
			   ;PRETO
			    mov cx, coluna  ; column
			    mov dx, linha  ; row
			    ;mov al, 0  ; WHITE
			    mov ah, 0ch ; put pixel
			    int 10h
		 JMP fim2_PACMAN	  

		 amarelo_PACMAN: ;AMARELO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 14  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim2_PACMAN:
		 INC coluna

		 ADD BX,2

		 INC controlador_pacman
		 INC controlador_anima
		 DEC cont
		 CMP cont,0
		 JNZ VEZES2_PACMAN

RET
PACMAN_IMAGEM ENDP
;----------------------- FIM PACMAN IMAGEM -----------------------------;

;---------------------- INICIO FANTASMA IMAGEM ------------------------;
FANTASMA_IMAGEM PROC

PUSH AX

		; CMP color,10
		; JNE CONTINUA_PRINT_FANTASMA
		
		; MOV AX,coluna_pixel
		; MOV coluna_fantasma_atual,AX
		
		; MOV AX,linha_pixel
		; MOV linha_fantasma_atual,AX
	
		; CONTINUA_PRINT_FANTASMA:
		MOV controlador_fantasma,0
		
		MOV AX,coluna_pixel
		MUL separador_quadrado
		MOV coluna, AX
		
		MOV AX,linha_pixel
		MUL separador_quadrado
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV BX, pastilha_ativa
		MOV cont, 400 ;quantidade de itens da matriz
	
		VEZES2_FANTASMA:
	
		MOV AX, FANTASMA_MODELO[BX]
	
		CMP controlador_fantasma,20 ;quantidade de colunas
		JNE nao_pula2_FANTASMA
		;pula linha
		MOV controlador_fantasma,0
		
		PUSH AX
		MOV AX,coluna_pixel
		MUL separador_quadrado
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula2_FANTASMA:
	
		CMP AX,13
		JE CORPO_FANTASMA
		CMP AX,15
		JE OLHOS 
		CMP AX,01
		JE CORPO_PASTILHA
		
		;PRETO
		mov cx, coluna  ; column
		mov dx, linha ; row
		mov al, 00  ; WHITE
		mov ah, 0ch ; put pixel
		int 10h
		JMP fim2_FANTASMA
		
		
		LOLA3: JMP VEZES2_FANTASMA
		
		CORPO_FANTASMA: ;FANTASMA MAGENTA
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, color  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim2_FANTASMA
		 
		OLHOS:
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim2_FANTASMA
		
		CORPO_PASTILHA: ;FANTASMA MAGENTA
						  mov cx, coluna  ; column
						  mov dx, linha ; row
						  mov al, 01  ; WHITE
						  mov ah, 0ch ; put pixel
						  int 10h
						  JMP fim2_FANTASMA 
						  
		; fim_medo_fant:
						  ; INC coluna
						  ; ADD BX,2
						  ; INC controlador_medo
						  ; DEC cont_medo
						  ; CMP cont_medo,0
						  ; JNZ LOOP_MEDO
		
		 fim2_FANTASMA:
		 INC coluna

		 ADD BX,2

		 INC controlador_fantasma
		 DEC cont
		 CMP cont,0
		 JNZ LOLA3

RET
FANTASMA_IMAGEM ENDP
;---------------------- FIM FANTASMA IMAGEM -----------------------;




;----------------------- INICIO PASTILHAS ----------------------------------------------------------
PASTILHAS PROC

MOV controlador_matriz,0
MOV linha_pixel, 1
MOV coluna_pixel, 1

XOR SI,SI
XOR BX,BX
MOV cont_pixel, 418 ;quantidade de itens da matriz

VEZES_PASTILHA:

MOV AX, Lvl_pastilha_Escolhido[BX]

CMP controlador_matriz,19 ;quantidade de colunas
JNE nao_pula_PASTILHA
;pula linha
MOV controlador_matriz,0
MOV coluna_pixel,1
INC linha_pixel

nao_pula_PASTILHA:

CMP AX,2
JE PASTILHA_GRANDE

CMP AX,1
JE PASTILHA_NORMAL

JMP fim_PASTILHA


PASTILHA_NORMAL:
				CALL BOLINHA_NORMAL_PASTILHA
				JMP fim_PASTILHA
				
PASTILHA_GRANDE: 
				CALL BOLINHA_GRANDE_PASTILHA
	  
fim_PASTILHA:
INC coluna_pixel

ADD BX,2

INC controlador_matriz
DEC cont_pixel
CMP cont_pixel,0
JNZ VEZES_PASTILHA

RET
PASTILHAS ENDP
;----------------------- FIM PASTILHAS ----------------------------------------------------------

;------------------------------- INICIO BOLINHA GRANDE --------------------------------------------
BOLINHA_GRANDE_PASTILHA PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_bolinha,0
		 
		 MOV AX,coluna_pixel
		 MUL separador_quadrado
		 ADD AX,7
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		 MUL separador_quadrado
		 ADD AX,7
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 63 ;quantidade de itens da matriz

		 VEZES_BOLINHA:

		 MOV AX, Bolinha_grande[BX]

		 CMP controlador_bolinha,9 ;quantidade de colunas
		 JNE nao_pula_BOLINHA
		 ;pula linha
		 MOV controlador_bolinha,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 MUL separador_quadrado
		 ADD AX,7
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_BOLINHA:

		 CMP AX,1
		 JE BRANCO_BOLINHA
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_BOLINHA	  

		 BRANCO_BOLINHA: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_BOLINHA:
		 INC coluna

		 ADD BX,2

		 INC controlador_bolinha
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_BOLINHA

POP DX
POP CX
POP BX
POP AX

RET
BOLINHA_GRANDE_PASTILHA ENDP
;------------------------------- FIM BOLINHA GRANDE --------------------------------------------

;------------------------------- INICIO BOLINHA NORMAL --------------------------------------------
BOLINHA_NORMAL_PASTILHA PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_bolinha,0
		 
		 MOV AX,coluna_pixel
		 MUL separador_quadrado
		 ADD AX,9
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		 MUL separador_quadrado
		 ADD AX,9
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 24 ;quantidade de itens da matriz

		 VEZES_BOLINHA_NORMAL:

		 MOV AX, Bolinha_normal[BX]

		 CMP controlador_bolinha,6 ;quantidade de colunas
		 JNE nao_pula_BOLINHA_NORMAL
		 ;pula linha
		 MOV controlador_bolinha,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 MUL separador_quadrado
		 ADD AX,9
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_BOLINHA_NORMAL:

		 CMP AX,1
		 JE BRANCO_BOLINHA_NORMAL
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_BOLINHA_NORMAL	  

		 BRANCO_BOLINHA_NORMAL: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_BOLINHA_NORMAL:
		 INC coluna

		 ADD BX,2

		 INC controlador_bolinha
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_BOLINHA_NORMAL

POP DX
POP CX
POP BX
POP AX

RET
BOLINHA_NORMAL_PASTILHA ENDP
;------------------------------- FIM BOLINHA GRANDE --------------------------------------------

; ;------------------------ INICIO ACHADOR BX -------------------------------
; ACHADOR_BX_PACMAN PROC

	; XOR BX,BX
	; MOV AX,19
	; SUB linha_pacman_atual,1
	
	; MUL linha_pacman_atual
	; MOV BX,AX
	; ADD BX,coluna_pacman_atual
	
	; MOV AX,2
	; MUL BX
	
	; SUB AX,2
	; MOV BX,AX
	
	; XOR AX,AX

; RET
; ACHADOR_BX_PACMAN ENDP
; ;------------------------ FIM ACHADOR BX -------------------------------


;------------------------ INICIO DELAY -------------------------------
DELAY PROC

	PUSH CX
	
	MOV CX,1000
	MOV cont_delay, 100
	
	Repetidor_Delay:
		
		PUSH CX
		MOV CX, cont_delay
		
		Repetidor_Delay2:
		NOP
		LOOP Repetidor_Delay2
		
		POP CX
	
	LOOP Repetidor_Delay
	
	POP CX

RET
DELAY ENDP
;------------------------ FIM DELAY -------------------------------	

;------------------------ INICIO DELAY ANIMA -------------------------------
DELAY_ANIMA PROC

	PUSH CX
	
	MOV CX,1000
	MOV cont_delay_ANIMA, 100
	
	Repetidor_Delay_ANIMA:
		
		PUSH CX
		MOV CX, cont_delay_ANIMA
		
		Repetidor_Delay2_ANIMA:
		NOP
		LOOP Repetidor_Delay2_ANIMA
		
		POP CX
	
	LOOP Repetidor_Delay_ANIMA
	
	POP CX

RET
DELAY_ANIMA ENDP
;------------------------ FIM DELAY -------------------------------	

	
;------------------------ INICIO RESET LINHA PACMAN -------------------------------	
RESET_LINHA_PACMAN PROC

	 PUSH AX
	 MOV AX,linha_pixel
	 MUL separador_quadrado
	 MOV linha, AX
	 POP AX

RET
RESET_LINHA_PACMAN ENDP
;------------------------ FIM RESET LINHA PACMAN -------------------------------	

;------------------------ INICIO RESET COLUNA PACMAN -------------------------------	
RESET_COLUNA_PACMAN PROC

	 PUSH AX
	 MOV AX,coluna_pacman_atual
	 MUL separador_quadrado
	 MOV coluna, AX
	 POP AX

RET
RESET_COLUNA_PACMAN ENDP
;------------------------ FIM RESET COLUNA PACMAN -------------------------------	

;------------------------ INICIO RESET COORDENADAS PACMAN -------------------------------	
RESET_COORDENADAS_PACMAN PROC

	 MOV controlador_pacman,0
	 
	 PUSH AX
	 MOV AX,linha_pacman_atual
	 MUL separador_quadrado
	 MOV linha, AX

	 MOV AX,coluna_pacman_atual
	 MUL separador_quadrado
	 MOV coluna, AX
	 POP AX

RET
RESET_COORDENADAS_PACMAN ENDP
;------------------------ FIM RESET COORDENADAS PACMAN -------------------------------	


;------------------------ INICO SETA CIMA -------------------------------	
FUNC_SETA_CIMA PROC

	MOV BX, posicao_pacman

	CMP Lvl_mapa_Escolhido[BX-38],1
	JE LOLA4
	
	;SE NÃO APERTAR NADA E NÃO FOR PAREDE
	MOV Lvl_mapa_Escolhido[BX],2
	SUB BX,38
	
	CMP Lvl_mapa_Escolhido[BX], 6
	JE FANTASMA_GREEN_ENCONTRADO1
	
	CMP Lvl_mapa_Escolhido[BX], 7
	JE FANTASMA_CYAN_ENCONTRADO1
	
	CMP Lvl_mapa_Escolhido[BX], 8
	JE FANTASMA_RED_ENCONTRADO1
	
	CMP Lvl_mapa_Escolhido[BX], 9
	JE FANTASMA_MAGENTA_ENCONTRADO1
	
	;FANTASMA NÃO ENCONTRADO
	MOV Lvl_mapa_Escolhido[BX],5
	CALL VERIFICA_PASTILHA_SCORE
	JMP FANTASMA_NAO_ENCONTRADO1
	
	LOLA4:	JMP PAREDE_MAPA_CIMA
	
	;SE O FANTASMA ESTIVER NESSA POSICAO
	FANTASMA_GREEN_ENCONTRADO1:		MOV DX, 6
									JMP FIM_FANTASMA_PEGO
									
	FANTASMA_CYAN_ENCONTRADO1:		MOV DX, 7
									JMP FIM_FANTASMA_PEGO
									
	FANTASMA_RED_ENCONTRADO1:		MOV DX, 8
									JMP FIM_FANTASMA_PEGO
	
	FANTASMA_MAGENTA_ENCONTRADO1:	MOV DX, 9
									JMP FIM_FANTASMA_PEGO
	
	FIM_FANTASMA_PEGO:
	CMP pastilha_ativa,800
	JE PASTILHA_SUPER_ATIVADA
	
	;SE A PASTILHA ESTIVER DESATIVADA
	CALL PERDE_VIDA
	JMP FANTASMA_NAO_ENCONTRADO1
	
	PASTILHA_SUPER_ATIVADA:	
	CMP DX,6
	JE FANTASMA_GREEN_MORTO
	
	CMP DX,7
	JE FANTASMA_CYAN_MORTO
	
	CMP DX,8
	JE FANTASMA_RED_MORTO
	
	CMP DX,9
	JE FANTASMA_MAGENTA_MORTO
	
	FANTASMA_GREEN_MORTO:	ADD score_total, 50
							MOV BX, posicao_green
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 40
							MOV Lvl_mapa_Escolhido[BX], 6
							JMP FANTASMA_NAO_ENCONTRADO1
							
	FANTASMA_CYAN_MORTO:	ADD score_total, 50
							MOV BX, posicao_cyan
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 42
							MOV Lvl_mapa_Escolhido[BX], 7
							JMP FANTASMA_NAO_ENCONTRADO1
							
	FANTASMA_RED_MORTO:		ADD score_total, 50
							MOV BX, posicao_red
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 44
							MOV Lvl_mapa_Escolhido[BX], 8
							JMP FANTASMA_NAO_ENCONTRADO1
							
							
	FANTASMA_MAGENTA_MORTO:	ADD score_total, 50
							MOV BX, posicao_magenta
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 46
							MOV Lvl_mapa_Escolhido[BX], 9
							JMP FANTASMA_NAO_ENCONTRADO1
							
							
							
	FANTASMA_NAO_ENCONTRADO1:

	RET
	
	PAREDE_MAPA_CIMA:
	RET
	
FUNC_SETA_CIMA ENDP
;------------------------ FIM SETA CIMA -------------------------------	

;------------------------ INICO SETA ESQUERDA -------------------------------	
FUNC_SETA_ESQUERDA PROC

	MOV BX, posicao_pacman

	CMP Lvl_mapa_Escolhido[BX-2],1
	JE LOLA5
	
	;SE NÃO APERTAR NADA E NÃO FOR PAREDE
	MOV Lvl_mapa_Escolhido[BX],2
	SUB BX,2
	
	CMP Lvl_mapa_Escolhido[BX-2],3
	JNE CONTINUA_CAMINHO
	;TELEPORTE
	MOV Lvl_mapa_Escolhido[BX],2
	MOV BX,414
	MOV Lvl_mapa_Escolhido[BX],5
	
	RET
	CONTINUA_CAMINHO:
	
	CMP Lvl_mapa_Escolhido[BX], 6
	JE FANTASMA_GREEN_ENCONTRADO2
	
	CMP Lvl_mapa_Escolhido[BX], 7
	JE FANTASMA_CYAN_ENCONTRADO2
	
	CMP Lvl_mapa_Escolhido[BX], 8
	JE FANTASMA_RED_ENCONTRADO2
	
	CMP Lvl_mapa_Escolhido[BX], 9
	JE FANTASMA_MAGENTA_ENCONTRADO2
	
	;FANTASMA NÃO ENCONTRADO
	MOV Lvl_mapa_Escolhido[BX],5
	CALL VERIFICA_PASTILHA_SCORE
	JMP FANTASMA_NAO_ENCONTRADO2
	
	LOLA5:	JMP PAREDE_MAPA_ESQUERDA
	
	;SE O FANTASMA ESTIVER NESSA POSICAO
	FANTASMA_GREEN_ENCONTRADO2:		MOV DX, 6
									JMP FIM_FANTASMA_PEGO2
									
	FANTASMA_CYAN_ENCONTRADO2:		MOV DX, 7
									JMP FIM_FANTASMA_PEGO2
									
	FANTASMA_RED_ENCONTRADO2:		MOV DX, 8
									JMP FIM_FANTASMA_PEGO2
	
	FANTASMA_MAGENTA_ENCONTRADO2:	MOV DX, 9
									JMP FIM_FANTASMA_PEGO2
	
	FIM_FANTASMA_PEGO2:
	CMP pastilha_ativa,800
	JE PASTILHA_SUPER_ATIVADA2
	
	;SE A PASTILHA ESTIVER DESATIVADA
	CALL PERDE_VIDA
	JMP FANTASMA_NAO_ENCONTRADO2
	
	PASTILHA_SUPER_ATIVADA2:	
	CMP DX,6
	JE FANTASMA_GREEN_MORTO2
	
	CMP DX,7
	JE FANTASMA_CYAN_MORTO2
	
	CMP DX,8
	JE FANTASMA_RED_MORTO2
	
	CMP DX,9
	JE FANTASMA_MAGENTA_MORTO2
	
	FANTASMA_GREEN_MORTO2:	MOV BX, posicao_green
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 40
							MOV Lvl_mapa_Escolhido[BX], 6
							JMP FANTASMA_NAO_ENCONTRADO2
							
	FANTASMA_CYAN_MORTO2:	MOV BX, posicao_cyan
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 42
							MOV Lvl_mapa_Escolhido[BX], 7
							JMP FANTASMA_NAO_ENCONTRADO2
							
	FANTASMA_RED_MORTO2:		MOV BX, posicao_red
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 44
							MOV Lvl_mapa_Escolhido[BX], 8
							JMP FANTASMA_NAO_ENCONTRADO2
							
							
	FANTASMA_MAGENTA_MORTO2:MOV BX, posicao_magenta
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 46
							MOV Lvl_mapa_Escolhido[BX], 9
							JMP FANTASMA_NAO_ENCONTRADO2
							
							
							
	FANTASMA_NAO_ENCONTRADO2:

	RET
	
	PAREDE_MAPA_ESQUERDA:
	RET
	
FUNC_SETA_ESQUERDA ENDP
;------------------------ FIM SETA ESQUERDA -------------------------------	

;------------------------ INICO SETA DIREITA -------------------------------	
FUNC_SETA_DIREITA PROC

	MOV BX, posicao_pacman

	CMP Lvl_mapa_Escolhido[BX+2],1
	JE LOLA6
	
	;SE NÃO APERTAR NADA E NÃO FOR PAREDE
	MOV Lvl_mapa_Escolhido[BX],2
	ADD BX,2
	
	CMP Lvl_mapa_Escolhido[BX+2],3
	JNE CONTINUA_CAMINHO2
	;TELEPORTE
	MOV Lvl_mapa_Escolhido[BX],2
	MOV BX,382
	MOV Lvl_mapa_Escolhido[BX],5
	
	RET
	CONTINUA_CAMINHO2:
	
	CMP Lvl_mapa_Escolhido[BX], 6
	JE FANTASMA_GREEN_ENCONTRADO3
	
	CMP Lvl_mapa_Escolhido[BX], 7
	JE FANTASMA_CYAN_ENCONTRADO3
	
	CMP Lvl_mapa_Escolhido[BX], 8
	JE FANTASMA_RED_ENCONTRADO3
	
	CMP Lvl_mapa_Escolhido[BX], 9
	JE FANTASMA_MAGENTA_ENCONTRADO3
	
	;FANTASMA NÃO ENCONTRADO
	MOV Lvl_mapa_Escolhido[BX],5
	CALL VERIFICA_PASTILHA_SCORE
	JMP FANTASMA_NAO_ENCONTRADO3
	
	LOLA6:	JMP PAREDE_MAPA_DIREITA
	
	;SE O FANTASMA ESTIVER NESSA POSICAO
	FANTASMA_GREEN_ENCONTRADO3:		MOV DX, 6
									JMP FIM_FANTASMA_PEGO3
									
	FANTASMA_CYAN_ENCONTRADO3:		MOV DX, 7
									JMP FIM_FANTASMA_PEGO3
									
	FANTASMA_RED_ENCONTRADO3:		MOV DX, 8
									JMP FIM_FANTASMA_PEGO3
	
	FANTASMA_MAGENTA_ENCONTRADO3:	MOV DX, 9
									JMP FIM_FANTASMA_PEGO3
	
	FIM_FANTASMA_PEGO3:
	CMP pastilha_ativa,800
	JE PASTILHA_SUPER_ATIVADA3
	
	;SE A PASTILHA ESTIVER DESATIVADA
	CALL PERDE_VIDA
	JMP FANTASMA_NAO_ENCONTRADO3
	
	PASTILHA_SUPER_ATIVADA3:	
	CMP DX,6
	JE FANTASMA_GREEN_MORTO3
	
	CMP DX,7
	JE FANTASMA_CYAN_MORTO3
	
	CMP DX,8
	JE FANTASMA_RED_MORTO3
	
	CMP DX,9
	JE FANTASMA_MAGENTA_MORTO3
	
	FANTASMA_GREEN_MORTO3:	MOV BX, posicao_green
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 40
							MOV Lvl_mapa_Escolhido[BX], 6
							JMP FANTASMA_NAO_ENCONTRADO3
							
	FANTASMA_CYAN_MORTO3:	MOV BX, posicao_cyan
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 42
							MOV Lvl_mapa_Escolhido[BX], 7
							JMP FANTASMA_NAO_ENCONTRADO3
							
	FANTASMA_RED_MORTO3:		MOV BX, posicao_red
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 44
							MOV Lvl_mapa_Escolhido[BX], 8
							JMP FANTASMA_NAO_ENCONTRADO3
							
							
	FANTASMA_MAGENTA_MORTO3:MOV BX, posicao_magenta
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 46
							MOV Lvl_mapa_Escolhido[BX], 9
							JMP FANTASMA_NAO_ENCONTRADO3
							
							
							
	FANTASMA_NAO_ENCONTRADO3:

	RET
	
	PAREDE_MAPA_DIREITA:
	RET
	
FUNC_SETA_DIREITA ENDP
;------------------------ FIM SETA DIREITA -------------------------------	

;------------------------ INICO SETA BAIXO -------------------------------	
FUNC_SETA_BAIXO PROC

	MOV BX, posicao_pacman

	CMP Lvl_mapa_Escolhido[BX+38],1
	JE LOLA7
	
	;SE NÃO APERTAR NADA E NÃO FOR PAREDE
	MOV Lvl_mapa_Escolhido[BX],2
	ADD BX,38
	
	CMP Lvl_mapa_Escolhido[BX], 6
	JE FANTASMA_GREEN_ENCONTRADO4
	
	CMP Lvl_mapa_Escolhido[BX], 7
	JE FANTASMA_CYAN_ENCONTRADO4
	
	CMP Lvl_mapa_Escolhido[BX], 8
	JE FANTASMA_RED_ENCONTRADO4
	
	CMP Lvl_mapa_Escolhido[BX], 9
	JE FANTASMA_MAGENTA_ENCONTRADO4
	
	;FANTASMA NÃO ENCONTRADO
	MOV Lvl_mapa_Escolhido[BX],5
	CALL VERIFICA_PASTILHA_SCORE
	JMP FANTASMA_NAO_ENCONTRADO4
	
	LOLA7:	JMP PAREDE_MAPA_BAIXO
	
	;SE O FANTASMA ESTIVER NESSA POSICAO
	FANTASMA_GREEN_ENCONTRADO4:		MOV DX, 6
									JMP FIM_FANTASMA_PEGO4
									
	FANTASMA_CYAN_ENCONTRADO4:		MOV DX, 7
									JMP FIM_FANTASMA_PEGO4
									
	FANTASMA_RED_ENCONTRADO4:		MOV DX, 8
									JMP FIM_FANTASMA_PEGO4
	
	FANTASMA_MAGENTA_ENCONTRADO4:	MOV DX, 9
									JMP FIM_FANTASMA_PEGO4
	
	FIM_FANTASMA_PEGO4:
	CMP pastilha_ativa,800
	JE PASTILHA_SUPER_ATIVADA4
	
	;SE A PASTILHA ESTIVER DESATIVADA
	CALL PERDE_VIDA
	JMP FANTASMA_NAO_ENCONTRADO4
	
	PASTILHA_SUPER_ATIVADA4:	
	CMP DX,6
	JE FANTASMA_GREEN_MORTO4
	
	CMP DX,7
	JE FANTASMA_CYAN_MORTO4
	
	CMP DX,8
	JE FANTASMA_RED_MORTO4
	
	CMP DX,9
	JE FANTASMA_MAGENTA_MORTO4
	
	FANTASMA_GREEN_MORTO4:	MOV BX, posicao_green
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 40
							MOV Lvl_mapa_Escolhido[BX], 6
							JMP FANTASMA_NAO_ENCONTRADO4
							
	FANTASMA_CYAN_MORTO4:	MOV BX, posicao_cyan
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 42
							MOV Lvl_mapa_Escolhido[BX], 7
							JMP FANTASMA_NAO_ENCONTRADO4
							
	FANTASMA_RED_MORTO4:		MOV BX, posicao_red
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 44
							MOV Lvl_mapa_Escolhido[BX], 8
							JMP FANTASMA_NAO_ENCONTRADO4
							
							
	FANTASMA_MAGENTA_MORTO4:MOV BX, posicao_magenta
							MOV Lvl_mapa_Escolhido[BX], 0
							
							MOV BX, 46
							MOV Lvl_mapa_Escolhido[BX], 9
							JMP FANTASMA_NAO_ENCONTRADO4
							
							
							
	FANTASMA_NAO_ENCONTRADO4:

	RET
	
	PAREDE_MAPA_BAIXO:
	RET
	
FUNC_SETA_BAIXO ENDP
;------------------------ FIM SETA BAIXO -------------------------------	

	
;----------------------- INICIO VERIFICA PAREDE -----------------------------------
VERIFICA_PAREDE PROC

	MOV flag_parede,0
	
	CMP AH,48H ; Seta para cima
	JE PAREDE_CIMA
	
	CMP AH,4BH ; Seta para esquerda
	JE PAREDE_ESQUERDA
	
	CMP AH,4DH ; Seta para direita
	JE PAREDE_DIREITA
	
	CMP AH,50H ; Seta para baixo
	JE PAREDE_BAIXO

	
PAREDE_CIMA:		CMP Lvl_mapa_Escolhido[BX-38],1
					JNE FIM_VERIFICA_PAREDE
					MOV flag_parede,1
					JMP FIM_VERIFICA_PAREDE

PAREDE_ESQUERDA:	CMP Lvl_mapa_Escolhido[BX-2],1
					JNE FIM_VERIFICA_PAREDE
					MOV flag_parede,1
					JMP FIM_VERIFICA_PAREDE
		
PAREDE_DIREITA:		CMP Lvl_mapa_Escolhido[BX+2],1
					JNE FIM_VERIFICA_PAREDE
					MOV flag_parede,1
					JMP FIM_VERIFICA_PAREDE
	
PAREDE_BAIXO:		CMP Lvl_mapa_Escolhido[BX+38],1
					JNE FIM_VERIFICA_PAREDE
					MOV flag_parede,1

FIM_VERIFICA_PAREDE:

RET
VERIFICA_PAREDE ENDP
;----------------------- FIM VERIFICA PAREDE -----------------------------------


;----- INICIO ABERTURA ---------------------------------------
PRINT_ABERTURA PROC

XOR SI,SI
XOR BX,BX
MOV coluna_pixel_abertura,0
MOV linha_pixel_abertura,0
MOV controlador_abertura,0

MOV cont_pixel_abertura, 4800 ;quantidade de itens da matriz

VEZES_abertura:

MOV AX, ABERTURA[BX]

CMP controlador_abertura,80 ;quantidade de colunas
JNE nao_pula_abertura
;pula linha_abertura
MOV controlador_abertura,0
MOV coluna_pixel_abertura,0
INC linha_pixel_abertura

nao_pula_abertura:
PUSH BX

CMP AX,0
JE BLACK
	
CMP AX,3
JE CYAN

CMP AX,4
JE RED

CMP AX,5
JE MAGENTA

CMP AX,6
JE BROWN

CMP AX,14
JE YELLOW

CMP AX,15
JE WHITE

JMP fim_abertura	  
BLACK:
MOV color,0
CALL QUADRADO_ABERTURA
JMP fim_abertura

CYAN:
MOV color,3
CALL QUADRADO_ABERTURA
JMP fim_abertura

RED:
MOV color,4
CALL QUADRADO_ABERTURA
JMP fim_abertura

LOLA_ABERTURA:
JMP VEZES_abertura

MAGENTA:
MOV color,5
CALL QUADRADO_ABERTURA
JMP fim_abertura

BROWN:
MOV color,6
CALL QUADRADO_ABERTURA
JMP fim_abertura

YELLOW:
MOV color,14
CALL QUADRADO_ABERTURA
JMP fim_abertura

WHITE:
MOV color,15
CALL QUADRADO_ABERTURA
JMP fim_abertura



	  
fim_abertura:

POP BX

INC coluna_pixel_abertura

ADD BX,2

INC controlador_abertura
DEC cont_pixel_abertura
CMP cont_pixel_abertura,0
JNZ LOLA_ABERTURA

RET

; MOV     CX, 002eh
; MOV     DX, 8480h
; MOV     AH, 86H ;;delay de 1s
; INT     15H
PRINT_ABERTURA ENDP

QUADRADO_ABERTURA PROC
		PUSH AX
		PUSH BX
		PUSH CX
		PUSH DX

		XOR SI,SI
		XOR BX,BX
		MOV cont_coluna_abertura,0
		MOV cont_abertura, 100

		MOV AX,coluna_pixel_abertura
		MUL separador_quadrado_abertura
		MOV coluna_abertura, AX

		MOV AX,linha_pixel_abertura
		MUL separador_quadrado_abertura
		MOV linha_abertura, AX

VEZES_BRANCO_ABERTURA:
			CMP cont_coluna_abertura,10
			JNE nao_pula_BRANCO_ABERTURA
			;pula linha_abertura

			MOV cont_coluna_abertura,0
			MOV AX,coluna_pixel_abertura
			MUL separador_quadrado_abertura
			MOV coluna_abertura, AX


			INC linha_abertura

nao_pula_BRANCO_ABERTURA:
			  ;preto
			  mov cx, coluna_abertura  ; column
			  mov dx, linha_abertura  ; row
			  mov al, color  ; WHITE
			  mov ah, 0ch ; put pixel
			  int 10h

		INC coluna_abertura

		ADD BX,2

		INC cont_coluna_abertura
		DEC cont_abertura
		CMP cont_abertura,0
		JNZ VEZES_BRANCO_ABERTURA

		POP DX
		POP CX
		POP BX
		POP AX

RET

QUADRADO_ABERTURA ENDP
	
;----- INICIO ABERTURA ---------------------------------------

;------ INICIO LIMPA TELA -------------------------------------
LIMPATELA PROC

	PUSH AX 
	MOV AH,0h
	MOV AL, 7
	INT 10h
	POP AX
RET
LIMPATELA ENDP
;------ FIM LIMPA TELA -------------------------------------
	
;----------------------- INICIO MOVIMENTO FANTASMA -----------------------------
MOV_FANTASMA PROC
	
	;ACHAR POSIÇÃO DO FANTASMAS | GERAR NÚMERO DO MOVIMENTO | VERIFICAR SE TEM PAREDE | MOVER SE POSSIVEL
	
	;OBS:NÃO SUMIR COM AS PASTILHAS
	
;-----------------------------------------------------
	
	NOP
	MOV flag_rand_primeira,1
	MOV fantasma_atual,6

	CALL NUM_RAND
	
	OUTRO_RAND1:
	MOV BX, posicao_green
	CALL VERIFICA_PAREDE_FANTASMA
	
	CMP flag_parede,1
	JE FIM_FANTASMA_GREEN
	;SE NÃO HOUVER PAREDE
	
	MOV AX,rand_green
	CALL VERIFICA_RAND
	CMP flag_rand,1
	JE OUTRO_RAND1
	
		MOV DX,coluna_green
		MOV coluna_pixel,DX
		
		MOV DX,linha_green
		MOV linha_pixel,DX
	
	MOV BX, posicao_green
	CALL RECOLOCA_PASTILHAS
	
	MOV BX, posicao_green
	CALL VERIFICA_TECLA_FANTASMA
	
	MOV AX, numero_randomico
	MOV rand_green, AX

FIM_FANTASMA_GREEN:
;-----------------------------------------------------

; ;-----------------------------------------------------
	NOP
	NOP
	MOV flag_rand_primeira,1
	MOV fantasma_atual,7

	CALL NUM_RAND
	
	OUTRO_RAND2:
	MOV BX, posicao_cyan
	CALL VERIFICA_PAREDE_FANTASMA
	
	CMP flag_parede,1
	JE FIM_FANTASMA_CYAN
	;SE NÃO HOUVER PAREDE
	
	MOV AX,rand_cyan
	CALL VERIFICA_RAND
	CMP flag_rand,1
	JE OUTRO_RAND2
	
		MOV DX,coluna_cyan
		MOV coluna_pixel,DX
		
		MOV DX,linha_cyan
		MOV linha_pixel,DX
	
	MOV BX, posicao_cyan
	CALL RECOLOCA_PASTILHAS
	
	MOV BX, posicao_cyan
	CALL VERIFICA_TECLA_FANTASMA
	
	MOV AX, numero_randomico
	MOV rand_cyan, AX

FIM_FANTASMA_CYAN:
;-----------------------------------------------------

;-----------------------------------------------------
;	
	NOP
	NOP
	NOP
	MOV flag_rand_primeira,1
	MOV fantasma_atual,8
	
	CALL NUM_RAND
	
	OUTRO_RAND3:
	MOV BX, posicao_red
	CALL VERIFICA_PAREDE_FANTASMA
	
	CMP flag_parede,1
	JE FIM_FANTASMA_RED
	;SE NÃO HOUVER PAREDE
	
	MOV AX,rand_red
	CALL VERIFICA_RAND
	CMP flag_rand,1
	JE OUTRO_RAND3
	
		MOV DX,coluna_red
		MOV coluna_pixel,DX
		
		MOV DX,linha_red
		MOV linha_pixel,DX
	
	MOV BX, posicao_red
	CALL RECOLOCA_PASTILHAS
	
	MOV BX, posicao_red
	CALL VERIFICA_TECLA_FANTASMA
	
	MOV AX, numero_randomico
	MOV rand_red, AX

FIM_FANTASMA_RED:
;-----------------------------------------------------

;-----------------------------------------------------
	NOP
	NOP
	NOP
	NOP
	MOV flag_rand_primeira,1
	MOV fantasma_atual,9
	
	CALL NUM_RAND
	
	OUTRO_RAND4:
	MOV BX, posicao_magenta
	CALL VERIFICA_PAREDE_FANTASMA
	
	CMP flag_parede,1
	JE FIM_FANTASMA_MAGENTA
	;SE NÃO HOUVER PAREDE
	
	MOV AX,rand_magenta
	CALL VERIFICA_RAND
	CMP flag_rand,1
	JE OUTRO_RAND4
	
		MOV DX,coluna_magenta
		MOV coluna_pixel,DX
		
		MOV DX,linha_magenta
		MOV linha_pixel,DX
	
	MOV BX, posicao_magenta
	CALL RECOLOCA_PASTILHAS
	
	MOV BX, posicao_magenta
	CALL VERIFICA_TECLA_FANTASMA
	
	MOV AX, numero_randomico
	MOV rand_magenta, AX

FIM_FANTASMA_MAGENTA:
;-----------------------------------------------------

RET
MOV_FANTASMA ENDP
;----------------------- FIM VERIFICA PAREDE -----------------------------------
	
;-------------- INICIO GERADOR NUMERO --------------------------
NUM_RAND PROC
	
PUSH AX
PUSH BX
PUSH CX 
PUSH DX   

	MOV AH, 2CH
	INT 21H
    
    MOV BL,DL
	MOV BH, 0   ;VALOR EM BX
	ADD BX, fantasma_atual
	
	MOV AX,9
	MUL BX ;9 
	
	XOR DX,DX
	MOV BX,3
	DIV BX ;3 
	MOV BX,AX
	
	MOV AX,7
	MUL BX ;7
	
	XOR DX,DX
	MOV BX,4
	DIV BX ;4 
	MOV BX,AX
	
	MOV numero_randomico, DX 
	
POP DX
POP CX
POP BX
POP AX
	
RET
NUM_RAND ENDP

;-------------- FIM GERADOR NUMERO --------------------------


;-------------- INICIO VERIFICA NUMERO --------------------------
VERIFICA_RAND PROC

	MOV flag_rand,0
	; AX = ANTERIOR
	
	CMP AX,0
	JE RAND_CIMA
	
	CMP AX,1
	JE RAND_ESQUERDA
	
	CMP AX,2
	JE RAND_DIREITA
	
	CMP AX,3
	JE RAND_BAIXO
	
	RAND_CIMA:		CMP numero_randomico,3
					JNE FIM_VERIFICA_RAND
					MOV flag_rand,1
					JMP MUDA_DIRECAO 
	
	RAND_ESQUERDA:	CMP numero_randomico,2
					JNE FIM_VERIFICA_RAND
					MOV flag_rand,1
					JMP MUDA_DIRECAO 
	
	RAND_DIREITA:	CMP numero_randomico,1
					JNE FIM_VERIFICA_RAND
					MOV flag_rand,1
					JMP MUDA_DIRECAO 
	
	RAND_BAIXO:		CMP numero_randomico,0
					JNE FIM_VERIFICA_RAND
					MOV flag_rand,1
					JMP MUDA_DIRECAO 
	
	MUDA_DIRECAO:	CMP flag_rand_primeira,1
					JNE CONTINUA_MUDA_DIRECAO
					;SE FOOR A PRIMEIRA VEZ
					MOV numero_randomico,0
					
					CONTINUA_MUDA_DIRECAO:
					MOV flag_rand_primeira,0
					
					ADD numero_randomico,1
					;CMP numero_randomico,4
					;JNE FIM_VERIFICA_RAND
					;SE FOR 4
					;MOV numero_randomico,0

	
	FIM_VERIFICA_RAND:
	
	
	
	
RET
VERIFICA_RAND ENDP
;-------------- FIM VERIFICA NUMERO --------------------------

	
;----------------------- INICIO VERIFICA PAREDE -----------------------------------
VERIFICA_PAREDE_FANTASMA PROC

	MOV flag_parede,0
	
	CMP numero_randomico,0 ; Seta para cima
	JE PAREDE_CIMA_FANTASMA
	
	CMP numero_randomico,1 ; Seta para esquerda
	JE PAREDE_ESQUERDA_FANTASMA
	
	CMP numero_randomico,2 ; Seta para direita
	JE PAREDE_DIREITA_FANTASMA
	
	CMP numero_randomico,3 ; Seta para baixo
	JE PAREDE_BAIXO_FANTASMA

	
PAREDE_CIMA_FANTASMA:		CMP Lvl_mapa_Escolhido[BX-38],1
							JNE FIM_VERIFICA_PAREDE_FANTASMA
							MOV flag_parede,1
							JMP FIM_VERIFICA_PAREDE_FANTASMA

PAREDE_ESQUERDA_FANTASMA:	CMP Lvl_mapa_Escolhido[BX-2],1
							JNE FIM_VERIFICA_PAREDE_FANTASMA
							MOV flag_parede,1
							JMP FIM_VERIFICA_PAREDE_FANTASMA
		
PAREDE_DIREITA_FANTASMA:	CMP Lvl_mapa_Escolhido[BX+2],1
							JNE FIM_VERIFICA_PAREDE_FANTASMA
							MOV flag_parede,1
							JMP FIM_VERIFICA_PAREDE_FANTASMA
	
PAREDE_BAIXO_FANTASMA:		CMP Lvl_mapa_Escolhido[BX+38],1
							JNE FIM_VERIFICA_PAREDE_FANTASMA
							MOV flag_parede,1

FIM_VERIFICA_PAREDE_FANTASMA:

RET
VERIFICA_PAREDE_FANTASMA ENDP
;----------------------- FIM VERIFICA PAREDE -----------------------------------


;----------------------- INICIO AJUSTA LINHA / COLUNA -----------------------------------
AJUSTA_LINHA_COLUNA PROC

	MOV DX, fantasma_atual
	
	CMP numero_randomico,0 ; Seta para cima
	JE CIMA_PASTILHA
	
	CMP numero_randomico,1 ; Seta para esquerda
	JE ESQUERDA_PASTILHA
	
	CMP numero_randomico,2 ; Seta para direita
	JE DIREITA_PASTILHA
	
	CMP numero_randomico,3 ; Seta para baixo
	JE BAIXO_PASTILHA

	
CIMA_PASTILHA:				;ADD linha_fantasma_atual, 1
							JMP FIM_AJUSTA_COORD

ESQUERDA_PASTILHA:			;ADD coluna_fantasma_atual, 1
							JMP FIM_AJUSTA_COORD
							
DIREITA_PASTILHA:			;SUB coluna_fantasma_atual, 1		
							JMP FIM_AJUSTA_COORD
	
BAIXO_PASTILHA:				;SUB linha_fantasma_atual, 1	
							JMP FIM_AJUSTA_COORD

FIM_AJUSTA_COORD:

RET
AJUSTA_LINHA_COLUNA ENDP
;----------------------- FIM VERIFICA PAREDE -----------------------------------

;----------------------- INICIO VERIFICA PAREDE -----------------------------------
VERIFICA_TECLA_FANTASMA PROC

	MOV DX, fantasma_atual
	
	CMP numero_randomico,0 ; Seta para cima
	JE ANDAR_CIMA_FANTASMA
	
	CMP numero_randomico,1 ; Seta para esquerda
	JE ANDAR_ESQUERDA_FANTASMA
	
	CMP numero_randomico,2 ; Seta para direita
	JE LOLA8
	
	CMP numero_randomico,3 ; Seta para baixo
	JE LOLA2

	
ANDAR_CIMA_FANTASMA:		CMP Lvl_mapa_Escolhido[BX],DX
							JNE NAO_APAGA1
							
							MOV Lvl_mapa_Escolhido[BX],2
							NAO_APAGA1:
							SUB BX,38
							
							CMP Lvl_mapa_Escolhido[BX],5
							JNE PACMAN_NAO_ENCONTRADO1
							;SE O PACMAN ESTIVER NESSA POSICAO
							
								CMP pastilha_ativa,800
								JE PASTILHA_SUPER_ATIVADA_CIMA
								
								;SE A PASTILHA ESTIVER DESATIVADA
								CALL PERDE_VIDA
								JMP PACMAN_NAO_ENCONTRADO1
								
								PASTILHA_SUPER_ATIVADA_CIMA: ;MOV BX, posicao_red
														;MOV Lvl_mapa_Escolhido[BX], 0
														
														MOV BX, 44
														MOV Lvl_mapa_Escolhido[BX], DX
														JMP FIM_VERIFICA_TECLA_FANTASMA
								
							PACMAN_NAO_ENCONTRADO1:
							MOV Lvl_mapa_Escolhido[BX], DX
							JMP FIM_VERIFICA_TECLA_FANTASMA
							
LOLA2: JMP ANDAR_BAIXO_FANTASMA
							
LOLA8: JMP ANDAR_DIREITA_FANTASMA
							
ANDAR_ESQUERDA_FANTASMA:	CMP Lvl_mapa_Escolhido[BX],DX
							JNE NAO_APAGA2
							
							MOV Lvl_mapa_Escolhido[BX],2
							NAO_APAGA2:
							
								 CMP Lvl_mapa_Escolhido[BX-2],3
								 JNE CONTINUA_FANTASMA1
								 ;TELEPORTE
								 MOV BX,412
								 MOV Lvl_mapa_Escolhido[BX],DX
								 JMP FIM_VERIFICA_TECLA_FANTASMA
								
							CONTINUA_FANTASMA1:
							SUB BX,2
							
							CMP Lvl_mapa_Escolhido[BX],5
							JNE PACMAN_NAO_ENCONTRADO2
							;SE O PACMAN ESTIVER NESSA POSICAO
							
								CMP pastilha_ativa,800
								JE PASTILHA_SUPER_ATIVADA_ESQUERDA
								
								;SE A PASTILHA ESTIVER DESATIVADA
								CALL PERDE_VIDA
								JMP PACMAN_NAO_ENCONTRADO2
								
								PASTILHA_SUPER_ATIVADA_ESQUERDA: ;MOV BX, posicao_red
														;MOV Lvl_mapa_Escolhido[BX], 0
														
														MOV BX, 44
														MOV Lvl_mapa_Escolhido[BX], DX
														JMP FIM_VERIFICA_TECLA_FANTASMA
							
							PACMAN_NAO_ENCONTRADO2:
							MOV Lvl_mapa_Escolhido[BX], DX
							JMP FIM_VERIFICA_TECLA_FANTASMA
							
ANDAR_DIREITA_FANTASMA:		CMP Lvl_mapa_Escolhido[BX],DX
							JNE NAO_APAGA3
							
							MOV Lvl_mapa_Escolhido[BX],2
							NAO_APAGA3:
							
								 CMP Lvl_mapa_Escolhido[BX+2],3
								 JNE CONTINUA_FANTASMA2
								 ;TELEPORTE
								 MOV BX,384
								 MOV Lvl_mapa_Escolhido[BX],DX
								 JMP FIM_VERIFICA_TECLA_FANTASMA
							
							CONTINUA_FANTASMA2:
							ADD BX,2
							
							CMP Lvl_mapa_Escolhido[BX],5
							JNE PACMAN_NAO_ENCONTRADO3
							;SE O PACMAN ESTIVER NESSA POSICAO
							
								CMP pastilha_ativa,800
								JE PASTILHA_SUPER_ATIVADA_DIREITA
								
								;SE A PASTILHA ESTIVER DESATIVADA
								CALL PERDE_VIDA
								JMP PACMAN_NAO_ENCONTRADO3
								
								PASTILHA_SUPER_ATIVADA_DIREITA: ;MOV BX, posicao_red
														;MOV Lvl_mapa_Escolhido[BX], 0
														
														MOV BX, 44
														MOV Lvl_mapa_Escolhido[BX], DX
														JMP FIM_VERIFICA_TECLA_FANTASMA
							
							PACMAN_NAO_ENCONTRADO3:
							MOV Lvl_mapa_Escolhido[BX], DX
							JMP FIM_VERIFICA_TECLA_FANTASMA
	
ANDAR_BAIXO_FANTASMA:		CMP Lvl_mapa_Escolhido[BX],DX
							JNE NAO_APAGA4
							
							MOV Lvl_mapa_Escolhido[BX],2
							NAO_APAGA4:
							ADD BX,38
							
							CMP Lvl_mapa_Escolhido[BX],5
							JNE PACMAN_NAO_ENCONTRADO4
							;SE O PACMAN ESTIVER NESSA POSICAO
							
								CMP pastilha_ativa,800
								JE PASTILHA_SUPER_ATIVADA_BAIXO
								
								;SE A PASTILHA ESTIVER DESATIVADA
								CALL PERDE_VIDA
								JMP PACMAN_NAO_ENCONTRADO4
								
								PASTILHA_SUPER_ATIVADA_BAIXO: ;MOV BX, posicao_red
														;MOV Lvl_mapa_Escolhido[BX], 0
														
														MOV BX, 44
														MOV Lvl_mapa_Escolhido[BX], DX
														JMP FIM_VERIFICA_TECLA_FANTASMA
							
							PACMAN_NAO_ENCONTRADO4:
							MOV Lvl_mapa_Escolhido[BX], DX
							JMP FIM_VERIFICA_TECLA_FANTASMA

FIM_VERIFICA_TECLA_FANTASMA:

RET
VERIFICA_TECLA_FANTASMA ENDP
;----------------------- FIM VERIFICA PAREDE -----------------------------------


;----------------------- INICIO PERDE VIDA -----------------------------------
PERDE_VIDA PROC
	
	PUSH BX
	CALL PACMAN_MORTE_IMAGEM
	DEC cont_vidas
	
	CMP cont_vidas,2
	JE DUAS_VIDAS
	
	CMP cont_vidas,1
	JE UMA_VIDAS
	
	JMP ZERO_VIDAS
	
	DUAS_VIDAS:	MOV coluna, 530
				MOV linha, 130
				CALL QUADRADO_lives
				JMP ZERO_VIDAS
				
	UMA_VIDAS:	MOV coluna, 490
				MOV linha, 130
				CALL QUADRADO_lives
				JMP ZERO_VIDAS
	
	ZERO_VIDAS: 
	
	POP BX
		
	MOV SI,626
	MOV Lvl_mapa_Escolhido[SI],5
	MOV posicao_pacman, SI
	MOV direcao_pacman,0
	
	MOV tecla_atual, 00
	
	

RET	
PERDE_VIDA ENDP
;----------------------- INICIO PERDE VIDA -----------------------------------


;-------------------- INICIO INTEGRAÇÃO --------------------------------------------
;-----------VERIFICA PASTILHA GRANDE----------
VERIFICA_PASTILHAGRANDE PROC

	MOV BX,posicao_pacman
	MOV flag_pastilha,0
	
	CMP DH,48H ; Seta para cima
	JE PAREDE_CIMA_medo
	
	CMP DH,4BH ; Seta para esquerda
	JE PAREDE_ESQUERDA_medo
	
	CMP DH,4DH ; Seta para direita
	JE PAREDE_DIREITA_medo
	
	CMP DH,50H ; Seta para baixo
	JE PAREDE_BAIXO_medo

	
PAREDE_CIMA_medo:	CMP Lvl_pastilha_Escolhido[BX-38],2
					JNE FIM_VERIFICA_MEDO
					
					MOV flag_pastilha,1
					;MOV Lvl_pastilha_Escolhido[BX-38],0
					JMP FIM_VERIFICA_MEDO

PAREDE_ESQUERDA_medo:CMP Lvl_pastilha_Escolhido[BX-2],2
					JNE FIM_VERIFICA_MEDO
					
					MOV flag_pastilha,1
					;MOV Lvl_pastilha_Escolhido[BX-2],0
					JMP FIM_VERIFICA_MEDO
		
PAREDE_DIREITA_medo:CMP Lvl_pastilha_Escolhido[BX+2],2
					JNE FIM_VERIFICA_MEDO
					
					MOV flag_pastilha,1
					;MOV Lvl_pastilha_Escolhido[BX+2],0
					JMP FIM_VERIFICA_MEDO
	
PAREDE_BAIXO_medo:	CMP Lvl_pastilha_Escolhido[BX+38],2
					JNE FIM_VERIFICA_MEDO
					
					MOV flag_pastilha,1
					;MOV Lvl_pastilha_Escolhido[BX+38],0

FIM_VERIFICA_MEDO:
	
	CMP pastilha_ativa, 800
	JNE EFEITO_DESATIVADO
	;SE O EFEITO ESTIVER ATIVO

	CALL PEGANDO_TEMPO
	SUB AX, tempo_antes
	
	CMP AX, 8
	JBE EFEITO_DESATIVADO
	;SE TIVER PASSADO MAIS DE 5 SEGUNDOS
	MOV pastilha_ativa, 0
	
	EFEITO_DESATIVADO:
	CMP flag_pastilha,1
	JE pastilhaEncontrada
	

RET

	
pastilhaEncontrada:

		MOV pastilha_ativa, 800
		
		PUSH AX
		CALL PEGANDO_TEMPO
		MOV tempo_antes, AX
		POP AX
		
		RET


VERIFICA_PASTILHAGRANDE ENDP
;----------- FIM VERIFICA PASTILHA GRANDE----------
;-------------------- FIM INTEGRAÇÃO --------------------------------------------


;------------------ INICIO PEGANDO TEMPO -----------------------------
PEGANDO_TEMPO PROC  
    
PUSH BX
PUSH CX 
PUSH DX   
                  ;DH SEGUNDOS CL MINUTOS
	MOV AH, 2CH
	INT 21H
	
	MOV DL,DH
	MOV DH,0
	
	MOV tempo_pastilha,DX 
    
    XOR AX,AX
    MOV AL,CL  
    
    MOV CX,60
    MUL CX
    
    ADD AX, tempo_pastilha 
	
POP DX
POP CX
POP BX
   
RET
PEGANDO_TEMPO ENDP
;------------------ FIM PEGANDO TEMPO -----------------------------


;-------------------  INICIO RECOLOCA PASTILHAS --------------------
RECOLOCA_PASTILHAS PROC
		
		CMP Lvl_pastilha_Escolhido[BX], 1
		JE PASTILHA_COMUM
		
		CMP Lvl_pastilha_Escolhido[BX], 2
		JE PASTILHA_SUPER
		
		CMP Lvl_pastilha_Escolhido[BX], 5
		JE FRUTA_ESPECIAL
		
		JMP FIM_RECOLOCA_PASTILHAS
		
		PASTILHA_COMUM:	MOV color,0
						CALL QUADRADO
						MOV Lvl_mapa_Escolhido[BX],0
						
						CALL BOLINHA_NORMAL_PASTILHA
						JMP FIM_RECOLOCA_PASTILHAS
		
		PASTILHA_SUPER:	MOV color, 0
						CALL QUADRADO
						MOV Lvl_mapa_Escolhido[BX], 0
						
						CALL BOLINHA_GRANDE_PASTILHA
						JMP FIM_RECOLOCA_PASTILHAS
		
		FRUTA_ESPECIAL:	MOV color,0
						CALL QUADRADO
						MOV Lvl_mapa_Escolhido[BX],0
						
						CALL PRINT_FRUTA
						JMP FIM_RECOLOCA_PASTILHAS
						
		FIM_RECOLOCA_PASTILHAS:
		
RET		
RECOLOCA_PASTILHAS ENDP
;-------------------  FIM RECOLOCA PASTILHAS --------------------

;-------------------  INICIO VERIFICA PASTILHA NORMAL --------------------
VERIFICA_PASTILHA_SCORE PROC
	
	CMP Lvl_pastilha_Escolhido[BX], 1
	JE PASTILHA_NORMAL_ENCONTRADA
	
	CMP Lvl_pastilha_Escolhido[BX], 2
	JE PASTILHA_SUPER_ENCONTRADA
	
	CMP Lvl_pastilha_Escolhido[BX], 5
	JE FRUTA_ENCONTRADA
	
	JMP FIM_VERIFICA_PASTILHA_SCORE
	
	PASTILHA_NORMAL_ENCONTRADA:	MOV Lvl_pastilha_Escolhido[BX], 0
								ADD score_total,10
								INC cont_pastilhas_pegas
								JMP FIM_VERIFICA_PASTILHA_SCORE
								
	PASTILHA_SUPER_ENCONTRADA:	MOV Lvl_pastilha_Escolhido[BX], 0
								ADD score_total,50
								JMP FIM_VERIFICA_PASTILHA_SCORE
	
	FRUTA_ENCONTRADA:			MOV Lvl_pastilha_Escolhido[BX], 0
								ADD score_total,200
								JMP FIM_VERIFICA_PASTILHA_SCORE
								
	FIM_VERIFICA_PASTILHA_SCORE:

RET
VERIFICA_PASTILHA_SCORE ENDP
;-------------------  INICIO VERIFICA PASTILHA NORMAL --------------------


;----------------------- INICIO PACMAN IMAGEM -----------------------------;
PACMAN_MORTE_IMAGEM PROC

PUSH AX
		 
		 MOV controlador_pacman,0
		 
		 MOV AX,coluna_pacman_atual
		 MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pacman_atual
		 MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 
		 MOV cont, 3200 ;quantidade de itens da matriz

		 VEZES_PACMAN_MORTE:

		 MOV AX, PACMAN_MORTE[BX]

		 ;--------------------- INICIO ANIMAÇÃO 2 -------------------------------
		 CMP controlador_anima_morte,400 ;quantidade de elementos
		 JNE nao_pula_ANIMA_MORTE
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA_MORTE:
		 
		 ;--------------------- FIM ANIMAÇÃO 2 -------------------------------
		 
		  ;--------------------- INICIO ANIMAÇÃO 3 -------------------------------
		 CMP controlador_anima_morte,800 ;quantidade de elementos
		 JNE nao_pula_ANIMA_MORTE3
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA_MORTE3:
		 
		 ;--------------------- FIM ANIMAÇÃO 3 -------------------------------
		 
		  ;--------------------- INICIO ANIMAÇÃO 4 -------------------------------
		 CMP controlador_anima_morte,1200 ;quantidade de elementos
		 JNE nao_pula_ANIMA_MORTE4
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA_MORTE4:
		 
		 ;--------------------- FIM ANIMAÇÃO 4 -------------------------------
		 
		  ;--------------------- INICIO ANIMAÇÃO 5 -------------------------------
		 CMP controlador_anima_morte,1600 ;quantidade de elementos
		 JNE nao_pula_ANIMA_MORTE5
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA_MORTE5:
		 
		 ;--------------------- FIM ANIMAÇÃO 5 -------------------------------
		 
		 
		  ;--------------------- INICIO ANIMAÇÃO 6 -------------------------------
		 CMP controlador_anima_morte,2000 ;quantidade de elementos
		 JNE nao_pula_ANIMA_MORTE6
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA_MORTE6:
		 
		 ;--------------------- FIM ANIMAÇÃO 6 -------------------------------
		 
		  ;--------------------- INICIO ANIMAÇÃO 7 -------------------------------
		 CMP controlador_anima_morte,2400 ;quantidade de elementos
		 JNE nao_pula_ANIMA_MORTE7
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA_MORTE7:
		 
		 ;--------------------- FIM ANIMAÇÃO 7 -------------------------------
		 JMP CONTINUA_PRINT_MORTE
		 
		 LOLA9: JMP VEZES_PACMAN_MORTE
		 
		 CONTINUA_PRINT_MORTE:
		 ;--------------------- INICIO ANIMAÇÃO 8 -------------------------------
		 CMP controlador_anima_morte,2800 ;quantidade de elementos
		 JNE nao_pula_ANIMA2_MORTE8
		 ;pula linha
		 
		 CALL DELAY_ANIMA
		 MOV controlador_anima_morte,0
		 
		 CALL RESET_COORDENADAS_PACMAN

		 nao_pula_ANIMA2_MORTE8:
		 
		 ;--------------------- FIM ANIMAÇÃO 8 -------------------------------
		 
		 ;----------------------- VOLTANDO PARA CULUNA 0 ---------------------------------
		 CMP controlador_pacman,20 ;quantidade de colunas
		 JNE nao_pula2_PACMAN_MORTE
		 ;pula linha
		 MOV controlador_pacman,0
		 
		 CALL RESET_COLUNA_PACMAN
		 
		 INC linha
		 nao_pula2_PACMAN_MORTE:
		;----------------------- VOLTANDO PARA CULUNA 0 ---------------------------------
		 
		 CMP AX,14
		 JE amarelo_PACMAN_MORTE
			   ;PRETO
			    mov cx, coluna  ; column
			    mov dx, linha  ; row
			    ;mov al, 0  ; WHITE
			    mov ah, 0ch ; put pixel
			    int 10h
		 JMP fim2_PACMAN_MORTE  

		 amarelo_PACMAN_MORTE: ;AMARELO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 14  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim2_PACMAN_MORTE:
		 INC coluna

		 ADD BX,2

		 INC controlador_pacman
		 INC controlador_anima_morte
		 DEC cont
		 CMP cont,0
		 JNZ LOLA9

RET
PACMAN_MORTE_IMAGEM ENDP
;----------------------- FIM PACMAN IMAGEM -----------------------------;


;--------------------------------------------------------------------------------
PRINT_LIVES PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 900 ;quantidade de itens da matriz
	
		VEZES_LIVES:
	
		MOV AX, LIVES[BX]
	
		CMP controlador_lives,30 ;quantidade de colunas
		JNE nao_pula_LIVES
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_LIVES:
	
		CMP AX,14
		JE AMARELO_LIVES
		;PRETO
		mov cx, coluna  ; column
		mov dx, linha ; row
		mov al, 00  ; WHITE
		mov ah, 0ch ; put pixel
		int 10h
		JMP fim_LIVES
		
		AMARELO_LIVES: 
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 14  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim_LIVES
		
		 fim_LIVES:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_LIVES
	
RET
PRINT_LIVES ENDP
;--------------------------------------------------------------------------------

;--------------------------------------------------------------------------------
PRINT_LIVES_ESCRITO PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 1776 ;quantidade de itens da matriz
	
		VEZES_LIVES_ESCRITO:
	
		MOV AX, LIVES_ESCRITO[BX]
	
		CMP controlador_lives,74 ;quantidade de colunas
		JNE nao_pula_LIVES_ESCRITO
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_LIVES_ESCRITO:
	
		CMP AX,15
		JE BRANCO_LIVES_ESCRITO
		;PRETO
		MOV color, 0
		
		mov cx, coluna  ; column
		mov dx, linha  ; row
		mov al, 0  ; COR ESCOLHIDA
		mov ah, 0ch ; put pixel
		int 10h
		;CALL QUADRADO_escrito
		JMP fim_LIVES_ESCRITO
		
		BRANCO_LIVES_ESCRITO: 
					  MOV color, 15
					  
					  mov cx, coluna  ; column
					  mov dx, linha  ; row
					  mov al, 15  ; COR ESCOLHIDA
					  mov ah, 0ch ; put pixel
					  int 10h
					  ;CALL QUADRADO_escrito
					  JMP fim_LIVES_ESCRITO
		
		 fim_LIVES_ESCRITO:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_LIVES_ESCRITO
	
RET
PRINT_LIVES_ESCRITO ENDP
;--------------------------------------------------------------------------------

;-------------------- INÍCIO QUADRADO --------------------;
QUADRADO_escrito_titulo PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX

MOV cont_coluna,0
MOV cont_quadrado, 9

MOV AX, coluna
MUL separador_quadrado_escrito
MOV coluna_quadrado, AX

MOV AX, linha
MUL separador_quadrado_escrito
MOV linha_quadrado, AX

VEZES_BRANCO_escrito2:
CMP cont_coluna,3
JNE nao_pula_BRANCO_escrito2
;pula linha

MOV cont_coluna,0
MOV AX, coluna
MUL separador_quadrado_escrito
MOV coluna_quadrado, AX


INC linha_quadrado

nao_pula_BRANCO_escrito2:
	  ;printando
	  mov cx, coluna_quadrado  ; column
	  mov dx, linha_quadrado  ; row
	  mov al, color  ; COR ESCOLHIDA
	  mov ah, 0ch ; put pixel
	  int 10h

INC coluna_quadrado

;ADD BX,2

INC cont_coluna
DEC cont_quadrado
CMP cont_quadrado,0
JNZ VEZES_BRANCO_escrito2

POP DX
POP CX
POP BX
POP AX

RET
QUADRADO_escrito_titulo ENDP
;-------------------- FIM QUADRADO --------------------;

;-------------------- INÍCIO QUADRADO --------------------;
QUADRADO_escrito_op PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX

MOV cont_coluna,0
MOV cont_quadrado, 4

MOV AX, coluna
MUL separador_quadrado_escrito
MOV coluna_quadrado, AX

MOV AX, linha
MUL separador_quadrado_escrito
MOV linha_quadrado, AX

VEZES_BRANCO_escrito:
CMP cont_coluna,2
JNE nao_pula_BRANCO_escrito
;pula linha

MOV cont_coluna,0
MOV AX, coluna
MUL separador_quadrado_escrito
MOV coluna_quadrado, AX


INC linha_quadrado

nao_pula_BRANCO_escrito:
	  ;printando
	  mov cx, coluna_quadrado  ; column
	  mov dx, linha_quadrado  ; row
	  mov al, color  ; COR ESCOLHIDA
	  mov ah, 0ch ; put pixel
	  int 10h

INC coluna_quadrado

;ADD BX,2

INC cont_coluna
DEC cont_quadrado
CMP cont_quadrado,0
JNZ VEZES_BRANCO_escrito

POP DX
POP CX
POP BX
POP AX

RET
QUADRADO_escrito_op ENDP
;-------------------- FIM QUADRADO --------------------;

;-------------------- INÍCIO QUADRADO --------------------;
QUADRADO_lives PROC
PUSH AX
PUSH BX
PUSH CX
PUSH DX

MOV cont_coluna,0
MOV cont_quadrado, 900

MOV AX, coluna
MOV coluna_quadrado, AX

MOV AX, linha
MOV linha_quadrado, AX

VEZES_BRANCO_lives:
CMP cont_coluna,30
JNE nao_pula_BRANCO_lives
;pula linha

MOV cont_coluna,0
MOV AX, coluna
MOV coluna_quadrado, AX


INC linha_quadrado

nao_pula_BRANCO_lives:
	  ;printando
	  mov cx, coluna_quadrado  ; column
	  mov dx, linha_quadrado  ; row
	  mov al, 00  ; COR ESCOLHIDA
	  mov ah, 0ch ; put pixel
	  int 10h

INC coluna_quadrado

;ADD BX,2

INC cont_coluna
DEC cont_quadrado
CMP cont_quadrado,0
JNZ VEZES_BRANCO_lives

POP DX
POP CX
POP BX
POP AX

RET
QUADRADO_lives ENDP
;-------------------- FIM QUADRADO --------------------;

;----------------------- INICIO ESCOLHENDO MAPA -----------------------------;
ESCOLHENDO_MAPA PROC
	
	XOR BX,BX
	XOR AX,AX
	MOV cont, 418
	CMP Mapa_escolhido, 1
	JE Mapa_lvl1
	
	CMP Mapa_escolhido, 2
	JE Mapa_lvl2
	
	CMP Mapa_escolhido, 3
	JE Mapa_lvl3
	
	JMP FIM_ESCOLHENDO_MAPA
	
	Mapa_lvl1:	MOV color_mapa, 9
				MOV Pastilhas_mapa_escolhido, 153
				
				LOOP_COPIA_MAPA1:
				MOV AX, Lvl1_mapa[BX]
				MOV Lvl_mapa_Escolhido[BX], AX
				
				MOV AX, Lvl1_pastilha[BX]
				MOV Lvl_pastilha_Escolhido[BX], AX
				
				ADD BX,2
				
				DEC cont
				CMP cont,0
				JNE LOOP_COPIA_MAPA1
				
				JMP FIM_ESCOLHENDO_MAPA
				
	Mapa_lvl2:	MOV color_mapa, 11
				MOV Pastilhas_mapa_escolhido, 184
	
				LOOP_COPIA_MAPA2:
				MOV AX, Lvl2_mapa[BX]
				MOV Lvl_mapa_Escolhido[BX], AX
				
				MOV AX, Lvl2_pastilha[BX]
				MOV Lvl_pastilha_Escolhido[BX], AX
				
				ADD BX,2
				
				DEC cont
				CMP cont,0
				JNE LOOP_COPIA_MAPA2
				
				JMP FIM_ESCOLHENDO_MAPA
				
	Mapa_lvl3:	MOV color_mapa, 12
				MOV Pastilhas_mapa_escolhido, 166
	
				LOOP_COPIA_MAPA3:
				MOV AX, Lvl3_mapa[BX]
				MOV Lvl_mapa_Escolhido[BX], AX
				
				MOV AX, Lvl3_pastilha[BX]
				MOV Lvl_pastilha_Escolhido[BX], AX
				
				ADD BX,2
				
				DEC cont
				CMP cont,0
				JNE LOOP_COPIA_MAPA3
				
				JMP FIM_ESCOLHENDO_MAPA
				
				
	FIM_ESCOLHENDO_MAPA:
	
RET
ESCOLHENDO_MAPA ENDP
;----------------------- FIM ESCOLHENDO MAPA -----------------------------;


;------------------------- INICIO PRINT GAME OVER -------------------------------
PRINT_GAME_OVER PROC
	
	PUSH AX

		MOV controlador_game_over,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna_game_over, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha_game_over, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont_game_over, 1056 ;quantidade de itens da matriz
	
		VEZES_GAME_OVER:
	
		MOV AX, MSG_GAME_OVER[BX]
	
		CMP controlador_game_over,88 ;quantidade de colunas
		JNE nao_pula_GAME_OVER
		;pula linha
		MOV controlador_game_over,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna_game_over, AX
		POP AX
		
		INC linha_game_over
		nao_pula_GAME_OVER:
	
		CMP AX,15
		JE VERMELHO_GAME_OVER
		;PRETO
		
		mov cx, coluna_game_over  ; column
		mov dx, linha_game_over  ; row
		mov al, 0  ; COR ESCOLHIDA
		mov ah, 0ch ; put pixel
		int 10h
		;CALL QUADRADO_escrito
		JMP fim_GAME_OVER
		
		VERMELHO_GAME_OVER: 
					  
					  mov cx, coluna_game_over  ; column
					  mov dx, linha_game_over  ; row
					  mov al, 4  ; COR ESCOLHIDA
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim_GAME_OVER
		
		 fim_GAME_OVER:
		 INC coluna_game_over

		 ADD BX,2

		 INC controlador_game_over
		 DEC cont_game_over
		 CMP cont_game_over,0
		 JNZ VEZES_GAME_OVER
	
RET
PRINT_GAME_OVER ENDP
;------------------------- FIM PRINT GAME OVER -------------------------------


;------------------------- INICIO PRINT VICTORY -------------------------------
PRINT_VICTORY PROC
	
	PUSH AX

		MOV controlador_game_over,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna_game_over, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha_game_over, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont_game_over, 888 ;quantidade de itens da matriz
	
		VEZES_VICTORY:
	
		MOV AX, MSG_VICTORY[BX]
	
		CMP controlador_game_over,74 ;quantidade de colunas
		JNE nao_pula_VICTORY
		;pula linha
		MOV controlador_game_over,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna_game_over, AX
		POP AX
		
		INC linha_game_over
		nao_pula_VICTORY:
	
		CMP AX,14
		JE AMARELO_VICTORY
		;PRETO
		
		mov cx, coluna_game_over  ; column
		mov dx, linha_game_over  ; row
		mov al, 0  ; COR ESCOLHIDA
		mov ah, 0ch ; put pixel
		int 10h
		;CALL QUADRADO_escrito
		JMP fim_VICTORY
		
		AMARELO_VICTORY: 
					  
					  mov cx, coluna_game_over  ; column
					  mov dx, linha_game_over  ; row
					  mov al, 14  ; COR ESCOLHIDA
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim_VICTORY
		
		 fim_VICTORY:
		 INC coluna_game_over

		 ADD BX,2

		 INC controlador_game_over
		 DEC cont_game_over
		 CMP cont_game_over,0
		 JNZ VEZES_VICTORY
	
RET
PRINT_VICTORY ENDP
;------------------------- FIM PRINT VICTORY -------------------------------

;------------------SCORE-------------------------
Menu_do_lado PROC

PUSH AX

	MOV controlador_lives,0
	
	MOV AX,coluna_pixel
	;MUL separador_lives_coluna
	MOV coluna, AX
	
	MOV AX,linha_pixel
	;MUL separador_lives_linha
	MOV linha, AX
	
	POP AX
	XOR SI,SI
	XOR BX,BX
	MOV cont, 484 ;quantidade de itens da matriz

	VEZES_SCORE_ESCRITO:

	MOV AX, SCORE[BX]

	CMP controlador_lives,44 ;quantidade de colunas
	JNE nao_pula_SCORE_ESCRITO
	;pula linha
	MOV controlador_lives,0
	
	PUSH AX
	MOV AX,coluna_pixel
	;MUL separador_lives_coluna
	MOV coluna, AX
	POP AX
	
	INC linha
	nao_pula_SCORE_ESCRITO:

	CMP AX,1
	JE BRANCO_SCORE_ESCRITO
	;PRETO
	
	mov cx, coluna  ; column
	mov dx, linha  ; row
	mov al, 0  ; COR ESCOLHIDA
	mov ah, 0ch ; put pixel
	int 10h
	;CALL QUADRADO_escrito
	JMP fim_SCORE_ESCRITO
	
	BRANCO_SCORE_ESCRITO: 
				  MOV color, 15
				  
				  mov cx, coluna  ; column
				  mov dx, linha  ; row
				  mov al, 14  ; COR ESCOLHIDA
				  mov ah, 0ch ; put pixel
				  int 10h
				  ;CALL QUADRADO_escrito
				  JMP fim_SCORE_ESCRITO
	
	 fim_SCORE_ESCRITO:
	 INC coluna

	 ADD BX,2

	 INC controlador_lives
	 DEC cont
	 CMP cont,0
	 JNZ VEZES_SCORE_ESCRITO
	 
	; MOV COLUNA,547
	; MOV LINHA,30
	; MOV Col_quadrante, 0
	; MOV Lin_quadrante, 0
	; MOV MATRIZ, 0
	; MOV COR, 0FH
; Verifica_conta:
	; MOV BX, MATRIZ
	; CMP [SCORE + BX], 1
	; JE LETSPRINT_SMSCORE	
	; CMP Col_quadrante, 59
	; JE DESCE_num
	; INC MATRIZ
	; INC Col_quadrante
	; JMP RESETA_INICIO_MAPA_1
; LETSPRINT_SMSCORE:
	; CMP Col_quadrante, 59
	; JE DESCE_num
	; MOV Tam_quadrante, 3
	; CALL IMPRIME_QUADRANTE
	; INC Col_quadrante
	; INC MATRIZ
; RESETA_INICIO_MAPA_1:
	; MOV COLUNA, 500
	; MOV LINHA, 30
	; MOV AX, 4
	; MUL Lin_quadrante
	; ADD LINHA, AX
	; MOV AX, 4	
	; MUL Col_quadrante
	; ADD COLUNA, AX
	; JMP Verifica_conta
; DESCE_num:
	; CMP Lin_quadrante, 9
	; JG ACABOU_MENU_LADO
	; INC Lin_quadrante
	; MOV Col_quadrante, 0
	; INC MATRIZ
	; JMP RESETA_INICIO_MAPA_1
; ACABOU_MENU_LADO:

	RET
Menu_do_lado ENDP
;------------------------------------
IMPRIME_QUADRANTE PROC		
	MOV CX, COLUNA
	ADD CX, Tam_quadrante
	MOV COLMAIS, CX
	MOV DX, LINHA
	ADD DX, Tam_quadrante
	MOV LINMAIS, DX

PRINT:
	MOV CX, COLUNA
	MOV DX, LINHA
	MOV AL, 14
	MOV AH, 0CH
	INT 10H
	
	CMP CX, COLMAIS
	JE 	DESCELINHA
	INC COLUNA
	JMP PRINT
DESCELINHA:
	CMP DX, LINMAIS
	JE PRINTOU
	INC LINHA
	MOV BX, Tam_quadrante
	SUB COLUNA, BX
	JMP PRINT
PRINTOU:
	RET
IMPRIME_QUADRANTE ENDP
;-----------------------------------------------------------------------------------
	Menu_do_lado_score PROC
	MOV AX, score_total
	MOV CX,10
	
	XOR DX, DX
	DIV CX
	MOV SCORE_L,DX
	
	XOR DX, DX
	DIV CX
	MOV SCORE_B,DX
	
	XOR DX, DX
	DIV CX
	MOV SCORE_S,DX
	
	XOR DX, DX
	DIV CX
	MOV SCORE_Q,DX
;----------------------------------------------------------------------------------PRIMEIRO DIGITO
	
    MOV coluna_pixel, 520
    ;MOV CX, COLUNA_pixel
	
    CMP SCORE_L,0
    JE SCORE_L0
	
    CMP SCORE_L,1
    JE SCORE_L1
	
    CMP SCORE_L,2
    JE SCORE_L2
	
    CMP SCORE_L,3
    JE SCORE_L3
	
    CMP SCORE_L,4
    JE SCORE_L4
	
    CMP SCORE_L,5
    JE SCORE_L5
	
    CMP SCORE_L,6
    JE SCORE_L6
	
    CMP SCORE_L,7
    JE SCORE_L7
	
    CMP SCORE_L,8
    JE SCORE_L8
	
    CMP SCORE_L,9
    JE SCORE_L9
	
JMP SEGUNDO_DIGITO

SCORE_L0:	CALL IMPRIM_0ALG
			JMP SEGUNDO_DIGITO
			
SCORE_L1:	CALL IMPRIM_1ALG
			JMP SEGUNDO_DIGITO
			
SCORE_L2:	CALL IMPRIM_2ALG
			JMP SEGUNDO_DIGITO
			
SCORE_L3:	CALL IMPRIM_3ALG
			JMP SEGUNDO_DIGITO
	
SCORE_L4:	CALL IMPRIM_4ALG
			JMP SEGUNDO_DIGITO
			
SCORE_L5:	CALL IMPRIM_5ALG
			JMP SEGUNDO_DIGITO
	
SCORE_L6:	CALL IMPRIM_6ALG
			JMP SEGUNDO_DIGITO
	
SCORE_L7:	CALL IMPRIM_7ALG
			JMP SEGUNDO_DIGITO
	
SCORE_L8:	CALL IMPRIM_8ALG
			JMP SEGUNDO_DIGITO
	
SCORE_L9:	CALL IMPRIM_9ALG
			JMP SEGUNDO_DIGITO
;----------------------------------------------------------------------------------SEGUNDO DIGITO
SEGUNDO_DIGITO:

    MOV COLUNA_pixel, 510
    ;MOV CX,COLUNA_pixel
	
    CMP SCORE_B,0
    JE SCORE_B0
	
    CMP SCORE_B,1
    JE SCORE_B1
	
    CMP SCORE_B,2
    JE SCORE_B2
	
    CMP SCORE_B,3
    JE SCORE_B3
	
    CMP SCORE_B,4
    JE SCORE_B4
	
    CMP SCORE_B,5
    JE SCORE_B5
	
    CMP SCORE_B,6
    JE SCORE_B6	

    CMP SCORE_B,7
    JE SCORE_B7
	
    CMP SCORE_B,8
    JE SCORE_B8
	
    CMP SCORE_B,9
    JE SCORE_B9
	
JMP TERC_DIGITO
	
SCORE_B0:
    CALL IMPRIM_0ALG
	JMP TERC_DIGITO
	
SCORE_B1:
    CALL IMPRIM_1ALG
    JMP TERC_DIGITO
	
SCORE_B2:
    CALL IMPRIM_2ALG
	JMP TERC_DIGITO
	
SCORE_B3:
    CALL IMPRIM_3ALG
	JMP TERC_DIGITO
	
SCORE_B4:
    CALL IMPRIM_4ALG
	JMP TERC_DIGITO
	
SCORE_B5:
    CALL IMPRIM_5ALG
	JMP TERC_DIGITO
	
SCORE_B6:
    CALL IMPRIM_6ALG
	JMP TERC_DIGITO
	
SCORE_B7:
    CALL IMPRIM_7ALG
	JMP TERC_DIGITO
	
SCORE_B8:
    CALL IMPRIM_8ALG
	JMP TERC_DIGITO
	
SCORE_B9:
    CALL IMPRIM_9ALG
	
;----------------------------------------------------------------------------------TERCEIRO DIGITO
 TERC_DIGITO:

    MOV COLUNA_pixel,500
    ;MOV CX,COLUNA_pixel
	
    CMP SCORE_S,0
    JE SCORE_S0
	
    CMP SCORE_S,1
    JE SCORE_S1
	
    CMP SCORE_S,2
    JE SCORE_S2
	
    CMP SCORE_S,3
    JE SCORE_S3
	
    CMP SCORE_S,4
    JE SCORE_S4
	
    CMP SCORE_S,5
    JE SCORE_S5
	
    CMP SCORE_S,6
    JE SCORE_S6
	
    CMP SCORE_S,7
    JE SCORE_S7
	
    CMP SCORE_S,8
    JE SCORE_S8
	
    CMP SCORE_S,9
    JE SCORE_S9

JMP QUART_DIGITO
 
SCORE_S0:
    CALL IMPRIM_0ALG
	JMP QUART_DIGITO
	
SCORE_S1:
    CALL IMPRIM_1ALG
    JMP QUART_DIGITO
	
SCORE_S2:
    CALL IMPRIM_2ALG
	JMP QUART_DIGITO
	
SCORE_S3:
    CALL IMPRIM_3ALG
	JMP QUART_DIGITO
	
SCORE_S4:
    CALL IMPRIM_4ALG
	JMP QUART_DIGITO
	
SCORE_S5:
    CALL IMPRIM_5ALG
	JMP QUART_DIGITO
	
SCORE_S6:
    CALL IMPRIM_6ALG
	JMP QUART_DIGITO
	
SCORE_S7:
    CALL IMPRIM_7ALG
	JMP QUART_DIGITO
	
SCORE_S8:
    CALL IMPRIM_8ALG
	JMP QUART_DIGITO
	
SCORE_S9:
    CALL IMPRIM_9ALG
	
;----------------------------------------------------------------------------------QUARTO DIGITO
QUART_DIGITO:

    MOV COLUNA_pixel,490
    ;MOV CX,COLUNA_pixel
	
    CMP SCORE_Q,0
    JE SCORE_Q0
	
    CMP SCORE_Q,1
    JE SCORE_Q1
	
    CMP SCORE_Q,2
    JE SCORE_Q2
	
    CMP SCORE_Q,3
    JE SCORE_Q3
	
    CMP SCORE_Q,4
    JE SCORE_Q4
	
    CMP SCORE_Q,5
    JE SCORE_Q5
	
    CMP SCORE_Q,6
    JE SCORE_Q6
	
    CMP SCORE_Q,7
    JE SCORE_Q7
	
    CMP SCORE_Q,8
    JE SCORE_Q8
	
    CMP SCORE_Q,9
    JE SCORE_Q9
	
JMP Volta_normal_score

SCORE_Q0:
    CALL IMPRIM_0ALG
	JMP	Volta_normal_score
	
SCORE_Q1:
    CALL IMPRIM_1ALG
	JMP	Volta_normal_score
	
SCORE_Q2:
    CALL IMPRIM_2ALG
	JMP	Volta_normal_score
	
SCORE_Q3:
    CALL IMPRIM_3ALG
	JMP	Volta_normal_score
	
SCORE_Q4:
    CALL IMPRIM_4ALG
	JMP	Volta_normal_score
	
SCORE_Q5:
    CALL IMPRIM_5ALG
	JMP	Volta_normal_score
	
SCORE_Q6:
    CALL IMPRIM_6ALG
	JMP	Volta_normal_score
	
SCORE_Q7:
    CALL IMPRIM_7ALG
	JMP	Volta_normal_score
	
SCORE_Q8:
    CALL IMPRIM_8ALG
	JMP	Volta_normal_score
	
SCORE_Q9:
    CALL IMPRIM_9ALG
	
Volta_normal_score:

RET
Menu_do_lado_score ENDP

IMPRIM_0ALG PROC ;----------------------------------------------------------------------------------PRINT 0
	
		PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		 ;MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE0:

		 MOV AX, NUM0[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score0
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score0:

		 CMP AX,1
		 JE BRANCO_SCORE0
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE0	  

		 BRANCO_SCORE0: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE0:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE0

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_0ALG ENDP

IMPRIM_1ALG PROC;----------------------------------------------------------------------------------PRINT 1
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		 ;MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE1:

		 MOV AX, NUM1[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score1
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score1:

		 CMP AX,1
		 JE BRANCO_SCORE1
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE1	  

		 BRANCO_SCORE1: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE1:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE1

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_1ALG ENDP

IMPRIM_2ALG PROC;PRINT 2
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		; MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE2:

		 MOV AX, NUM2[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score2
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score2:

		 CMP AX,1
		 JE BRANCO_SCORE2
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE2	  

		 BRANCO_SCORE2: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE2:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE2

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_2ALG ENDP

IMPRIM_3ALG PROC;----------------------------------------------------------------------------------PRINT 3
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		 ;MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE3:

		 MOV AX, NUM3[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score3
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score3:

		 CMP AX,1
		 JE BRANCO_SCORE3
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE3	  

		 BRANCO_SCORE3: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE3:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE3

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_3ALG ENDP

IMPRIM_4ALG PROC;----------------------------------------------------------------------------------PRINT 4
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		; MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE4:

		 MOV AX, NUM4[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score4
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score4:

		 CMP AX,1
		 JE BRANCO_SCORE4
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE4	  

		 BRANCO_SCORE4: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE4:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE4

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_4ALG ENDP

IMPRIM_5ALG PROC;----------------------------------------------------------------------------------PRINT 5
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		; MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE5:

		 MOV AX, NUM5[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score5
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score5:

		 CMP AX,1
		 JE BRANCO_SCORE5
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE5  

		 BRANCO_SCORE5: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE5:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE5

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_5ALG ENDP

IMPRIM_6ALG PROC;----------------------------------------------------------------------------------PRINT 6
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		; MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE6:

		 MOV AX, NUM6[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score6
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score6:

		 CMP AX,1
		 JE BRANCO_SCORE6
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE6 

		 BRANCO_SCORE6: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE6:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE6

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_6ALG ENDP

IMPRIM_7ALG PROC;----------------------------------------------------------------------------------PRINT 7
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		; MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE7:

		 MOV AX, NUM7[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score7
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score7:

		 CMP AX,1
		 JE BRANCO_SCORE7
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE7 

		 BRANCO_SCORE7: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE7:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE7

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_7ALG ENDP

IMPRIM_8ALG PROC;----------------------------------------------------------------------------------PRINT 8
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		;MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE8:

		 MOV AX, NUM8[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score8
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score8:

		 CMP AX,1
		 JE BRANCO_SCORE8
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE8	  

		 BRANCO_SCORE8: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE8:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE8

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_8ALG ENDP
IMPRIM_9ALG PROC;----------------------------------------------------------------------------------PRINT 9
	PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH AX
		 
		 MOV controlador_score,0
		 
		 MOV AX,coluna_pixel
		 ;MUL separador_quadrado
		 MOV coluna, AX
		 
		 MOV AX,linha_pixel
		; MUL separador_quadrado
		 MOV linha, AX
		 
		 POP AX
		 XOR SI,SI
		 XOR BX,BX
		 MOV cont, 70 ;quantidade de itens da matriz

		 VEZES_SCORE9:

		 MOV AX, NUM9[BX]

		 CMP controlador_score,7 ;quantidade de colunas
		 JNE nao_pula_score9
		 ;pula linha
		 MOV controlador_score,0
		 
		 PUSH AX
		 MOV AX,coluna_pixel
		; MUL separador_quadrado
		 MOV coluna, AX
		 POP AX
		 
		 INC linha
		 nao_pula_score9:

		 CMP AX,1
		 JE BRANCO_SCORE9
			   ;PRETO
			   mov cx, coluna  ; column
			   mov dx, linha  ; row
			   mov al, 0  ; WHITE
			   mov ah, 0ch ; put pixel
			   int 10h
		 JMP fim_SCORE9	  

		 BRANCO_SCORE9: ;BRANCO
					  mov cx, coluna  ; column
					  mov dx, linha ; row
					  mov al, 15  ; WHITE
					  mov ah, 0ch ; put pixel
					  int 10h
			  
		 fim_SCORE9:
		 INC coluna

		 ADD BX,2

		 INC controlador_score
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SCORE9

POP DX
POP CX
POP BX
POP AX

RET
IMPRIM_9ALG ENDP
;------------------------------------------------------------------


;-------------------------------------------------------------------------------------
PRINT_PAC_MENU PROC 
PUSH AX

		MOV controlador_menu_pac,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna_menu_pac, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha_menu_pac, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont_MENU_PAC, 990 ;quantidade de itens da matriz
	
		VEZES_MENUPAC:
	
		MOV AX, PACMAN_MENU[BX]
	
		CMP controlador_menu_pac,33 ;quantidade de colunas
		JNE nao_pula_MENUPAC
		;pula linha
		MOV controlador_menu_pac,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna_menu_pac, AX
		POP AX
		
		INC linha_menu_pac
		nao_pula_MENUPAC:
	
		CMP AX,14
		JE AMARELO_MENUPAC
		CMP AX,15
		JE BLACK_MENUPAC
		;PRETO
		
		mov cx, coluna_menu_pac  ; column
		mov dx, linha_menu_pac  ; row
		mov al, 0  ; COR ESCOLHIDA
		mov ah, 0ch ; put pixel
		int 10h
		;CALL QUADRADO_escrito
		JMP fim_PACMENU
		
		AMARELO_MENUPAC: 
					  
					  mov cx, coluna_menu_pac  ; column
					  mov dx, linha_menu_pac  ; row
					  mov al, 14  ; COR ESCOLHIDA
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim_PACMENU
					  
		BLACK_MENUPAC: 
					  
					  mov cx, coluna_menu_pac  ; column
					  mov dx, linha_menu_pac  ; row
					  mov al, 15  ; COR ESCOLHIDA
					  mov ah, 0ch ; put pixel
					  int 10h
					  JMP fim_PACMENU
		
		 fim_PACMENU:
		 INC coluna_menu_pac

		 ADD BX,2

		 INC controlador_menu_pac
		 DEC cont_MENU_PAC
		 CMP cont_MENU_PAC,0
		 JNZ VEZES_MENUPAC
	
RET

PRINT_PAC_MENU ENDP
;-----------------------------------------------------------------------------------

;-----------------------------------------------------------------------------------
APAGA_SETA_MENU PROC

PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 299 ;quantidade de itens da matriz
	
		VEZES_APAGA_SETA_MENU:
	
		MOV AX, SETA_MENU[BX]
	
		CMP controlador_lives,23 ;quantidade de colunas
		JNE nao_pula_APAGA_SETA_MENU
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_APAGA_SETA_MENU:
	
		CMP AX,15
		JE BRANCO_APAGA_SETA_MENU
		;PRETO
		MOV color, 0
		
		; mov cx, coluna  ; column
		; mov dx, linha  ; row
		; mov al, 0  ; COR ESCOLHIDA
		; mov ah, 0ch ; put pixel
		; int 10h
		MOV separador_quadrado_escrito, 2
		CALL QUADRADO_escrito_op
		JMP fim_APAGA_SETA_MENU
		
		BRANCO_APAGA_SETA_MENU: 
					  MOV color, 0
					  
					  ; mov cx, coluna  ; column
					  ; mov dx, linha  ; row
					  ; mov al, 14  ; COR ESCOLHIDA
					  ; mov ah, 0ch ; put pixel
					  ; int 10h
					  MOV separador_quadrado_escrito, 2
					  CALL QUADRADO_escrito_op
					  JMP fim_APAGA_SETA_MENU
		
		 fim_APAGA_SETA_MENU:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_APAGA_SETA_MENU
	
RET


APAGA_SETA_MENU ENDP	
;-----------------------------------------------------------------------------------	


;---------------------------------------------------------------------------
DIFICULDADE_ESCRITO PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 1080 ;quantidade de itens da matriz
	
		VEZES_DIFICULDADE_ESCRITO:
	
		MOV AX, DIFICULDADE[BX]
	
		CMP controlador_lives,90 ;quantidade de colunas
		JNE nao_pula_DIFICULDADE_ESCRITO
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_DIFICULDADE_ESCRITO:
	
		CMP AX,15
		JE BRANCO_DIFICULDADE_ESCRITO
		;PRETO
		MOV color, 0
		
		; mov cx, coluna  ; column
		; mov dx, linha  ; row
		; mov al, 0  ; COR ESCOLHIDA
		; mov ah, 0ch ; put pixel
		; int 10h
		MOV separador_quadrado_escrito, 3
		CALL QUADRADO_escrito_titulo
		JMP fim_DIFICULDADE_ESCRITO
		
		BRANCO_DIFICULDADE_ESCRITO: 
					  MOV color, 6
					  
					  ; mov cx, coluna  ; column
					  ; mov dx, linha  ; row
					  ; mov al, 14  ; COR ESCOLHIDA
					  ; mov ah, 0ch ; put pixel
					  ; int 10h
					  MOV separador_quadrado_escrito, 3
					  CALL QUADRADO_escrito_titulo
					  JMP fim_DIFICULDADE_ESCRITO
		
		 fim_DIFICULDADE_ESCRITO:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_DIFICULDADE_ESCRITO
	
RET
DIFICULDADE_ESCRITO ENDP
;-------------------------------------------------------------------------------------


;---------------------------------------------------------------------------
PRINT_MAPA1_ESCRITO PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 504 ;quantidade de itens da matriz
	
		VEZES_MAPA1_ESCRITO:
	
		MOV AX, MAPA1_ESCRITO[BX]
	
		CMP controlador_lives,42 ;quantidade de colunas
		JNE nao_pula_MAPA1_ESCRITO
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_MAPA1_ESCRITO:
	
		CMP AX,15
		JE BRANCO_MAPA1_ESCRITO
		;PRETO
		MOV color, 0
		
		; mov cx, coluna  ; column
		; mov dx, linha  ; row
		; mov al, 0  ; COR ESCOLHIDA
		; mov ah, 0ch ; put pixel
		; int 10h
		MOV separador_quadrado_escrito, 2
		CALL QUADRADO_escrito_op
		JMP fim_MAPA1_ESCRITO
		
		BRANCO_MAPA1_ESCRITO: 
					  MOV color, 14
					  
					  ; mov cx, coluna  ; column
					  ; mov dx, linha  ; row
					  ; mov al, 14  ; COR ESCOLHIDA
					  ; mov ah, 0ch ; put pixel
					  ; int 10h
					  MOV separador_quadrado_escrito, 2
					  CALL QUADRADO_escrito_op
					  JMP fim_MAPA1_ESCRITO
		
		 fim_MAPA1_ESCRITO:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_MAPA1_ESCRITO
	
RET
PRINT_MAPA1_ESCRITO ENDP
;-------------------------------------------------------------------------------------

;---------------------------------------------------------------------------
PRINT_MAPA2_ESCRITO PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 528 ;quantidade de itens da matriz
	
		VEZES_MAPA2_ESCRITO:
	
		MOV AX, MAPA2_ESCRITO[BX]
	
		CMP controlador_lives,44 ;quantidade de colunas
		JNE nao_pula_MAPA2_ESCRITO
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_MAPA2_ESCRITO:
	
		CMP AX,15
		JE BRANCO_MAPA2_ESCRITO
		;PRETO
		MOV color, 0
		
		; mov cx, coluna  ; column
		; mov dx, linha  ; row
		; mov al, 0  ; COR ESCOLHIDA
		; mov ah, 0ch ; put pixel
		; int 10h
		MOV separador_quadrado_escrito, 2
		CALL QUADRADO_escrito_op
		JMP fim_MAPA2_ESCRITO
		
		BRANCO_MAPA2_ESCRITO: 
					  MOV color, 14
					  
					  ; mov cx, coluna  ; column
					  ; mov dx, linha  ; row
					  ; mov al, 14  ; COR ESCOLHIDA
					  ; mov ah, 0ch ; put pixel
					  ; int 10h
					  MOV separador_quadrado_escrito, 2
					  CALL QUADRADO_escrito_op
					  JMP fim_MAPA2_ESCRITO
		
		 fim_MAPA2_ESCRITO:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_MAPA2_ESCRITO
	
RET
PRINT_MAPA2_ESCRITO ENDP
;-------------------------------------------------------------------------------------


;---------------------------------------------------------------------------
PRINT_MAPA3_ESCRITO PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 528 ;quantidade de itens da matriz
	
		VEZES_MAPA3_ESCRITO:
	
		MOV AX, MAPA3_ESCRITO[BX]
	
		CMP controlador_lives,44 ;quantidade de colunas
		JNE nao_pula_MAPA3_ESCRITO
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_MAPA3_ESCRITO:
	
		CMP AX,15
		JE BRANCO_MAPA3_ESCRITO
		;PRETO
		MOV color, 0
		
		; mov cx, coluna  ; column
		; mov dx, linha  ; row
		; mov al, 0  ; COR ESCOLHIDA
		; mov ah, 0ch ; put pixel
		; int 10h
		MOV separador_quadrado_escrito, 2
		CALL QUADRADO_escrito_op
		JMP fim_MAPA3_ESCRITO
		
		BRANCO_MAPA3_ESCRITO: 
					  MOV color, 14
					  
					  ; mov cx, coluna  ; column
					  ; mov dx, linha  ; row
					  ; mov al, 14  ; COR ESCOLHIDA
					  ; mov ah, 0ch ; put pixel
					  ; int 10h
					  MOV separador_quadrado_escrito, 2
					  CALL QUADRADO_escrito_op
					  JMP fim_MAPA3_ESCRITO
		
		 fim_MAPA3_ESCRITO:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_MAPA3_ESCRITO
	
RET
PRINT_MAPA3_ESCRITO ENDP
;-------------------------------------------------------------------------------------

;---------------------------------------------------------------------------
PRINT_SETA_MENU PROC
	
	PUSH AX

		MOV controlador_lives,0
		
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		
		MOV AX,linha_pixel
		;MUL separador_lives_linha
		MOV linha, AX
		
		POP AX
		XOR SI,SI
		XOR BX,BX
		MOV cont, 299 ;quantidade de itens da matriz
	
		VEZES_SETA_MENU:
	
		MOV AX, SETA_MENU[BX]
	
		CMP controlador_lives,23 ;quantidade de colunas
		JNE nao_pula_SETA_MENU
		;pula linha
		MOV controlador_lives,0
		
		PUSH AX
		MOV AX,coluna_pixel
		;MUL separador_lives_coluna
		MOV coluna, AX
		POP AX
		
		INC linha
		nao_pula_SETA_MENU:
	
		CMP AX,15
		JE BRANCO_SETA_MENU
		;PRETO
		MOV color, 0
		
		; mov cx, coluna  ; column
		; mov dx, linha  ; row
		; mov al, 0  ; COR ESCOLHIDA
		; mov ah, 0ch ; put pixel
		; int 10h
		MOV separador_quadrado_escrito, 2
		CALL QUADRADO_escrito_op
		JMP fim_SETA_MENU
		
		BRANCO_SETA_MENU: 
					  MOV color, 14
					  
					  ; mov cx, coluna  ; column
					  ; mov dx, linha  ; row
					  ; mov al, 14  ; COR ESCOLHIDA
					  ; mov ah, 0ch ; put pixel
					  ; int 10h
					  MOV separador_quadrado_escrito, 2
					  CALL QUADRADO_escrito_op
					  JMP fim_SETA_MENU
		
		 fim_SETA_MENU:
		 INC coluna

		 ADD BX,2

		 INC controlador_lives
		 DEC cont
		 CMP cont,0
		 JNZ VEZES_SETA_MENU
	
RET
PRINT_SETA_MENU ENDP
;-------------------------------------------------------------------------------------


;---------------------------------------------------------------------------
APAGA_PACMAN_MENU PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 204 ;quantidade de itens da matriz

        VEZES_APAGA_ESCRITO:

        MOV AX, PACMAN_ESCRITO[BX]

        CMP controlador_lives,17 ;quantidade de colunas
        JNE nao_pula_APAGA_ESCRITO
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_APAGA_ESCRITO:

        CMP AX,14
        JE BRANCO_APAGA_ESCRITO
        ;PRETO
		CMP AX,15
		JE BLACK_APAGA_ESCRITO
        MOV color, 0

        
        CALL QUADRADO_escrito_op
        JMP fim_APAGA_ESCRITO

        BRANCO_APAGA_ESCRITO: 
                      MOV color, 00
                      CALL QUADRADO_escrito_op
                      JMP fim_APAGA_ESCRITO
		BLACK_APAGA_ESCRITO:
					MOV color, 00
					CALL QUADRADO_escrito_op
					JMP fim_APAGA_ESCRITO

         fim_APAGA_ESCRITO:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_APAGA_ESCRITO

RET
APAGA_PACMAN_MENU ENDP
;-------------------------------------------------------------------------------------

;---------------------------------------------------------------------------
PACMAN_ESCRITO1 PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 204 ;quantidade de itens da matriz

        VEZES_PACMAN_ESCRITO:

        MOV AX, PACMAN_ESCRITO[BX]

        CMP controlador_lives,17 ;quantidade de colunas
        JNE nao_pula_PACMAN_ESCRITO
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_PACMAN_ESCRITO:

        CMP AX,14
        JE BRANCO_PACMAN_ESCRITO
        ;PRETO
		CMP AX,15
		JE BLACK_PACMAN_ESCRITO
        MOV color, 0

        
        CALL QUADRADO_escrito_op
        JMP fim_PACMAN_ESCRITO

        BRANCO_PACMAN_ESCRITO: 
                      MOV color, 14
                      CALL QUADRADO_escrito_op
                      JMP fim_PACMAN_ESCRITO
		BLACK_PACMAN_ESCRITO:
					MOV color, 15
					CALL QUADRADO_escrito_op
					JMP fim_PACMAN_ESCRITO

         fim_PACMAN_ESCRITO:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_PACMAN_ESCRITO

RET
PACMAN_ESCRITO1 ENDP
;-------------------------------------------------------------------------------------




;---------------------------------------------------------------------------
EXIT_ESCRITO1 PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 420 ;quantidade de itens da matriz

        VEZES_SAIR_ESCRITO:

        MOV AX, SAIR_ESCRITO[BX]

        CMP controlador_lives,35 ;quantidade de colunas
        JNE nao_pula_SAIR_ESCRITO
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_SAIR_ESCRITO:

        CMP AX,14
        JE BRANCO_SAIR_ESCRITO
        ;PRETO
        MOV color, 0

        ; mov cx, coluna  ; column
        ; mov dx, linha  ; row
        ; mov al, 0  ; COR ESCOLHIDA
        ; mov ah, 0ch ; put pixel
        ; int 10h
        CALL QUADRADO_escrito_op
        JMP fim_SAIR_ESCRITO

        BRANCO_SAIR_ESCRITO: 
                      MOV color, 14

                      ; mov cx, coluna  ; column
                      ; mov dx, linha  ; row
                      ; mov al, 14  ; COR ESCOLHIDA
                      ; mov ah, 0ch ; put pixel
                      ; int 10h
                      CALL QUADRADO_escrito_op
                      JMP fim_SAIR_ESCRITO

         fim_SAIR_ESCRITO:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_SAIR_ESCRITO

RET
EXIT_ESCRITO1 ENDP
;-------------------------------------------------------------------------------------



;---------------------------------------------------------------------------
CREDITS_ESCRITO1 PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 792 ;quantidade de itens da matriz

        VEZES_CREDITOS_ESCRITO:

        MOV AX, CREDITOS_ESCRITO[BX]

        CMP controlador_lives,66 ;quantidade de colunas
        JNE nao_pula_CREDITOS_ESCRITO
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_CREDITOS_ESCRITO:

        CMP AX,15
        JE BRANCO_CREDITOS_ESCRITO
        ;PRETO
        MOV color, 0

        ; mov cx, coluna  ; column
        ; mov dx, linha  ; row
        ; mov al, 0  ; COR ESCOLHIDA
        ; mov ah, 0ch ; put pixel
        ; int 10h
        CALL QUADRADO_escrito_op
        JMP fim_CREDITOS_ESCRITO

        BRANCO_CREDITOS_ESCRITO: 
                      MOV color, 14

                      ; mov cx, coluna  ; column
                      ; mov dx, linha  ; row
                      ; mov al, 14  ; COR ESCOLHIDA
                      ; mov ah, 0ch ; put pixel
                      ; int 10h
                      CALL QUADRADO_escrito_op
                      JMP fim_CREDITOS_ESCRITO

         fim_CREDITOS_ESCRITO:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_CREDITOS_ESCRITO

RET
CREDITS_ESCRITO1 ENDP
;-------------------------------------------------------------------------------------



;---------------------------------------------------------------------------
levels_ESCRITO PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 828 ;quantidade de itens da matriz

        VEZES_LEVELS_ESCRITO:

        MOV AX, LEVELS_ESCRITA[BX]

        CMP controlador_lives,69 ;quantidade de colunas
        JNE nao_pula_LEVELS_ESCRITO
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_LEVELS_ESCRITO:

        CMP AX,14
        JE BRANCO_LEVELS_ESCRITO
        ;PRETO
        MOV color, 0

        ; mov cx, coluna  ; column
        ; mov dx, linha  ; row
        ; mov al, 0  ; COR ESCOLHIDA
        ; mov ah, 0ch ; put pixel
        ; int 10h
        CALL QUADRADO_escrito_op
        JMP fim_LEVELS_ESCRITO

        BRANCO_LEVELS_ESCRITO: 
                      MOV color, 14

                      ; mov cx, coluna  ; column
                      ; mov dx, linha  ; row
                      ; mov al, 14  ; COR ESCOLHIDA
                      ; mov ah, 0ch ; put pixel
                      ; int 10h
                      CALL QUADRADO_escrito_op
                      JMP fim_LEVELS_ESCRITO

         fim_LEVELS_ESCRITO:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_LEVELS_ESCRITO

RET
levels_ESCRITO ENDP
;-------------------------------------------------------------------------------------


;---------------------------------------------------------------------------
menu_ESCRITO1 PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 492 ;quantidade de itens da matriz

        VEZES_MENU_PRINCIPAL_ESCRITO:

        MOV AX, MENU_ESCRITO[BX]

        CMP controlador_lives,41 ;quantidade de colunas
        JNE nao_pula_MENU_PRINCIPAL_ESCRITO
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_MENU_PRINCIPAL_ESCRITO:

        CMP AX,6
        JE BRANCO_MENU_PRINCIPAL_ESCRITO
        ;PRETO
        MOV color, 0

        ; mov cx, coluna  ; column
        ; mov dx, linha  ; row
        ; mov al, 0  ; COR ESCOLHIDA
        ; mov ah, 0ch ; put pixel
        ; int 10h
        CALL QUADRADO_escrito_titulo
        JMP fim_MENU_PRINCIPAL_ESCRITO

        BRANCO_MENU_PRINCIPAL_ESCRITO: 
                      MOV color, 6

                      ; mov cx, coluna  ; column
                      ; mov dx, linha  ; row
                      ; mov al, 14  ; COR ESCOLHIDA
                      ; mov ah, 0ch ; put pixel
                      ; int 10h
                      CALL QUADRADO_escrito_titulo
                      JMP fim_MENU_PRINCIPAL_ESCRITO

         fim_MENU_PRINCIPAL_ESCRITO:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_MENU_PRINCIPAL_ESCRITO

RET
menu_ESCRITO1 ENDP
;-------------------------------------------------------------------------------------


;-----------------------------------------------------------------------------------------
MENU_DIFICULDADE PROC
;--------------------------------
MOV Mapa_escolhido, 1
;--------------------------------

	MOV coluna_pixel, 340
	MOV linha_pixel, 10
	CALL DIFICULDADE_ESCRITO
	
	MOV coluna_pixel, 55
	MOV linha_pixel, 70
	CALL PRINT_MAPA1_ESCRITO
	
	MOV coluna_pixel, 55
	MOV linha_pixel, 110
	CALL PRINT_MAPA2_ESCRITO
	
	MOV coluna_pixel, 55
	MOV linha_pixel, 150
	CALL PRINT_MAPA3_ESCRITO
	
	MOV coluna_pixel, 20
	MOV linha_pixel, 70
	CALL PRINT_SETA_MENU
	
	;--------------------------
	CALL PRINT_SETA_MENU
	
    loop_enter_DIFICULDADE:


    MOV AH, 0 ;RECEBER SETA
    INT 16H

	CMP AL, 13
    JE fim_loop_menu_DIFICULDADE
	
    CMP AH,50H ; Seta para baixo
    JE SETA_BAIXO_MENU_DIFICULDADE

    CMP AH,48H ; Seta para cima
    JE SETA_CIMA_MENU_DIFICULDADE
	
    JMP loop_enter_DIFICULDADE

	
    SETA_BAIXO_MENU_DIFICULDADE:
								CMP mapa_escolhido,3
								JE loop_enter_DIFICULDADE
								
								;SE FOR MENOR DO QUE 3
								INC mapa_escolhido
								CALL APAGA_SETA_MENU
								ADD linha_pixel,40

								CALL PRINT_SETA_MENU
								JMP loop_enter_DIFICULDADE
	
	SETA_CIMA_MENU_DIFICULDADE:
								CMP mapa_escolhido,1
								JE loop_enter_DIFICULDADE
								
								;SE FOR MAIOR DO QUE 1
								DEC mapa_escolhido

								CALL APAGA_SETA_MENU
								SUB LINHA_PIXEL,40

								CALL PRINT_SETA_MENU
								JMP loop_enter_DIFICULDADE

	fim_loop_menu_DIFICULDADE:
								
								;MOV AH,4CH
								;INT 21H						
;--------------------------------------------------------------------
MOV AX, 4f02H
MOV BX,103H
INT 10H

RET
MENU_DIFICULDADE ENDP
;-----------------------------------------------------------------------------------------

;-------------------------------------------------------------------
; ZERA_MATRIZ PROC
	
	; XOR BX,BX
	; XOR AX,AX
	; MOV cont, 418
	
	; LOOP_ZERA_MATRIZ:
	; MOV Lvl_mapa_Escolhido[BX], 0
	; MOV Lvl_pastilha_Escolhido[BX], 0
	
	; ADD BX,2
	
	; DEC cont
	; CMP cont,0
	; JNE LOOP_ZERA_MATRIZ
	
; RET
; ZERA_MATRIZ ENDP
;-------------------------------------------------------------------

;------------------------------------------------------------------------------	
CREDITOS_Jeff PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 1008 ;quantidade de itens da matriz

        VEZES_CREDITOS_JEFF:

        MOV AX, CREDITOS_MENESES[BX]

        CMP controlador_lives,84 ;quantidade de colunas
        JNE nao_pula_CREDITOS_JEFF
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_CREDITOS_JEFF:

        CMP AX,14
        JE BRANCO_CREDITOS_JEFF
        ;PRETO
        MOV color, 0

        
        CALL QUADRADO_escrito_op
        JMP fim_CREDITOS_JEFF

        BRANCO_CREDITOS_JEFF: 
                      MOV color, 14

                     
                      CALL QUADRADO_escrito_op
                      JMP fim_CREDITOS_JEFF

         fim_CREDITOS_JEFF:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_CREDITOS_JEFF

RET
CREDITOS_Jeff ENDP		
;------------------------------------------------------------------------------	
	
;------------------------------------------------------------------------------
CREDITOS_Giuly PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 936 ;quantidade de itens da matriz

        VEZES_CREDITOS_SANFINS:

        MOV AX, CREDITOS_SANFINS[BX]

        CMP controlador_lives,78 ;quantidade de colunas
        JNE nao_pula_CREDITOS_SANFINS
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_CREDITOS_SANFINS:

        CMP AX,14
        JE BRANCO_CREDITOS_SANFINS
        ;PRETO
        MOV color, 0

        
        CALL QUADRADO_escrito_op
        JMP fim_CREDITOS_SANFINS

        BRANCO_CREDITOS_SANFINS: 
                      MOV color, 14

                     
                      CALL QUADRADO_escrito_op
                      JMP fim_CREDITOS_SANFINS

         fim_CREDITOS_SANFINS:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_CREDITOS_SANFINS

RET
CREDITOS_Giuly ENDP		
;------------------------------------------------------------------------------	
	
;------------------------------------------------------------------------------
CREDITOS_TODOS PROC

    PUSH AX

        MOV controlador_lives,0

        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX

        MOV AX,linha_pixel
        ;MUL separador_lives_linha
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 792 ;quantidade de itens da matriz

        VEZES_CREDITOS_TODOS:

        MOV AX, CREDITOS_ESCRITO[BX]

        CMP controlador_lives,66 ;quantidade de colunas
        JNE nao_pula_CREDITOS_TODOS
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        ;MUL separador_lives_coluna
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_CREDITOS_TODOS:

        CMP AX,15
        JE BRANCO_CREDITOS_TODOS
        ;PRETO
        MOV color, 0

        
        CALL QUADRADO_escrito_titulo
        JMP fim_CREDITOS_TODOS

        BRANCO_CREDITOS_TODOS: 
                      MOV color, 6

                     
                      CALL QUADRADO_escrito_titulo
                      JMP fim_CREDITOS_TODOS

         fim_CREDITOS_TODOS:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_CREDITOS_TODOS

RET
CREDITOS_TODOS ENDP
;------------------------------------------------------------------------------


;-----------------------------------------------------
PRINT_CREDITOS PROC
	
	mov coluna_pixel,675
	mov linha_pixel,10
	CALL CREDITOS_TODOS
	
	mov coluna_pixel,300
	mov linha_pixel,45
	CALL CREDITOS_Giuly
	
	mov coluna_pixel,300
	mov linha_pixel,90
	CALL CREDITOS_Jeff
	
	mov ah, 0
	int 16h
	
RET
PRINT_CREDITOS ENDP
;-----------------------------------------------------

;---------------------------------------------------------------------------------------------------
PRINT_FRUTA PROC

PUSH AX

        MOV controlador_lives,0

		MOV coluna_pixel, 10
		MOV linha_pixel, 13
		
		
        MOV AX,coluna_pixel
        MUL separador_quadrado
        MOV coluna, AX

        MOV AX,linha_pixel
        MUL separador_quadrado
        MOV linha, AX

        POP AX
        XOR SI,SI
        XOR BX,BX
        MOV cont, 400 ;quantidade de itens da matriz

        VEZES_FRUTA:

        MOV AX, FRUIT[BX]

        CMP controlador_lives,20 ;quantidade de colunas
        JNE nao_pula_FRUTA
        ;pula linha
        MOV controlador_lives,0

        PUSH AX
        MOV AX,coluna_pixel
        MUL separador_quadrado
        MOV coluna, AX
        POP AX

        INC linha
        nao_pula_FRUTA:

        CMP AX,6
        JE MARROM_FRUTA
		
		CMP AX,4
        JE VERMELHO_FRUTA
		
		CMP AX,15
        JE BRANCO_FRUTA
        
        JMP fim_FRUTA

        MARROM_FRUTA: mov cx, coluna  ; column
                      mov dx, linha  ; row
                      mov al, 6  ; COR ESCOLHIDA
                      mov ah, 0ch ; put pixel
                      int 10h
                      JMP fim_FRUTA
					  
		VERMELHO_FRUTA:	mov cx, coluna  ; column
						mov dx, linha  ; row
						mov al, 4  ; COR ESCOLHIDA
						mov ah, 0ch ; put pixel
						int 10h
						JMP fim_FRUTA

		BRANCO_FRUTA: mov cx, coluna  ; column
                      mov dx, linha  ; row
                      mov al, 15  ; COR ESCOLHIDA
                      mov ah, 0ch ; put pixel
                      int 10h
                      JMP fim_FRUTA

         fim_FRUTA:
         INC coluna

         ADD BX,2

         INC controlador_lives
         DEC cont
         CMP cont,0
         JNZ VEZES_FRUTA

RET
PRINT_FRUTA ENDP
;---------------------------------------------------------------------------------------------------

END