diff options
| author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-05-11 16:04:48 -0400 |
|---|---|---|
| committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-05-11 16:04:48 -0400 |
| commit | 4ebf18d1355a81e13879e58daf353aa939399ef0 (patch) | |
| tree | 547ac286b4450ce12b822c29641534027246a5e4 | |
| parent | Update copy2.asm (diff) | |
| download | pokeyellow-4ebf18d1355a81e13879e58daf353aa939399ef0.tar.gz pokeyellow-4ebf18d1355a81e13879e58daf353aa939399ef0.tar.xz pokeyellow-4ebf18d1355a81e13879e58daf353aa939399ef0.zip | |
Update copy.asm
| -rw-r--r-- | home/copy.asm | 20 |
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 |
