The opcode contains the value to use with the instruction rather than the address of this value. The '#' character is used to indicate an immediate addressing mode operand. The immediate value can be of 1,2,3, or 4 bytes.
The effective address of the instruction is specified using the # character, as listed in the following listing:
main: LD D2,#100 CMP D2,#100 BNE main