25.04.2020 Views

1989_MELPS_7700_Software_Manual

Mitsubishi MELPS 7700 series microcomputer instruction set and addressing mode handbook

Mitsubishi MELPS 7700 series microcomputer instruction set and addressing mode handbook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ROL Rotate One Bit Left ROL

Operation

If m=O,

If m=1,

Description

The carry flag C is linked to the accumulator or memory, and the combined

contents are rotated by 1 bit to the left.

Bit 0 of the accumulator or memory is loaded with the content of the carry flag

C before execution of this instruction, and the carry flag C is loaded with the

content of bit 15 (or bit 7 if the data length selection flag m is set to 1) of the

accumulator or memory before execution of this instruction.

Status flags

IPL :

N

V

m

x

o

I

Not affected.

Set to 1 when bit 15 (or bit 7 if the data length selection flag m is set to 1) of

the operation result is 1. Otherwise, cleared to O.

Not affected.

Not affected.

Not affected.

Not affected.

Not affected.

Z Set to 1 when the result of operation is O. Otherwise, cleared to O.

C

Set to 1 when bit 15 (or bit 7 if the data length selection flag m is set to 1) before

execution of the instruction is 1. Otherwise, cleared to 0

Addressing mode Syntax Machine code Bytes Cycles

AccufTIulator ROL A 2A16 1 2

Direct ROL dd 2616, dd 2 7

Direct indexed X ROL dd, X 3616, dd 2 7

Absolute ROL mmll 2E16, II, mm 3 7

Absolute indexed x ROL mmll, X 3E16, II, mm 3 8

(Note1) The accumulator addressing mode's specification in this table applies when using the accumulator

A. If using the accumulator 8, replace "A" with "8". In this case, "4216" is added at the beginning

of the machine code, the bytes-count increases by 1 and the cycles-count increases by 2.

128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!