Open tluyben opened 8 years ago
Well, there is a JS API for several things, but I still have to organize and document it. For breakpoints and stepping, what you see is a reminiscent of my early testing, its not intended to be an API. I plan to add features for that, but its not done yet.
For now, you can get you hands into something if you get the components starting from WMSX.room object. That is not an API and may change over time... For example, this will get the RAM Mapper raw bytes from the default slots configurations:
WMSX.room.machine.bus.slots[3].bytes
But be careful, that will depend on the slots configuration, and type of RAM used. Maybe you should set the RAM as normal 64KB (default for MSX1 machines), it will be easier to understand what is happening.
I know quite a lot about real MSX's so that helps; I've been playing around with that and it indeed seems to be working well... If the API will be able to get me the same info life is good!
Thanks for the great work!
Is there an API for debugging? I see commented code for breakpoints in Z80.js and I tried rummaging through the WMSX.room.machine.* space; I can dump the regs;
WMSX.room.machine.cpu.toString()
but I haven't figured out how to dump memory or put a breakpoint and step etc. Is that in yet or that's just on the roadmap?