Closed GoogleCodeExporter closed 9 years ago
I was actually in the process of testing the fix when this issue got posted.
Original comment by Upth...@gmail.com
on 16 Feb 2009 at 4:03
Great. One thing:
"since lua can only hook the main 68k at the moment"
I think that is actually not true, since the memory hooking is
processor-agnostic
right now.
Original comment by nitsuja-@hotmail.com
on 16 Feb 2009 at 4:25
Err, that's a bad idea, since the Main68k (genesis processor) memory map and the
Sub68k (sega cd processor) memory map are _totally_ different, having it call
the
same callback in the case of either processor accessing the address, with no
way to
tell which one did so could lead to some seriously unexpected script behavior.
I'm divided on whether the immediate fix is to temporarily disable sub68k
calling
back, or to properly implement specifying it as an alternate processor.
Original comment by Upth...@gmail.com
on 16 Feb 2009 at 10:28
Oh... in that case, I'm not divided on it. The function signature is now:
memory.register(int address, [int size=1,] [string cpuname="main",] function
func)
Right now a cpuname of "sub" or "s68k" will tie into the hooks from
tracer_cd.cpp,
and everything else is assumed to refer to the main 68k.
Original comment by nitsuja-@hotmail.com
on 16 Feb 2009 at 11:33
Awesome. I was just trying to figure out how the tieredregions you set up
worked so
that I could do this.
Original comment by Upth...@gmail.com
on 16 Feb 2009 at 11:46
Original issue reported on code.google.com by
nitsuja-@hotmail.com
on 16 Feb 2009 at 3:31