summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2015-05-11 16:04:48 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2015-05-11 16:04:48 -0400
commit4ebf18d1355a81e13879e58daf353aa939399ef0 (patch)
tree547ac286b4450ce12b822c29641534027246a5e4
parent879bd05d88c3481a342ec7d6546b9cdebe548a90 (diff)
Update copy.asm
-rw-r--r--home/copy.asm20
1 files changed, 20 insertions, 0 deletions
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