cgb_compat.s (324B)
1 .include "global.s" 2 3 .title "CGB support" 4 .module CGB 5 6 .globl _set_sprite_palette, _set_bkg_palette 7 8 .area _CODE 9 10_cgb_compatibility:: 11_set_default_palette:: 12 LD HL, #1$ 13 PUSH HL 14 LD HL, #0x0100 15 PUSH HL 16 CALL _set_sprite_palette 17 CALL _set_bkg_palette 18 ADD SP, #4 19 RET 201$: 21 .DW 0xFF7F, 0x56B5, 0x294A, 0x0000