Manual
62 | P a g e
ex: [4116] indicates the value of the register at address 4116.
[ ]
MSB
Square brackets followed by an
MSB
means to use the most-significant byte of the register.
ex: if the value at register 4116 is 0x04B1 (decimal 1201):
[4116] = 0x04B1,
then
[4116]
MSB
= 0x04
[ ]
LSB
Square brackets followed by an
LSB
means to use the least-significant byte of the register.
ex: if the value at register 4116 is 0x04B1 (decimal 1201):
[4116] = 0x04B1,
then
[4116]
LSB
= 0xB1
( )
Parentheses refer to bits within the register.
For example: [4116](0) means ―the 0th bit of the value in register 4116.
So if 4116 held the value 1 (0x0001 hex) then [4116](0) would be a 1. [4116](1…15)
would all be 0s.
…
Ellipses represent ranges of values or indices.
For example to refer to the first three bits of a register you may see:
[4116](0…3) which signifies the first three bits of the value of register 4116.
You may also see spans of registers as:
[4116…4120] which refer to registers 4116 to 4120 inclusive.
Arithmetic
+
Add two numbers together
-
Subtract two numbers (or negate the value on the right)
/
Divide two numbers (integer implied)
*
Multiply two numbers (integer implied)
Logical
<< x
Binary shift left. Shift the value x binary digits to the left. This is equivalent to multiplying
the decimal number by 2
x
. Ex:
[4116] = 0x0001
Then
[4116] << 1 = 0x0002.
>> x
Binary shift right. Shift the value x binary digits to the right. This is equivalent to dividing
the decimal number by 2
x
.










