From 4ebf18d1355a81e13879e58daf353aa939399ef0 Mon Sep 17 00:00:00 2001 From: luckytyphlosion Date: Mon, 11 May 2015 16:04:48 -0400 Subject: Update copy.asm --- home/copy.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/home/copy.asm b/home/copy.asm index bba8c4c0..602067b5 100644 --- a/home/copy.asm +++ b/home/copy.asm @@ -52,3 +52,23 @@ CopyVideoData:: ; note: fix other CopyVideoData function ld c,a pop af jp FarCopyData + +CopyVideoDataDouble:: ; 00e3 (0:00e3) + ld a, [rLCDC] + bit 7,a ; LCD enabled? + jp nz, CopyVideoDataDoubleLCDEnabled ; if yes, then copy video data + push de + ld d,h + ld e,l + ld a,b + push af ; save bank to switch to + ld h,$0 + ld l,c + add hl,hl ; get raw length of bytes to copy + add hl,hl + add hl,hl + ld b,h + ld c,l + pop af + pop hl + jp CopyVideoDataDoubleLCDDisabled -- cgit v1.3.1-sl0p