The 8051 logical instructions perform Boolean operations (AND, OR, Exclusive OR, and NOT) on bytes of data on a bit-by-bit basis. If the accumulator contains 00110101B, then the following AND logical instruction ANL A, #01010011B Leaves the accumulator holding 00010001B. This is illustrated below. 01010011 (immediate data) In 8051 Microcontroller there is 25 different instructions under the Logical Group. In total there are 49 opcodes. The Carry Flag (CY) affects only by instruction RRC and RLC. In the following table, we will see the Mnemonics, Lengths, Execution Time in terms of the machine cycle, Number of Opcodes etc. Examples George John The ORL instruction performs a bitwise logical OR operation on the specified operands, the result of which is stored in the destination operand. Note When this instruction is used to modify an output port, the value used as the port data will be read from the output data latch, not the input pins of the port. See Also: ANL, XRL THE 8051 CORE INSTRUCTION SET All commands in alphabetic order: ACALL addr11 DIV AB LJMP addr16 RETI CPL A JNC rel8 ORL C,bit XCH A,
© 2024 Created by California Film Foundation. Powered by
You need to be a member of California Film Foundation to add comments!
Join California Film Foundation