Skip to content

Commit dafc7d3

Browse files
VelpaChallengerlucianoj77052012
authored andcommitted
update write callbacks for genplus-gx
- related to issue TASEmulators#3813
1 parent bd41934 commit dafc7d3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Assets/dll/gpgx.wbx.zst

378 Bytes
Binary file not shown.

src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IDebuggable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private void InitMemCallbacks()
8080
if (MemoryCallbacks.HasWrites)
8181
{
8282
uint flags = (uint)MemoryCallbackFlags.AccessWrite;
83-
MemoryCallbacks.CallMemoryCallbacks(a, 0, flags, "M68K BUS");
83+
MemoryCallbacks.CallMemoryCallbacks(a, val, flags, "M68K BUS");
8484
}
8585
});
8686
_memoryCallbacks.ActiveChanged += RefreshMemCallbacks;

waterbox/gpgx/cinterface/callbacks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ typedef ECL_ENTRY void (*CDCallback)(int32 addr, int32 addrtype, int32 flags);
99

1010
extern ECL_ENTRY void (*biz_execcb)(unsigned addr);
1111
extern ECL_ENTRY void (*biz_readcb)(unsigned addr, unsigned int value);
12-
extern ECL_ENTRY void (*biz_writecb)(unsigned addr);
12+
extern ECL_ENTRY void (*biz_writecb)(unsigned addr, unsigned int value);
1313
extern CDCallback biz_cdcallback;
1414
extern unsigned biz_lastpc;
1515

waterbox/gpgx/cinterface/cinterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static uint8_t brm_format[0x40] =
5757

5858
ECL_ENTRY void (*biz_execcb)(unsigned addr);
5959
ECL_ENTRY void (*biz_readcb)(unsigned addr, unsigned int value);
60-
ECL_ENTRY void (*biz_writecb)(unsigned addr);
60+
ECL_ENTRY void (*biz_writecb)(unsigned addr, unsigned int value);
6161
CDCallback biz_cdcallback = NULL;
6262
unsigned biz_lastpc = 0;
6363
ECL_ENTRY void (*cdd_readcallback)(int lba, void *dest, int audio);

waterbox/gpgx/core/m68k/m68kcpu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ INLINE void m68ki_write_8_fc(uint address, uint fc, uint value)
938938
{
939939
cpu_memory_map *temp;
940940
if (biz_writecb)
941-
biz_writecb(address);
941+
biz_writecb(address, value);
942942

943943
m68ki_set_fc(fc) /* auto-disable (see m68kcpu.h) */
944944

@@ -951,7 +951,7 @@ INLINE void m68ki_write_16_fc(uint address, uint fc, uint value)
951951
{
952952
cpu_memory_map *temp;
953953
if (biz_writecb)
954-
biz_writecb(address);
954+
biz_writecb(address, value);
955955

956956
m68ki_set_fc(fc) /* auto-disable (see m68kcpu.h) */
957957
m68ki_check_address_error(address, MODE_WRITE, fc); /* auto-disable (see m68kcpu.h) */
@@ -965,7 +965,7 @@ INLINE void m68ki_write_32_fc(uint address, uint fc, uint value)
965965
{
966966
cpu_memory_map *temp;
967967
if (biz_writecb)
968-
biz_writecb(address);
968+
biz_writecb(address, value);
969969

970970
m68ki_set_fc(fc) /* auto-disable (see m68kcpu.h) */
971971
m68ki_check_address_error(address, MODE_WRITE, fc) /* auto-disable (see m68kcpu.h) */

0 commit comments

Comments
 (0)