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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ASL

Arithmetic ShiH LeH

ASL

Operation

When m=O

b15

bo

When m=1

b7

bo

Description

Shifts all bits of the accumulator or memory one place to the left. Bit 0 is loaded

with o. The carry flag C is loaded from bit 15 (or bit 7 when the data length

selection flag m is set to 1) of the data before the shift.

Status flags

IPL:

N

v

m

x

D

I

Z

C

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.

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

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

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

Addressing mode Syntax

I Machine code I Bytes Cycles

Accumulator ASL A OA16 1 2

Direct ASL dd 0616, dd 2 7

Direct indexed X ASL dd, X 1616, dd 2 7

Absolute ASL mmll OE16, II, mm 3 7

Absolute indexed X ASL mmll, X 1E16, II, mm 3 8

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

A. If using the accumulator B, replace "A" with "B". 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.

61

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

Saved successfully!

Ooh no, something went wrong!