From 5926338641ab961bef018e243ca797f47776294b Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Mon, 5 May 2003 00:54:54 +0000 Subject: [PATCH] Proper behaviour of RDIO regs --- zsnes/src/cpu/regs.inc | 7 +++---- zsnes/src/cpu/regsw.inc | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zsnes/src/cpu/regs.inc b/zsnes/src/cpu/regs.inc index c186dcfd..e0a56341 100644 --- a/zsnes/src/cpu/regs.inc +++ b/zsnes/src/cpu/regs.inc @@ -664,9 +664,10 @@ NEWSYM SDD1BankD, db 3 NEWSYM vramread2, db 0 ; previous character for vram read NEWSYM nosprincr, db 0 NEWSYM poamaddrs, dw 0 +NEWSYM rdioval, db 0 -NEWSYM tempdat, times 480 db 0 ; expandable area +NEWSYM tempdat, times 479 db 0 ; expandable area num2writeppureg equ $-sndrot ; pharos equ hack *sigh* @@ -1371,9 +1372,7 @@ debblah2: ; Programmable I/O port reg4213r: -; mov al,[mode7A] -; xor al,al -; mov al,0FFh + mov al,[rdioval] ret ; Quotent of Divide Result (Low) diff --git a/zsnes/src/cpu/regsw.inc b/zsnes/src/cpu/regsw.inc index 9b8af173..a66df41d 100644 --- a/zsnes/src/cpu/regsw.inc +++ b/zsnes/src/cpu/regsw.inc @@ -1504,6 +1504,7 @@ reg4200w: ; Programmable I/O port (out-port) reg4201w: + mov byte[rdioval],al mov bl,al and bl,80h and byte[MultiTapStat],07Fh