Hello, Guest the thread was viewed225 times and contains 2 replies

last post from Goodwell at the

Vice-like debugging interface

  • It would be great if debugging assembly programs just like in vice would be available.

    C64 Studio is well interfaced with that.


    I have seen here https://github.com/lgblgblgb/x…-xemumega65s-uart-monitor that there is a debugging interface, but that's only available on Linux builds of xemu.


    LGB-Z is that something you could think of?

    Maybe Endurion could bring you up to speed about that debugging interface really quick, as he hooked up C64Studio to it?


    Thanks for considering!

  • Goodwell That's a kind of outdated document, the debugging interface is available on all supported platform for now, since a while. However it tries to mimic the debug interface of a real MEGA65. This had advantages and disadvantages as well. The advantage: similar experience, and tools can be used with both of the emulator and the real iron, the disadvantage: the interface protocol itself is a kind of well ... "strange" and also it's not perfect yet even compared to the state of the real MEGA65. But you can use the tool called m65dbg to be attached to both of a real MEGA65 and the emulator, and you can try to use that. Gurce has an Xemu fork which fixes some of the problem though. Currently I am trying to rewrite/modify the MEGA65 debug interface protocol implementation in Xemu, and it's planned to also merge Gurce 's effort into the official builds then.


    Xemu issue: https://github.com/lgblgblgb/xemu/issues/11

    Xemu discussion in the topic: https://github.com/lgblgblgb/xemu/discussions/335

  • Goodwell That's a kind of outdated document, the debugging interface is available on all supported platform for now, since a while. However it tries to mimic the debug interface of a real MEGA65. This had advantages and disadvantages as well. The advantage: similar experience, and tools can be used with both of the emulator and the real iron, the disadvantage: the interface protocol itself is a kind of well ... "strange" and also it's not perfect yet even compared to the state of the real MEGA65. But you can use the tool called m65dbg to be attached to both of a real MEGA65 and the emulator, and you can try to use that. Gurce has an Xemu fork which fixes some of the problem though. Currently I am trying to rewrite/modify the MEGA65 debug interface protocol implementation in Xemu, and it's planned to also merge Gurce 's effort into the official builds then.


    Xemu issue: https://github.com/lgblgblgb/xemu/issues/11

    Xemu discussion in the topic: https://github.com/lgblgblgb/xemu/discussions/335

    Great, thanks for the information.

    I've seen m65dbg but I wasn't aware that it's also intended for being used with the emulator

    I'll definitely give that a try and read through the links you shared


    Thanks!