shithub: pokecrystal

ref: 4161ec98b4ab19863ae35502c9959892effbf6ea
dir: /gfx/sgb/blk_packets.asm/

View raw version
; macros taken from pokered's data/sgb_packets.asm

attr_blk: MACRO
	db (SGB_ATTR_BLK << 3) + ((\1 * 6) / 16 + 1)
	db \1
ENDM

attr_blk_data: MACRO
	db \1 ; which regions are affected
	db \2 + (\3 << 2) + (\4 << 4) ; palette for each region
	db \5, \6, \7, \8 ; x1, y1, x2, y2
ENDM

BlkPacket_9a86:
	attr_blk 1
	attr_blk_data %011, 0,0,0, 00,00, 19,17
	ds 8

BlkPacket_9a96:
	attr_blk 1
	attr_blk_data %111, 1,1,0, 00,10, 19,13
	ds 8

BlkPacket_9aa6:
	attr_blk 5
	attr_blk_data %111, 2,2,0, 00,12, 19,17
	attr_blk_data %011, 1,1,0, 01,00, 10,03
	attr_blk_data %011, 0,0,0, 10,08, 19,10
	attr_blk_data %011, 2,2,0, 00,04, 08,11
	attr_blk_data %011, 3,3,0, 11,00, 19,07

BlkPacket_9ac6:
	attr_blk 1
	attr_blk_data %111, 1,1,0, 00,01, 07,07
	ds 8

BlkPacket_9ad6:
	attr_blk 1
	attr_blk_data %111, 1,1,0, 11,01, 19,02
	ds 8

BlkPacket_9ae6:
	attr_blk 1
	attr_blk_data %111, 1,1,0, 01,01, 08,08
	ds 8

BlkPacket_9af6:
	attr_blk 1
	attr_blk_data %111, 1,1,0, 07,05, 13,11
	ds 8

BlkPacket_9b06:
	attr_blk 5
	attr_blk_data %011, 1,1,0, 00,00, 19,11
	attr_blk_data %011, 2,2,0, 00,04, 19,09
	attr_blk_data %010, 3,3,0, 00,06, 19,07
	attr_blk_data %011, 0,0,0, 04,04, 15,09
	attr_blk_data %011, 0,0,0, 00,12, 19,17

BlkPacket_9b26:
	attr_blk 7
	attr_blk_data %111, 0,0,1, 00,00, 02,12
	attr_blk_data %010, 0,0,0, 12,00, 18,01
	attr_blk_data %010, 0,0,0, 12,02, 18,03
	attr_blk_data %010, 0,0,0, 12,04, 18,05
	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

BlkPacket_9b56:
	attr_blk 3
	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

BlkPacket_9b76:
	attr_blk 1
	attr_blk_data %111, 0,0,1, 00,00, 19,05
	ds 8

BlkPacket_9b86:
	attr_blk 2
	attr_blk_data %111, 2,2,0, 00,04, 19,13
	attr_blk_data %011, 1,1,0, 00,06, 19,11
	ds 2