2018-01-18 03:37:04 +00:00
|
|
|
; 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
|
2018-01-18 03:37:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-12-25 17:41:31 +00:00
|
|
|
BlkPacket_9a86:
|
2018-01-18 03:37:04 +00:00
|
|
|
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:
|
2018-01-18 03:37:04 +00:00
|
|
|
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:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 5
|
2018-01-18 05:41:34 +00:00
|
|
|
attr_blk_data %111, 2,2,0, 00,12, 19,17 ; text box: pal 2
|
|
|
|
attr_blk_data %011, 1,1,0, 01,00, 10,03 ; enemy HP bar: pal 1
|
|
|
|
attr_blk_data %011, 0,0,0, 10,08, 19,10 ; player HP+exp bar: pal 0
|
|
|
|
attr_blk_data %011, 2,2,0, 00,04, 08,11 ; player mon: pal 2
|
|
|
|
attr_blk_data %011, 3,3,0, 11,00, 19,07 ; enemy mon : pal 3
|
2017-12-25 17:41:31 +00:00
|
|
|
|
2018-01-18 05:16:03 +00:00
|
|
|
BlkPacket_StatsScreen:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 1
|
2018-01-18 05:41:34 +00:00
|
|
|
attr_blk_data %111, 1,1,0, 00,01, 07,07 ; mon: pal 1
|
2018-01-18 03:37:04 +00:00
|
|
|
ds 8
|
2017-12-25 17:41:31 +00:00
|
|
|
|
2018-01-18 05:16:03 +00:00
|
|
|
BlkPacket_MoveList:
|
2018-01-18 03:37:04 +00:00
|
|
|
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:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 1
|
2018-01-18 05:41:34 +00:00
|
|
|
attr_blk_data %111, 1,1,0, 01,01, 08,08 ; mon: pal 1
|
2018-01-18 03:37:04 +00:00
|
|
|
ds 8
|
2017-12-25 17:41:31 +00:00
|
|
|
|
2018-01-18 05:16:03 +00:00
|
|
|
BlkPacket_PokedexUnownMode:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 1
|
2018-01-18 05:41:34 +00:00
|
|
|
attr_blk_data %111, 1,1,0, 07,05, 13,11 ; unown: pal 1
|
2018-01-18 03:37:04 +00:00
|
|
|
ds 8
|
2017-12-25 17:41:31 +00:00
|
|
|
|
2018-01-18 05:16:03 +00:00
|
|
|
BlkPacket_SlotMachine:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 5
|
2018-01-18 05:41:34 +00:00
|
|
|
attr_blk_data %011, 1,1,0, 00,00, 19,11 ; "3" rows and top of screen: pal 1
|
|
|
|
attr_blk_data %011, 2,2,0, 00,04, 19,09 ; "2" rows: pal 2
|
|
|
|
attr_blk_data %010, 3,3,0, 00,06, 19,07 ; "1" row: pal 3
|
|
|
|
attr_blk_data %011, 0,0,0, 04,04, 15,09 ; slot reels: pal 0
|
|
|
|
attr_blk_data %011, 0,0,0, 00,12, 19,17 ; text box: pal 0
|
2017-12-25 17:41:31 +00:00
|
|
|
|
2018-01-18 05:16:03 +00:00
|
|
|
UnreferencedBlkPacket_9b26:
|
2018-01-18 03:37:04 +00:00
|
|
|
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:
|
2018-01-18 03:37:04 +00:00
|
|
|
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-09-16 17:40:47 +00:00
|
|
|
BlkPacket_BetaTitleScreen:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 1
|
2018-09-16 17:40:47 +00:00
|
|
|
attr_blk_data %111, 0,0,1, 00,00, 19,05 ; logo
|
2018-01-18 03:37:04 +00:00
|
|
|
ds 8
|
2017-12-25 17:41:31 +00:00
|
|
|
|
2018-09-16 17:40:47 +00:00
|
|
|
BlkPacket_MagnetTrain:
|
2018-01-18 03:37:04 +00:00
|
|
|
attr_blk 2
|
2018-09-16 17:40:47 +00:00
|
|
|
attr_blk_data %111, 2,2,0, 00,04, 19,13 ; fence
|
|
|
|
attr_blk_data %011, 1,1,0, 00,06, 19,11 ; train
|
2018-01-18 03:37:04 +00:00
|
|
|
ds 2
|