ENTERPRISE KLUB
2019. május 25., 1055 Budapest, Nyugati tér 9. 14-19 óráig
Részletek
Welcome, Guest. Please login or register.


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

Offline ssr86

  • EP user
  • *
  • Posts: 359
  • Country: pl
  • OS:
  • Windows NT 6.2 Windows NT 6.2
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
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: 4806
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
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: 4806
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
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 »

Online Zozosoft

  • EP addict
  • *
  • Posts: 13335
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
    • 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: 4806
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
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:
* bptest.s (0.58 kB - downloaded 113 times.)

Offline ssr86

  • EP user
  • *
  • Posts: 359
  • Country: pl
  • OS:
  • Windows NT 6.2 Windows NT 6.2
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
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 »

Online Zozosoft

  • EP addict
  • *
  • Posts: 13335
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
    • http://enterprise.iko.hu/
Is everyone here using sjasm?
I think yes.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4806
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 34.0 Firefox 34.0
    • View Profile
It would also be possible to implement loading the pasmo symbol file with a Lua script.