From ce1bdfecb6c8373803cd8cd5a68e4acbfaa6ab95 Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Mon, 18 Apr 2005 18:20:17 +0000 Subject: [PATCH] Removed some more motion blur garbage. --- zsnes/src/win/winintrf.asm | 75 -------------------------------------- 1 file changed, 75 deletions(-) diff --git a/zsnes/src/win/winintrf.asm b/zsnes/src/win/winintrf.asm index 8c7f97dc..b7c4a561 100644 --- a/zsnes/src/win/winintrf.asm +++ b/zsnes/src/win/winintrf.asm @@ -1585,78 +1585,3 @@ SystemTime: .wSecond dw 0 .wMilliseconds dw 0 - -SECTION .text - -%if 0 - -; here's some code to blur a 512x448 region inside a 640x wide buffer -; code "borrowed" from KEGA 0.04b - -%macro blurcrap 0 - mov eax,ebx - mov ebx,ecx - mov ecx,dword [edi+4] - shr ecx,1 - and ecx,ebp - mov edx,ecx - add edx,eax - shr edx,1 - and edx,ebp - add edx,ebx - mov word [edi+2],dx - push edx - shr edx,1 - shr esi,1 - and edx,ebp - and esi,ebp - add edx,esi - mov word [edi],dx - pop esi - add edi,4 -%endmacro - -NEWSYM fastblur - push ebx - push ecx - push edx - push esi - push edi - push ebp - mov ebp, 0111101111101111b - cmp dword [converta], 1 - jne .565 - mov ebp, 0011110111101111b -.565 - mov edi, [esp+1Ch] - mov ecx, 448 - -.loop - push ecx - - xor ebx, ebx - mov ecx, dword [edi] - xor esi, esi - shr ecx, 1 - and ecx, ebp - -%rep 256 - blurcrap -%endrep - - pop ecx - - add edi, 256 - - dec ecx - jne .loop - - pop ebp - pop edi - pop esi - pop edx - pop ecx - pop ebx - ret - -%endif