pokecrystal/gfx/sgb/blk_packets.asm

91 lines
2.0 KiB
NASM
Raw Normal View History

; macros taken from pokered's data/sgb_packets.asm
2018-01-18 03:48:57 +00:00
; names taken from pandocs
; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_Palette_Commands
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
2018-01-18 03:48:57 +00:00
2017-12-25 17:41:31 +00:00
BlkPacket_9a86:
attr_blk 1
attr_blk_data %011, 0,0,0, 00,00, 19,17
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_GSIntroJigglypuffPikachu:
attr_blk 1
attr_blk_data %111, 1,1,0, 00,10, 19,13
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_Battle:
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
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_StatsScreen:
attr_blk 1
attr_blk_data %111, 1,1,0, 00,01, 07,07
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_MoveList:
attr_blk 1
attr_blk_data %111, 1,1,0, 11,01, 19,02
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_Pokedex_PC:
attr_blk 1
attr_blk_data %111, 1,1,0, 01,01, 08,08
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_PokedexUnownMode:
attr_blk 1
attr_blk_data %111, 1,1,0, 07,05, 13,11
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_SlotMachine:
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
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
UnreferencedBlkPacket_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
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_GSTitleScreen:
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
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_SCGB_06:
attr_blk 1
attr_blk_data %111, 0,0,1, 00,00, 19,05
ds 8
2017-12-25 17:41:31 +00:00
2018-01-18 05:16:03 +00:00
BlkPacket_SCGB_13:
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