drawing_isr.s (372B)
1 .include "global.s" 2 3 .area _HOME 4 5.drawing_vbl:: 6 LDH A,(.LCDC) 7 OR #LCDCF_BG8000 ; Set BG Chr to 0x8000 8 LDH (.LCDC),A 9 10 LD A,#72 ; Set line at which LCD interrupt occurs 11 LDH (.LYC),A 12 13 RET 14 15 ;; Is the STAT check required, as we are already in the HBL? 16.drawing_lcd:: 17 WAIT_STAT 18 19 LDH A,(.LCDC) 20 AND #~LCDCF_BG8000 ; Set BG Chr to 0x8800 21 LDH (.LCDC),A 22 23 RET