From 085df41192025d15c9d994cfaef9b2f377239c00 Mon Sep 17 00:00:00 2001 From: zsknight <> Date: Tue, 29 May 2001 23:16:26 +0000 Subject: [PATCH] Fixed Lennus 2 --- zsnes/src/cpu/regs.inc | 3 ++- zsnes/src/cpu/regsw.inc | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/zsnes/src/cpu/regs.inc b/zsnes/src/cpu/regs.inc index f1019208..fc96e369 100644 --- a/zsnes/src/cpu/regs.inc +++ b/zsnes/src/cpu/regs.inc @@ -393,9 +393,10 @@ NEWSYM SDD1BankC, db 2 NEWSYM SDD1BankD, db 3 NEWSYM vramread2, db 0 ; previous character for vram read NEWSYM nosprincr, db 0 +NEWSYM poamaddrs, dw 0 -NEWSYM tempdat, times 482 db 0 ; expandable area +NEWSYM tempdat, times 480 db 0 ; expandable area num2writeppureg equ $-sndrot ; pharos equ hack *sigh* diff --git a/zsnes/src/cpu/regsw.inc b/zsnes/src/cpu/regsw.inc index e72d198d..db854db8 100644 --- a/zsnes/src/cpu/regsw.inc +++ b/zsnes/src/cpu/regsw.inc @@ -497,8 +497,10 @@ reg2102w: shr word[oamaddr],1 mov [oamaddr],al shl word[oamaddr],1 - or al,al - jz .skipstore +; or al,al +; jz .skipstore + mov bx,[oamaddrs] + mov [poamaddrs],bx mov bx,[oamaddr] mov [oamaddrs],bx .skipstore @@ -519,17 +521,16 @@ reg2102w: ; OAM address register reg2103w: - mov byte[debstop3],1 mov bl,al and bl,01h shr word[oamaddr],1 mov [oamaddr+1],bl shl word[oamaddr],1 - cmp word[oamaddrs],200h + cmp word[poamaddrs],200h jbe .notinvptr cmp word[oamaddr],200h jne .notinvptr - mov bx,[oamaddrs] + mov bx,[poamaddrs] mov [oamaddr],bx mov byte[nosprincr],1 .notinvptr @@ -546,7 +547,6 @@ reg2103w: ; OAM data register reg2104w: - mov byte[debstop3],1 mov byte[NextLineCache],1 mov ebx,[oamaddr] cmp byte[nosprincr],1