Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
Manual vs. Compiler: A discrepancy regarding WR/NR in hub instructions. — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
Propeller 1
Manual vs. Compiler: A discrepancy regarding WR/NR in hub instructions.
Phil Pilgrim (PhiPi)
Posts:
23,514
2008-01-25 00:08
edited 2008-01-25 00:34
in
Propeller 1
Here's an error I got:
Here's what the manual says (p. 395):
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
nr_error.gif
371 x 208
-
8K
nr_okay.gif
495 x 152
-
10K
nr_error.gif
7.6K
nr_okay.gif
10K
Comments
Mike Green
Posts:
23,101
2008-01-25 00:24
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.
deSilva
Posts:
2,967
2008-01-25 00:26
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
Edit:
Damn! Mike was faster!
Phil Pilgrim (PhiPi)
Posts:
23,514
2008-01-25 00:34
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.
Comments
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
Edit:
Damn! Mike was faster!
-Phil