Skip to content

Commit

Permalink
update write callbacks for genplus-gx
Browse files Browse the repository at this point in the history
- related to issue TASEmulators#3813
  • Loading branch information
VelpaChallenger committed Nov 5, 2023
1 parent 503ff76 commit d2dc8b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Binary file modified Assets/dll/gpgx.wbx.zst
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void InitMemCallbacks()
if (MemoryCallbacks.HasWrites)
{
uint flags = (uint)MemoryCallbackFlags.AccessWrite;
MemoryCallbacks.CallMemoryCallbacks(a, 0, flags, "M68K BUS");
MemoryCallbacks.CallMemoryCallbacks(a, val, flags, "M68K BUS");
}
});
_memoryCallbacks.ActiveChanged += RefreshMemCallbacks;
Expand Down
2 changes: 1 addition & 1 deletion waterbox/gpgx/cinterface/callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ typedef ECL_ENTRY void (*CDCallback)(int32 addr, int32 addrtype, int32 flags);

extern ECL_ENTRY void (*biz_execcb)(unsigned addr);
extern ECL_ENTRY void (*biz_readcb)(unsigned addr, unsigned int value);
extern ECL_ENTRY void (*biz_writecb)(unsigned addr);
extern ECL_ENTRY void (*biz_writecb)(unsigned addr, unsigned int value);
extern CDCallback biz_cdcallback;
extern unsigned biz_lastpc;

Expand Down
2 changes: 1 addition & 1 deletion waterbox/gpgx/cinterface/cinterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static uint8_t brm_format[0x40] =

ECL_ENTRY void (*biz_execcb)(unsigned addr);
ECL_ENTRY void (*biz_readcb)(unsigned addr, unsigned int value);
ECL_ENTRY void (*biz_writecb)(unsigned addr);
ECL_ENTRY void (*biz_writecb)(unsigned addr, unsigned int value);
CDCallback biz_cdcallback = NULL;
unsigned biz_lastpc = 0;
ECL_ENTRY void (*cdd_readcallback)(int lba, void *dest, int audio);
Expand Down
6 changes: 3 additions & 3 deletions waterbox/gpgx/core/m68k/m68kcpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ INLINE void m68ki_write_8_fc(uint address, uint fc, uint value)
{
cpu_memory_map *temp;
if (biz_writecb)
biz_writecb(address);
biz_writecb(address, value);

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

Expand All @@ -951,7 +951,7 @@ INLINE void m68ki_write_16_fc(uint address, uint fc, uint value)
{
cpu_memory_map *temp;
if (biz_writecb)
biz_writecb(address);
biz_writecb(address, value);

m68ki_set_fc(fc) /* auto-disable (see m68kcpu.h) */
m68ki_check_address_error(address, MODE_WRITE, fc); /* auto-disable (see m68kcpu.h) */
Expand All @@ -965,7 +965,7 @@ INLINE void m68ki_write_32_fc(uint address, uint fc, uint value)
{
cpu_memory_map *temp;
if (biz_writecb)
biz_writecb(address);
biz_writecb(address, value);

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

0 comments on commit d2dc8b8

Please sign in to comment.