How to write LUT Exec assembly code?

Maybe I forgot, but how does one write assembly code for LUT exec that PNut can load?

I've got one cog that is full and had to move code to HUB for hubexec.
That's all good and straightforward, but maybe LUT exec code would be faster...
Prop Info and Apps: http://www.rayslogic.com/

Comments

  • 3 Comments sorted by Date Added Votes
  • Just ORG it at $200 and move it into the lut at runtime using SETQ2+RDLONG.
  • RaymanRayman Posts: 7,984
    edited January 21 Vote Up0Vote Down
    Thanks. That sounds simple enough...

    Can I still use "fit" for the cog code?
    I.e., can I put the org $200 after fit $1f5 ?
    Prop Info and Apps: http://www.rayslogic.com/
  • Rayman wrote: »
    Thanks. That sounds simple enough...

    Can I still use "fit" for the cog code?
    I.e., can I put the org $200 after fit $1f5 ?

    Yes. And you can put another fit, like $300, if you want to limit your code to the first half of the lut. Just do a JMP $200 (or, to your label) to execute it.
Sign In or Register to comment.