From 3258f1bda8d5d4e23206733acc693c2bd4a37d3b Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 30 Jun 2025 18:52:19 +0300 Subject: [PATCH] Do Agnus side write before writing data to RGA buffer. --- custom.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/custom.cpp b/custom.cpp index 0a584fbe..9bbcb6a0 100644 --- a/custom.cpp +++ b/custom.cpp @@ -7651,6 +7651,10 @@ static int REGPARAM2 custom_wput_1(uaecptr addr, uae_u32 value, int noget) } #endif int c = get_reg_chip(addr); + int ret = 0; + if (c & 1) { + ret = custom_wput_agnus(addr, value, noget); + } if (!(noget & 0x8000) && (c & 2)) { uae_u32 v = value; if (c & 4) { @@ -7666,10 +7670,7 @@ static int REGPARAM2 custom_wput_1(uaecptr addr, uae_u32 value, int noget) write_drga(addr, NULL, v); } } - if (c & 1) { - return custom_wput_agnus(addr, value, noget); - } - return 0; + return ret; } static void REGPARAM2 custom_wput(uaecptr addr, uae_u32 value) -- 2.47.3