diff options
Diffstat (limited to 'src/home/lcd_enable_frame.asm')
-rw-r--r-- | src/home/lcd_enable_frame.asm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/home/lcd_enable_frame.asm b/src/home/lcd_enable_frame.asm new file mode 100644 index 0000000..0127495 --- /dev/null +++ b/src/home/lcd_enable_frame.asm @@ -0,0 +1,15 @@ +DoFrameIfLCDEnabled: + push af + ldh a, [rLCDC] + bit LCDC_ENABLE_F, a + jr z, .done + push bc + push de + push hl + call DoFrame + pop hl + pop de + pop bc +.done + pop af + ret |