Skip to content

Commit

Permalink
update exec callbacks for genplus-gx
Browse files Browse the repository at this point in the history
  • Loading branch information
VelpaChallenger authored and lucianoj77052012 committed Nov 5, 2023
1 parent dafc7d3 commit 0524f46
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 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 @@ -64,7 +64,7 @@ private void InitMemCallbacks()
if (MemoryCallbacks.HasExecutes)
{
uint flags = (uint)MemoryCallbackFlags.AccessExecute;
MemoryCallbacks.CallMemoryCallbacks(a, 0, flags, "M68K BUS");
MemoryCallbacks.CallMemoryCallbacks(a, val, flags, "M68K BUS");
}
});
ReadCallback = new LibGPGX.mem_cb((a, val) =>
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 @@ -7,7 +7,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_execcb)(unsigned addr, unsigned int value);
extern ECL_ENTRY void (*biz_readcb)(unsigned addr, unsigned int value);
extern ECL_ENTRY void (*biz_writecb)(unsigned addr, unsigned int value);
extern CDCallback biz_cdcallback;
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 @@ -55,7 +55,7 @@ static uint8_t brm_format[0x40] =
0x52,0x41,0x4d,0x5f,0x43,0x41,0x52,0x54,0x52,0x49,0x44,0x47,0x45,0x5f,0x5f,0x5f
};

ECL_ENTRY void (*biz_execcb)(unsigned addr);
ECL_ENTRY void (*biz_execcb)(unsigned addr, unsigned int value);
ECL_ENTRY void (*biz_readcb)(unsigned addr, unsigned int value);
ECL_ENTRY void (*biz_writecb)(unsigned addr, unsigned int value);
CDCallback biz_cdcallback = NULL;
Expand Down
2 changes: 1 addition & 1 deletion waterbox/gpgx/core/m68k/m68kcpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ void m68k_run(unsigned int cycles)
m68ki_use_data_space() /* auto-disable (see m68kcpu.h) */

if (biz_execcb)
biz_execcb(REG_PC);
biz_execcb(REG_PC, 0); //All read/write/exec callbacks require address and value, but for exec the functionality is not fully implemented, so I am passing 0 as value.

if(biz_cdcallback)
{
Expand Down

0 comments on commit 0524f46

Please sign in to comment.