=== ========================= === === Lsr – Logical shift right === === ========================= === Format 101.bbb.10 Description Move the contents of the accumulator of the memory location right by one bit position. 0 comes in on the left. Bit 0 falls into the carry. The result is deposited in the source, i.e. either accumulator or memory. ┌───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ 0 -> │ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │ -> │ C │ └───┴───┴───┴───┴───┴───┴───┴───┘ └───┘ Addressing Modes ┌─────────┬────────────┬──────────┬─────────────┬─────┬─────┬────────────────┬────────────────┐ │ Acc │ 010.010.10 │ 4a │ Lsr │ bbb │ #2 │ 0100.0010 = 42 │ 0000.1000 = 08 │ │ Zpg │ 010.001.10 │ 46 ab │ Lsr ab │ bbb │ #5 │ 0100.0010 = 42 │ 0000.0100 = 04 │ │ Abs │ 010.011.10 │ 4e cd ab │ Lsr abcd │ bbb │ #6 │ 0100.0010 = 42 │ 0000.1100 = 0c │ │ Zpg,x │ 010.101.10 │ 56 ab │ Lsr aa,x │ bbb │ #6 │ 0100.0010 = 42 │ 0001.0100 = 14 │ │ Abs,x │ 010.111.10 │ 5e cd ab │ Lsr abcd,x │ bbb │ #7? │ 0100.0010 = 42 » 0001.1100 = 1c │ └─────────┴────────────┴──────────┴─────────────┴─────┴─────┴────────────────┴────────────────┘ Flags NV-BDIZC 0 - ••
Fehlerhinweise, Kommentare und Anregungen sind mir herzlich willkommen.
Letzte Aktualisierung: 2017-02-23