Ozpropdev or Cluso99, what's that PNut assembler addressing problem, again???

cgraceycgracey Posts: 7,619
edited February 25 in Propeller 2 Vote Up0Vote Down
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

  • 12 Comments sorted by Date Added Votes
  • I think it has to do with backward-branching ##S instructions. I'm seeing some ugly behavior.
  • No, actually, it looks correct.

    I'll keep looking for those posts.
  • Chip
    I think this is the issue your thinking of.
    {
    CCCC 1011001 CZI DDDDDDDDD SSSSSSSSS        CALLD   D,S/#rel9   {WC,WZ}
    }
    dat	org
    
    	calld	myret,##hub	' <-- Error - Expected a constant,unary operator or "("
    	drvh	#34
    here	jmp	#here
    
    oz2	drvh	#33
    	jmp	myret
    
    myret	long	0
    
    	orgh	$400
    hub	drvh	#32
    	jmp	myret
    
    Melbourne, Australia
  • Thanks, Ozpropdev!

    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.
  • Ozpropdev, would you mind testing all the FPGA images again for v16? It took all day to get them ready and I minded all the details, but I haven't tested them - only the -A9 version. No obligation here. It would just save me some time. I'll put a link here, shortly, if you're up to it.
  • I have been out. As you now know, it wasn't me who found the problem.
    My Prop boards: P8XBlade2, RamBlade, CpuBlade, TriBlade
    Prop OS (also see Sphinx, PropDos, PropCmd, Spinix)
    Website: www.clusos.com
    Prop Tools (Index) , Emulators (Index) , ZiCog (Z80)
  • cgracey wrote: »
    Ozpropdev, would you mind testing all the FPGA images again for v16? It took all day to get them ready and I minded all the details, but I haven't tested them - only the -A9 version. No obligation here. It would just save me some time. I'll put a link here, shortly, if you're up to it.
    No worries Chip.
    FPGA's warmed up and ready to go! :)

    Melbourne, Australia
  • ozpropdev wrote: »
    cgracey wrote: »
    Ozpropdev, would you mind testing all the FPGA images again for v16? It took all day to get them ready and I minded all the details, but I haven't tested them - only the -A9 version. No obligation here. It would just save me some time. I'll put a link here, shortly, if you're up to it.
    No worries Chip.
    FPGA's warmed up and ready to go! :)

    Super! Here it is:

    https://drive.google.com/file/d/0B9NbgkdrupkHb3VSWHB1b2xOdjg/view?usp=sharing
  • I'll start getting the rest of the update ready, then. Thanks a lot for testing those.
  • ozpropdevozpropdev Posts: 1,793
    edited February 25 Vote Up0Vote Down
    Thanks Chip!
    I'll get to it!
    Melbourne, Australia
  • ozpropdev wrote: »
    Thanks Chip!
    I'll get to it!

    Any problems, so far?
  • Ozpropdev, if all goes well, could you please make a post on the "PROP2 FPGA FILES!!!" thread announcing the new update at the top of the thread? I don't know how much longer I'll be up, but I'll wait to hear from you for a little while. Thanks.
Sign In or Register to comment.