2018-01-18 03:37:04 +00:00
|
|
|
; macros taken from pokered's data/sgb_packets.asm
|
|
|
|
; names taken from pandocs
|
|
|
|
; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_Palette_Commands
|
|
|
|
|
|
|
|
sgb_pal_set: MACRO
|
|
|
|
db (SGB_PAL_SET << 3) + 1
|
|
|
|
dw PREDEFPAL_\1, PREDEFPAL_\2, PREDEFPAL_\3, PREDEFPAL_\4
|
|
|
|
ds 7
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sgb_pal01: MACRO
|
|
|
|
db (SGB_PAL01 << 3) + 1
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sgb_pal23: MACRO
|
|
|
|
db (SGB_PAL23 << 3) + 1
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sgb_pal_trn: MACRO
|
|
|
|
db (SGB_PAL_TRN << 3) + 1
|
|
|
|
ds 15
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sgb_mlt_req: MACRO
|
|
|
|
db (SGB_MLT_REG << 3) + 1
|
|
|
|
db \1 - 1
|
|
|
|
ds 14
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sgb_chr_trn: MACRO
|
|
|
|
db (SGB_CHR_TRN << 3) + 1
|
|
|
|
db \1 + (\2 << 1)
|
|
|
|
ds 14
|
|
|
|
ENDM
|
|
|
|
|
|
|
|
sgb_pct_trn: MACRO
|
|
|
|
db (SGB_PCT_TRN << 3) + 1
|
|
|
|
ds 15
|
|
|
|
ENDM
|
|
|
|
|
2018-01-18 03:48:57 +00:00
|
|
|
sgb_mask_en: MACRO
|
|
|
|
db (SGB_MASK_EN << 3) + 1
|
|
|
|
db \1
|
|
|
|
ds 14
|
|
|
|
ENDM
|
|
|
|
|
2018-01-18 03:37:04 +00:00
|
|
|
|
2018-01-18 05:16:03 +00:00
|
|
|
PalPacket_GSTitleScreen:
|
|
|
|
sgb_pal_set GS_TITLE_SCREEN_0, GS_TITLE_SCREEN_1, GS_TITLE_SCREEN_2, GS_TITLE_SCREEN_3
|
|
|
|
|
|
|
|
PalPacket_SCGB_13:
|
|
|
|
sgb_pal_set 2B, BADGE, 20, 00
|
|
|
|
|
|
|
|
PalPacket_SCGB_11:
|
|
|
|
sgb_pal_set 41, 42, 43, 44
|
|
|
|
|
|
|
|
PalPacket_UnownPuzzle:
|
|
|
|
sgb_pal_set UNOWN_PUZZLE, UNOWN_PUZZLE, UNOWN_PUZZLE, UNOWN_PUZZLE
|
|
|
|
|
|
|
|
PalPacket_9bd6:
|
|
|
|
sgb_pal_set 00, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_GSIntroShellderLapras:
|
|
|
|
sgb_pal_set GS_INTRO_SHELLDER_LAPRAS, 00, 00, 00
|
|
|
|
|
|
|
|
UnreferencedPalPacket_9bf6:
|
|
|
|
sgb_pal_set 37, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_GSIntroJigglypuffPikachu:
|
|
|
|
sgb_pal_set GS_INTRO_JIGGLYPUFF_PIKACHU_BG, GS_INTRO_JIGGLYPUFF_PIKACHU_OB, 00, 00
|
|
|
|
|
|
|
|
PalPacket_GSIntroCharizard:
|
|
|
|
sgb_pal_set GS_INTRO_CHARIZARD_OB, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_Function8b4d:
|
|
|
|
sgb_pal_set 3B, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_Pack:
|
|
|
|
sgb_pal_set GS_INTRO_CHARIZARD_BG, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_SCGB_0F:
|
|
|
|
sgb_pal_set GS_INTRO_JIGGLYPUFF_PIKACHU_OB, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_PartyMenu:
|
|
|
|
sgb_pal_set PARTY_ICON, HP_GREEN, HP_YELLOW, HP_RED
|
|
|
|
|
|
|
|
PalPacket_BattleGrayscale:
|
|
|
|
sgb_pal_set BLACKOUT, BLACKOUT, BLACKOUT, BLACKOUT
|
|
|
|
|
|
|
|
PalPacket_Pokegear:
|
|
|
|
sgb_pal_set POKEGEAR, 00, 00, 00
|
|
|
|
|
|
|
|
UnreferencedPalPacket_9c86:
|
|
|
|
sgb_pal_set GS_INTRO_CHARIZARD_BG, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_SlotMachine:
|
|
|
|
sgb_pal_set SLOT_MACHINE_0, SLOT_MACHINE_1, SLOT_MACHINE_2, SLOT_MACHINE_3
|
|
|
|
|
|
|
|
PalPacket_SCGB_06:
|
|
|
|
sgb_pal_set 33, 34, DIPLOMA, 1F
|
|
|
|
|
|
|
|
PalPacket_Diploma:
|
|
|
|
sgb_pal_set DIPLOMA, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_TradeTube:
|
|
|
|
sgb_pal_set TRADE_TUBE, 00, 00, 00
|
|
|
|
|
|
|
|
PalPacket_GamefreakLogo:
|
|
|
|
sgb_pal_set GS_INTRO_GAMEFREAK_LOGO, 00, 00, 00
|
2017-12-25 17:41:31 +00:00
|
|
|
|
|
|
|
PalPacket_9ce6:
|
2018-01-18 03:37:04 +00:00
|
|
|
sgb_pal01
|
|
|
|
RGB 31, 31, 31
|
|
|
|
rept 6
|
|
|
|
RGB 00, 00, 00
|
|
|
|
endr
|
|
|
|
ds 1
|
2017-12-25 17:41:31 +00:00
|
|
|
|
|
|
|
PalPacket_9cf6:
|
2018-01-18 03:37:04 +00:00
|
|
|
sgb_pal23
|
|
|
|
RGB 31, 31, 31
|
|
|
|
rept 6
|
|
|
|
RGB 00, 00, 00
|
|
|
|
endr
|
|
|
|
ds 1
|
|
|
|
|
|
|
|
PalTrnPacket: sgb_pal_trn
|
|
|
|
MltReq1Packet: sgb_mlt_req 1
|
|
|
|
MltReq2Packet: sgb_mlt_req 2
|
|
|
|
ChrTrnPacket: sgb_chr_trn 0, 0
|
|
|
|
PctTrnPacket: sgb_pct_trn
|
2018-01-18 03:48:57 +00:00
|
|
|
|
|
|
|
MaskEnFreezePacket: sgb_mask_en 1
|
|
|
|
MaskEnCancelPacket: sgb_mask_en 0
|