From 331e2dfd96c04263421c86bca39a3534f8a8f368 Mon Sep 17 00:00:00 2001 From: grinvader <> Date: Mon, 27 Feb 2006 19:10:21 +0000 Subject: [PATCH] Oh wow, now that was stupid. --- zsnes/src/cpu/dma.asm | 48 ------------------------------------------- 1 file changed, 48 deletions(-) diff --git a/zsnes/src/cpu/dma.asm b/zsnes/src/cpu/dma.asm index d98bbd82..18aa057b 100644 --- a/zsnes/src/cpu/dma.asm +++ b/zsnes/src/cpu/dma.asm @@ -1155,54 +1155,6 @@ section .data section .text NEWSYM hdmatype2indirect - cmp byte[esi+1],40h ; Writing to spc - jne near .notend - cmp byte[esi+10],0DAh ; first transfer - jne near .notend - push eax - push ebx - push ecx - push edx - xor eax,eax - xor ebx,ebx - xor ecx,ecx - xor edx,edx - mov ax,[SPCRAM+021h] ; load dest offset - mov dword[.dest],SPCRAM - add [.dest],eax - mov dl,[esi+10] ; number of bytes to transfer - sub dl,80h -.inloop - xor ebx,ebx - xor ecx,ecx - mov bl,[esi+7] - mov cx,[esi+5] - inc word[esi+5] - call dword near [memtabler8+ebx*4] - mov ebx,[.dest] - mov [ebx],al - inc ebx - mov [.dest],ebx - xor ebx,ebx - xor ecx,ecx - mov bl,[esi+7] - mov cx,[esi+5] - inc word[esi+5] - call dword near [memtabler8+ebx*4] - mov ebx,[.dest] - mov [ebx],al - inc ebx - mov [.dest],ebx - dec edx - jnz .inloop - sub word[esi+5],5Ah - sub word[esi+5],5Ah - pop edx - pop ecx - pop ebx - pop eax -.notend - mov al,[edx+16] mov [.tempdecr],al xor ebx,ebx