Ok,
Take this example:
Code:
BCF f,b = 01 00bb bfff ffff
BCF f, b - f = the FILE register, so STATUS for example, b = the 8 bit address within the FILE register, we will use RP0.
Looking at the STATUS and RP0 from the MPASM INC file we can see that:
Code:
STATUS = 0003 = 0011(Binary)
RP0 = 0005 = 0101(Binary)
So from the original code we can assemble this as:
Code:
01 00bb bfff ffff
=
01 0010 1000 0011
= 1283 (Compiled HEX code for BCF STATUS, RP0)
In reverse (Disassemble):
Code:
1283 Hex =
01 0010 1000 0011
=
01 00bb bfff ffff
=
000 0011 = 03 = Status Register
10 1 = 05 = RP0 Bit
01 00 = BCF
Nigel, please correct me if I am wrong on this example and / or any information I have missed.
Wilksey