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.

APPENDIX B

Series MELPS 7700 Machine Instructions

MACHINE INSTRUCTIONS

Addressing mode

Symbol FunctIon Details IMP IMM A DIR DIR,b DIR,X DIR,Y (DIRI (DIR,xl (DlRI,V

op n #op n # op n #op n # opn # op n # op n #op n # op n # op n #

ADC Acc,C - Acc+M+C Adds the carry, the accumulator and the memory contents 692 2 6542 75 5 2 726 2 61 7 271 B 2

(Note 1,21 The result IS entered Into the accumulator When the 0

flag IS wO". binary additions IS done, and when the 0 flag IS 42 4 3 42 6 3 427 3 42 B 3 42 9 3 4210 3

'T', decimal addition IS done 69 65 75 72 61 71

AND Ace -- Accl\M ObtainS the logical product of the contents of the accumu- 292 2 25 4 2 355 2 326 2 21 7 2 31 B 2

(Note 1,21

lalor and the contents of the memory The result IS entered

mto the accumulator 424 3 426 3 42 7 3 428 3 42 9 3 42 10 3

29 25 35 32 21 31

ASL m=O Shifts the accumulator or the memory contents one bit to OA 2 I 067 2 16 7 2

(Note II [QJ~-O the left "0" IS entered Into bit 0 of the accumulator or the

m=l

memory The contents of bit 15 (bit 7 when the m flag IS 42 4 2

"1") of the accumulator or memory before shift IS entered OA

[QJ~-O mto the C flag

BBC Mb=O'> Tests the specified bit of the memory Branches when aU

(Note 3,51 the contents of the specified bit IS "0"

BBS Mb=l') Tests the specified bit of the memory Branches when all

(Note 3,51 the contents of the specified bit IS "1"

BCC C=O? Branches when the contents of the C flag IS ~O~

(Note31

BCS C=I? Branches when the contents of the C flag IS ~1"

(Note31

BEQ Z=1 " Branches when the contents of the Z flag IS "1"

(Note31

BMI N=I? Branches when the contents of the N flag IS "1"

(Note 31

BNE Z=O? Branches when the contents of the Z flag IS "0"

(Note31

BPL N=O? Branches when the contents of the N flag IS "0"

(Note 31

BRA PC-PC±offset Jumps to the address Indicated by the program counter

(Note 41 PG-PG+I plus the offset value

(carry occured)

PG-PG-I

(borrow occured)

BRK PC-PC+2 Executes software interruption 0015 2

M(SI-PG

S-S-I

M(SI-PCH

S-S-I

M(SI-PCl

S-S-I

M(si-PSH

S-S-I

M(SI-PSl

S-S-I

I-I

PCl-ADl

PCH--ADH

PG-0016

BVC V=O? Branches when the contents of the V flag IS "0"

(Note 31

BVS V=l" Branches when the contents of the V flag IS "1"

(Note 31

CLB Mb-O Makes the contents of the specified bit In the memory "0" 14 8 3

(Note 51

CLC C-O Maltes the contents of the C flag ~O" 18 2 I

CLI 1-0 Makes the contents of the I flag "0" 58 2 I

ClM m-O Makes the contents of the m flag "0" 082 I

CLP PSb-O Specifies the bit POSition In the processor status register by the bit C2 4 2

pattem of the second byte In the Instruction, and sets "0" In that bit

CLV V-O Makes the contents d the V flag MO" sa 2 I

CMP I\cc-M Compares the contents of the accumulator With the contents of C9 2 2 C5 4 2 055 2 026 2 CI 7 2 D1 8 2

(Note 1,21

the memory

42 4 3 42 6 3 427 3 42 8 3429 342 10 3

C9 C5 05 02 CI 01

252

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

Saved successfully!

Ooh no, something went wrong!