value of RMP0
Posted: Mon Jul 28, 2014 2:32 pm
This is a trick question, I think.
What is the value of the constant RMP0?
If you look it up in the Spin ASM manual, you'll find it shown there as 2. This is for the context of using it in the CHO RDA, CHO RDAL or CHO SOF instructions.
However if you reference the WLDR instruction, the valid values for the first parameter are 0 and 1. Nevertheless, it seems that there are a lot of code examples which include something like:
WLDR RMP0, 16384, 4096
If you replace RMP0 with 2, you'll get an error. So it looks like in the context of the WLDR instruction that RMP0 = 0.
Normally you wouldn't care about this, but I've had to duplicate the syntax of the Spin Assembler to simplify the creation of new functional blocks in SpinCAD Designer.
What is the value of the constant RMP0?
If you look it up in the Spin ASM manual, you'll find it shown there as 2. This is for the context of using it in the CHO RDA, CHO RDAL or CHO SOF instructions.
However if you reference the WLDR instruction, the valid values for the first parameter are 0 and 1. Nevertheless, it seems that there are a lot of code examples which include something like:
WLDR RMP0, 16384, 4096
If you replace RMP0 with 2, you'll get an error. So it looks like in the context of the WLDR instruction that RMP0 = 0.
Normally you wouldn't care about this, but I've had to duplicate the syntax of the Spin Assembler to simplify the creation of new functional blocks in SpinCAD Designer.