More SGB documentation

This commit is contained in:
Remy Oukaour
2018-01-17 22:48:57 -05:00
parent 4161ec98b4
commit c5d9ecae9c
8 changed files with 149 additions and 146 deletions

View File

@@ -1,4 +1,6 @@
; macros taken from pokered's data/sgb_packets.asm
; 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)
@@ -11,6 +13,7 @@ attr_blk_data: MACRO
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