=== ================== === === Ror – Rotate right === === ================== === Format 011.bbb.10 Description Rotate the contents of the accumulator or the memory location right by one bit position. The carry goes into bit 7. Bit 0 falls into the carry. This is a 9-bit rotation. ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ │ C │ -> │ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │ -> │ C │ └───┘ └───┴───┴───┴───┴───┴───┴───┴───┘ └───┘ Addressing Modes ┌─────────┬────────────┬──────────┬─────────────┬─────┬─────┬────────────────┬────────────────┐ │ Acc │ 011.010.10 │ 6a │ Ror │ bbb │ #2 │ 0110.0010 = 62 │ 0000.1000 = 08 │ │ Zpg │ 011.001.10 │ 66 ab │ Ror ab │ bbb │ #5 │ 0110.0010 = 62 │ 0000.0100 = 04 │ │ Abs │ 011.011.10 │ 6e cd ab │ Ror abcd │ bbb │ #6 │ 0110.0010 = 62 │ 0000.1100 = 0c │ │ Zpg,x │ 011.101.10 │ 76 ab │ Ror ab,x │ bbb │ #6 │ 0110.0010 = 62 │ 0001.0100 = 14 │ │ Abs,x │ 011.111.10 │ 7e cd ab │ Ror abcd,x │ bbb │ #7? │ 0110.0010 = 62 │ 0001.1100 = 1c │ └─────────┴────────────┴──────────┴─────────────┴─────┴─────┴────────────────┴────────────────┘ Flags NV-BDIZC • - ••
Fehlerhinweise, Kommentare und Anregungen sind mir herzlich willkommen.
Letzte Aktualisierung: 2017-02-23