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.

LOA Load Accumulator from Memory LOA

Operation

Acc ~ M

Description

Loads the contents of memory into the accumulator.

Status flags

IPL :

N

V

m

x

D

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

Not affected.

Addressing mode Syntax Machine code Bytes Cycles

Immediate LOA A, #imm A916, imm 2 2

Direct LOA A, dd A516, dd 2 4

Direct indexed X LDA A, dd, X B516, dd 2 5

Direct indirect LDA A, (dd) B216, dd 2 6

Direct indexed X indirect LDA A, (dd, X) A116, dd 2 7

Direct indirect indexed Y LDA A, (dd), Y B116, dd 2 8

Direct indirect long LDAL A, (dd) A716, dd 2 10

Direct indirect long indexed Y LDAL A, (dd), Y B716, dd 2 11

Absolute LOA A, mmll AOI6, II, mm 3 4

Absolute indexed X LOA A, mmll, X BDI6, II, mm 3 6

Absolute indexed Y LDA A, mmll, Y B916, II, mm 3 6

Absolute long LDA A, hhmmll AFI6, II, mm, hh 4 6

Absolute long indexed X LDA A, hhmmll, X BFI6, II, mm, hh 4 7

Stack pointer relative LDA A, nn, S A316, nn 2 5

Stack pointer relative LOA A, (nn, S), Y B316, nn 2 8

indirect indexed Y

(Notel) 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.

(Note2) When operating on 16-bit data in the immediate addressing mode with the data length selection flag

rn set to 0, the bytes-count increases by 1.

94

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

Saved successfully!

Ooh no, something went wrong!