Welcome, Guest. Please login or register.


Author Topic: pasmo + conText + ep128emu... question about debugging (breakpoints) (Read 2762 times)

Offline ssr86

  • EP user
  • *
  • Posts: 355
  • Country: pl
I've been programming using pasmo+conText+ep128emu for a few months now and (in comparison with programming for the cpc) debugging is...quite uncomfortable...
Is there a way (or a better editor than conText) to set breakpoints in the code through my source file? Winape has got a build-in assembler and so allows that... But is there a way to achieve that for pasmo with ep128emu? What I've been doing until now is using a jp $ to find the address of where I wanted to set the breakpoint and then using that address with "step-to" in the ep128emu's debugger. It's not the most convenient way to do it...
It hasn't bothered me that much though, but I always though that there surely is a better way to do that... Because doing it like this, if I wanted to set more than one breakpoint, then I have to remember the address of each breakpoint and change the "step-to" address...

Maybe someone can help? 

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Not sure about pasmo and context, as I have not used those, but I think in sjasm, it is possible to use "output" to write a list of breakpoint definitions to a separate file, and then load the breakpoint file in the ep128emu debugger.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Here is an example for sjasm that generates a breakpoint file containing one breakpoint:

Edit: removed buggy version
« Last Edit: 2015.January.12. 16:46:10 by IstvanV »

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14731
  • Country: hu
    • http://enterprise.iko.hu/
Here is an example for sjasm that generates a breakpoint file containing one breakpoint:
Nice trick!

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
It did not work correctly with hexadecimal digits a-f. :oops: Perhaps there is a more elegant way to implement it, but at least this version fixes the bug:
[ Guests cannot view attachments ]

Offline ssr86

  • EP user
  • *
  • Posts: 355
  • Country: pl
Thank you.

Is everyone here using sjasm?
Maybe I should switch...

EDIT: looks like pasmo hasn't got a feature like "output" in sjasm...
« Last Edit: 2015.January.12. 23:42:15 by ssr86 »

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14731
  • Country: hu
    • http://enterprise.iko.hu/
Is everyone here using sjasm?
I think yes.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
It would also be possible to implement loading the pasmo symbol file with a Lua script.