shithub: pokecrystal

Download patch

ref: 427f491e2e35b559902cce7e26cde45b8db5b744
parent: cf37abd3ecb69a9bb6f4bbf1e5ae4d77d37a4c68
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Sep 1 08:24:14 EDT 2020

Pan Docs: "When sending three or more data sets, data is continued in further packet(s). Unused bytes at the end of the last packet should be set to zero."

--- a/gfx/sgb/blk_packets.asm
+++ b/gfx/sgb/blk_packets.asm
@@ -16,12 +16,12 @@
 BlkPacket_9a86:
 	attr_blk 1
 	attr_blk_data %011, 0,0,0, 00,00, 19,17
-	ds 8
+	ds 8, 0
 
 BlkPacket_GSIntroJigglypuffPikachu:
 	attr_blk 1
 	attr_blk_data %111, 1,1,0, 00,10, 19,13
-	ds 8
+	ds 8, 0
 
 BlkPacket_Battle:
 	attr_blk 5
@@ -34,22 +34,22 @@
 BlkPacket_StatsScreen:
 	attr_blk 1
 	attr_blk_data %111, 1,1,0, 00,01, 07,07 ; mon: pal 1
-	ds 8
+	ds 8, 0
 
 BlkPacket_MoveList:
 	attr_blk 1
 	attr_blk_data %111, 1,1,0, 11,01, 19,02
-	ds 8
+	ds 8, 0
 
 BlkPacket_Pokedex_PC:
 	attr_blk 1
 	attr_blk_data %111, 1,1,0, 01,01, 08,08 ; mon: pal 1
-	ds 8
+	ds 8, 0
 
 BlkPacket_PokedexUnownMode:
 	attr_blk 1
 	attr_blk_data %111, 1,1,0, 07,05, 13,11 ; unown: pal 1
-	ds 8
+	ds 8, 0
 
 BlkPacket_SlotMachine:
 	attr_blk 5
@@ -68,7 +68,7 @@
 	attr_blk_data %010, 0,0,0, 12,06, 18,07
 	attr_blk_data %010, 0,0,0, 12,08, 18,09
 	attr_blk_data %010, 0,0,0, 12,10, 18,11
-	ds 4
+	ds 4, 0
 
 BlkPacket_GSTitleScreen:
 	attr_blk 3
@@ -75,15 +75,15 @@
 	attr_blk_data %111, 0,0,2, 00,00, 19,04
 	attr_blk_data %011, 3,3,0, 00,06, 19,17
 	attr_blk_data %011, 1,1,0, 15,01, 18,04
-	ds 12
+	ds 12, 0
 
 BlkPacket_BetaTitleScreen:
 	attr_blk 1
 	attr_blk_data %111, 0,0,1, 00,00, 19,05 ; logo
-	ds 8
+	ds 8, 0
 
 BlkPacket_MagnetTrain:
 	attr_blk 2
 	attr_blk_data %111, 2,2,0, 00,04, 19,13 ; fence
 	attr_blk_data %011, 1,1,0, 00,06, 19,11 ; train
-	ds 2
+	ds 2, 0
--- a/gfx/sgb/pal_packets.asm
+++ b/gfx/sgb/pal_packets.asm
@@ -5,7 +5,7 @@
 sgb_pal_set: MACRO
 	db (SGB_PAL_SET << 3) + 1
 	dw PREDEFPAL_\1, PREDEFPAL_\2, PREDEFPAL_\3, PREDEFPAL_\4
-	ds 7
+	ds 7, 0
 ENDM
 
 sgb_pal01: MACRO
@@ -85,7 +85,7 @@
 rept 6
 	RGB 00, 00, 00
 endr
-	ds 1
+	db 0
 
 PalPacket_9cf6:
 	sgb_pal23
@@ -93,4 +93,4 @@
 rept 6
 	RGB 00, 00, 00
 endr
-	ds 1
+	db 0