Hi All,
I was reading the info about the W (word) and B(byte) working variables and pondered a few things....
It states "There are 14 or more general purpose byte variables. These byte variables are labelled b0, b1 etc"
So, is it 14 bytes? "or more"? does it depend on the chip type?
It then shows a map where W0 to W6 are made up up bytes paired together:
e.g.
W0 = b1,b0
W1 = b3,b2
W2 = b5,b4
W3 = b7,b6
W4 = b9,b8
W5 = b11,b10
W6 = b13,b12
So far, so good, but is there anything like W7 or beyond?
Then, the bytes are shown broken down to bit level.
e.g.
b0 = bit7: bit6: bit5: bit4: bit3: bit2: bit1: bit0
b1 = bit15: bit14: bit13: bit12: bit11: bit10: bit9: bit8
M2, X1 and X2 parts also support bit16-bit31 (b2-b3)
Do the bit names then continue through all bytes upto byte B13? (B13 being bits "bit104-"bit111")
Have i understood this correctly? that i can address 112 individual bits within all the variables from "Bit0" upto "Bit111" ?????
Thanx in advance, i hope i've understood this correctly, and/or it helps others understand it too ;-)
I was reading the info about the W (word) and B(byte) working variables and pondered a few things....
It states "There are 14 or more general purpose byte variables. These byte variables are labelled b0, b1 etc"
So, is it 14 bytes? "or more"? does it depend on the chip type?
It then shows a map where W0 to W6 are made up up bytes paired together:
e.g.
W0 = b1,b0
W1 = b3,b2
W2 = b5,b4
W3 = b7,b6
W4 = b9,b8
W5 = b11,b10
W6 = b13,b12
So far, so good, but is there anything like W7 or beyond?
Then, the bytes are shown broken down to bit level.
e.g.
b0 = bit7: bit6: bit5: bit4: bit3: bit2: bit1: bit0
b1 = bit15: bit14: bit13: bit12: bit11: bit10: bit9: bit8
M2, X1 and X2 parts also support bit16-bit31 (b2-b3)
Do the bit names then continue through all bytes upto byte B13? (B13 being bits "bit104-"bit111")
Have i understood this correctly? that i can address 112 individual bits within all the variables from "Bit0" upto "Bit111" ?????
Thanx in advance, i hope i've understood this correctly, and/or it helps others understand it too ;-)