Enterprise Forever

:UK => Programming => Topic started by: ssr86 on 2015.January.12. 15:25:07

Title: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: ssr86 on 2015.January.12. 15:25:07
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? 
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: IstvanV on 2015.January.12. 16:02:13
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.
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: IstvanV on 2015.January.12. 16:13:46
Here is an example for sjasm that generates a breakpoint file containing one breakpoint:

Edit: removed buggy version
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: Zozosoft on 2015.January.12. 16:25:46
Here is an example for sjasm that generates a breakpoint file containing one breakpoint:
Nice trick!
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: IstvanV on 2015.January.12. 16:49:02
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:
[attachurl=#]
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: ssr86 on 2015.January.12. 23:21:03
Thank you.

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

EDIT: looks like pasmo hasn't got a feature like "output" in sjasm...
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: Zozosoft on 2015.January.12. 23:23:26
Is everyone here using sjasm?
I think yes.
Title: Re: pasmo + conText + ep128emu... question about debugging (breakpoints)
Post by: IstvanV on 2015.January.13. 14:06:11
It would also be possible to implement loading the pasmo symbol file with a Lua script.