Shop OBEX P1 Docs P2 Docs Learn Events
Manual vs. Compiler: A discrepancy regarding WR/NR in hub instructions. — Parallax Forums

Manual vs. Compiler: A discrepancy regarding WR/NR in hub instructions.

Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
edited 2008-01-25 00:34 in Propeller 1
Here's an error I got:

attachment.php?attachmentid=51688

Here's what the manual says (p. 395):

attachment.php?attachmentid=51689

There's nothing about this in the errata, so hopefully the manual is correct, and the superfluous error can be fixed in the compiler.

Thanks,
Phil
371 x 208 - 8K
495 x 152 - 10K

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-25 00:24
    Actually, the error message is correct. The difference between the RDLONG and WRLONG instructions is the WR bit. The manual is incorrect. If you were to use the NR effect, you would get a WRLONG instruction.
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-25 00:26
    Alas, you are of luck, Phil: The manual is wrong... :-(
    This issue comes up from time to time, and I commented on it also some months ago.

    When you have a look at the binary representation of the opcodes you will find that NR is used to differenciate between WR and RD smile.gif

    Edit:
    Damn! Mike was faster!
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-01-25 00:34
    Ach, so! I neglected to look at the code bits. Thanks, guys!

    -Phil
Sign In or Register to comment.