PASD problem getting a new source to work.
HShanko
Posts: 402
I've used PASD before, but for some reason this one won't bring code into PASD.
The attached archive should provide all the info on what I'm probably missing. The PASM 'Track1' is the one I need to debug.
What ever I do, all I get is the blank screen and NO code of any kind ever loading, but do not get error message of 'no data', which is strange. I tried the PASD demo and that loaded OK. Ignore 'PulseScope'; I could not delete it from the window on uploading TsBasic. Apologies
The attached archive should provide all the info on what I'm probably missing. The PASM 'Track1' is the one I need to debug.
What ever I do, all I get is the blank screen and NO code of any kind ever loading, but do not get error message of 'no data', which is strange. I tried the PASD demo and that loaded OK. Ignore 'PulseScope'; I could not delete it from the window on uploading TsBasic. Apologies
Comments
You have no ORG at begin of the cog code. Every Assembly code for a cog has to start with an ORG 0, see the example code.
Andy
Thanks, Andy/Ariba
Why doesn't the Prop tool flag a section of PASM code following a DAT, but missing an ORG 0 statement?
And, without an ORG 0, what address would the PASM code be located?
As DAT section can be.
Long xx
Long xx
Long xx
Long xx
ORG 0
First COG PASM
ORG 0
Second COG PASM
AND so ON.
Maybe You understand that that need be that way as it is.
If one doesn't include an ORG 0, but valid PASM code follows, why doesn't the Prop tool recognize the omission?
I don't know enough about what all the Prop tool internally on one's program. And I suppose and sort of values can follow a DAT in byte, word, long form. Would there ever be a case where a ORG n, where ne does NOT be zero, would be used? Maybe that doesn't make sense in the real world. I'm just trying to understand how the Prop tool catches some errors but not others, like my questions have been about. OK, maybe the 'horse is beaten enough now'.
If I weren't occupied with other tasks, and had the time to devote to it, I'd of tried to dig deep into such a subject. In the past I'd written a couple of disassemblers (in Basic; yeah, s l o wwww). And even a crude assembler, which was a nice learning curve.
Thanks for your comments, not just on this thread, but have enjoyed your comments on many others. Thanks for the deep understanding of the Propeller I.