From d37386bdae611c42f330fd8b6a704b903d4f4a3f Mon Sep 17 00:00:00 2001 From: z_demo_z <> Date: Thu, 27 Jun 2002 21:31:10 +0000 Subject: [PATCH] This one should work better --- zsnes/src/cpu/dma.asm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/zsnes/src/cpu/dma.asm b/zsnes/src/cpu/dma.asm index abc33c81..efcef9bc 100644 --- a/zsnes/src/cpu/dma.asm +++ b/zsnes/src/cpu/dma.asm @@ -87,9 +87,9 @@ NEWSYM transdma xor ebx,ebx and al,00000111b cmp al,5 - jae .notmode567dma + jne .notmode5dma sub al,4 -.notmode567dma +.notmode5dma mov bl,al shl bl,3 add ebx,.addrwrite @@ -475,6 +475,10 @@ NEWSYM setuphdma xor ecx,ecx mov al,[esi] and al,00000111b + cmp al,5 + jne .notmode5dma + sub al,4 +.notmode5dma mov ah,[.addrnumt+eax] mov [edx+16],ah mov bl,al @@ -575,6 +579,10 @@ NEWSYM setuphdmars xor ecx,ecx mov al,[esi] and al,00000111b + cmp al,5 + jne .notmode5dma + sub al,4 +.notmode5dma mov ah,[.addrnumt+eax] mov [edx+16],ah mov bl,al @@ -677,6 +685,10 @@ NEWSYM setuphdma2 xor ecx,ecx mov al,[esi] and al,00000111b + cmp al,5 + jne .notmode5dma + sub al,4 +.notmode5dma mov ah,[.addrnumt+eax] mov [edx+16],ah mov bl,al