From fab37799e21472bf1575cc8d24b04d773355b3a9 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 22 Oct 2018 09:06:51 +0200 Subject: [PATCH] fix interlacing (top fields are odd, i guess) --- inc/n64_vi.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/n64_vi.inc b/inc/n64_vi.inc index 560145b..ddbc304 100644 --- a/inc/n64_vi.inc +++ b/inc/n64_vi.inc @@ -107,10 +107,10 @@ SetScreenNTSC_Fail: sw r0, VI_V_CURRENT_LINE(v1) // clear interrupt SetScreenNTSC_SetInterlaced: - beqz t0, SetScreenNTSC_Set // nothing more to do on even fields. + bnez t0, SetScreenNTSC_Set // nothing more to do on odd (top) fields. ori a1, INTERLACE - // handle odd fields. + // handle even (bottom) fields. addu a2, t2 // add width to origin addu a2, t2 // and again for a full row (when 16 BPP) beqz t1, SetScreenNTSC_Set // branch when 16 BPP