From 339a2f38c53a1c6cdf98b872c17a44f4eb0da44c Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Fri, 25 Mar 2005 19:35:25 +0000 Subject: [PATCH] Mode 4 offset change overflow fix in rendering code --- zsnes/src/video/newgfx16.mac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsnes/src/video/newgfx16.mac b/zsnes/src/video/newgfx16.mac index 787053c3..c780bb2d 100644 --- a/zsnes/src/video/newgfx16.mac +++ b/zsnes/src/video/newgfx16.mac @@ -3300,7 +3300,10 @@ EXTSYM osm2dis je near .offsetm16x16 xor edx,edx mov dx,[BG3SYl+ebx*2] + test dx,08h + jz .overflow and dx,0F8h +.overflow shr edx,3 shl edx,6 xor eax,eax