Enterprise Forever
:UK => Programming => Topic started 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?
-
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.
-
Here is an example for sjasm that generates a breakpoint file containing one breakpoint:
Edit: removed buggy version
-
Here is an example for sjasm that generates a breakpoint file containing one breakpoint:
Nice trick!
-
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=#]
-
Thank you.
Is everyone here using sjasm?
Maybe I should switch...
EDIT: looks like pasmo hasn't got a feature like "output" in sjasm...
-
Is everyone here using sjasm?
I think yes.
-
It would also be possible to implement loading the pasmo symbol file with a Lua script.