Ozpropdev or Cluso99, what's that PNut assembler addressing problem, again???
cgracey
Posts: 14,152
I can't find it and I can't recreate it. I though it had to do with 9-bit relative jumps being extended with ##, but those seem to assemble okay. It was something else, and you pointed it out 5 times, but I can't remember. Just shows I should have fixed it when it came up. Sorry. Any help appreciated.
Comments
I'll keep looking for those posts.
I think this is the issue your thinking of.
I just played around with your example. There is a rule in the assembler that relative S jumps can't cross between cog/LUT and hub. Your example declares "hub" under an ORGH, making the assembler think it's hub-exec code, even though there is some practical address overlap in the current assembler. This is going to take some thinking to figure out how to handle.
I'll get v16 out and worry about this afterwards.
FPGA's warmed up and ready to go!
Super! Here it is:
https://drive.google.com/file/d/0B9NbgkdrupkHb3VSWHB1b2xOdjg/view?usp=sharing
I'll get to it!
Any problems, so far?