• Aucun résultat trouvé

FUNCTIONS OF MELPS 8-41 SLAVE MICROCOMPUTERS

Description

Clears flag Fl and resets it to O.

Complements contents of flag Fl.

Adds data n to contents of register A and sets carry flags to 1 if there is an overflow; otherwise resets carry flags to O. The result is stor~d In register A.

Adds contents of register Rr to contents of register A and set carry flags to 1 if there is an overflow; otherwise resets carry flags to O. The result is stored in register Ii\.

Adds contents of register A and contents of memory location of current page whose address is in register Rr and sets carry flags to 1 if there is an overflow; otherwise resets carry flags to O. The result is stored in register A.

Adds carry and data n to contents of register A and sets carry flags to 1 if there is an overflow; otherwise resets carry flags to O. The result is stored in register A.

Adds carry and contents of register Rr to contents of register A and sets carry flags to 1 if there is an overflow; otherwise resets carry flags to O. The result is stored in register A.

Adds carry and contents of memory location of current page whose address is in register Rr to contents of register A and sets carry flags to 1 if there is an overflow; otherwise resets carry flags to O. The result is stored in register A.

Logical product of contents of register A and data n is stored in register A.

Logical product of contents of register A and contents of register Rr is stored in register A.

Logical product of contents of register A and contents of memory location of current page whose address is in register Rr is stored in register A.

Logical sum of contents of register A and data n is stored in register A.

Logical sum of contents of register A and contents of register Rr is stored in register A.

Logical sum of contents of register A and contents of memory location of current page whose address is in register Rr is stored in regis-terA.

Exclusive OR of contents of register A and data n is stored in register A.

Exclusive OR of contents of re,glster A and contents of register Rr is stored in register A.

Exclusive OR of contents of register A and contents of memory location of current page whose address is in register Rr. is stored in reg-Ister A.

Increments contents of register A by 1. The result is stored in register A.

Decrements contents of register A by 1. The result is stored in register A.

MITSUBISHI .... ELECTRIC

5-17

II

S

Type Mnemonic

MELPS 8-41 SLAVE MICROCOMPUTERS

07060S 04

FUNCTIONS OF MELPS 8-41 SLAVE MICROCOMPUTERS

Instruction code

Affected carry

C AC Note

0 0

1

0

0

MELPS 8-41 SLAVE MICROCOMPUTERS

FUNCTIONS OF MELPS 8-41 SLAVE MICROCOMPUTERS

Description

Clears contents of register A and resets to O.

Forms I's complement of register A and stores it in register A.

Contents of register A are converted to binary coded decimal notation and stored in register A.

Exchanges contents of bits 0-3 of register A with contents of bits 4-7 of register A.

Shifts contents of register A left one bit. MSB A7 is rotated to LSB

Arl.

Shifts contents of register A left one bit. MSB A7 is shifted to carry flag a~d carry flag is shifted to LSB

1.0.

Shifts contents of register A right one bit. LSB

Arl

is rotated to MSB A7.

Shifts contents of register A right one bit. LSB

Arl

is shifted to carry flag and carry flag is shifted to MSB A7.

Increments contents of register Rr by 1. The result is stored in register Rr.

Increments contents of memory location of current page whose address is in register Rr by 1.

Decrements contents of register Rr by 1. The result is stored in register Rr.

Jumps unconditionally to address m.

Jumps to memory location of current page whose address is in register A; but when instruction executed was in address 255, jumps to next page.

Jumps to address m of current page when bit b of register A is 1 . Executes next instruction when bit b of register A is O.

Jumps to address m of current page when IBF is O.

Jumps to address m of current page when OBF is 1.

Jumps to address m of current page when timer/counter overflow flag is 1; flag is cleared after execution.

Decrements contents of register Rr by 1 ; jumps to address m of current page when result is not O.

jumps to address m of current page if carry flag is 1.

MITSUBISHI .... ELECTRIC

.5-19

II

I,S

Type Mnemonic

MELPS 8-41 SLAVE MICROCOMPUTERS

0

7

0

6

0

5

0

4

FUNCTIONS OF MELPS 8-41 SLAVE MICROCOMPUTERS

Instruction code

.,

Affected carry

C AC Note

MELPS 8-41 SLAVE MICROCOMPUTERS

FUNCTIONS OF MELPS 8-41 SLAVE MICROCOMPUTERS

Description

Jumps to address m of current page if carry flag is O.

Jumps to address m of current page when contents of register A are O.

Jumps to address m of current page when contents of register A are not O.

Jumps to address m of current page when flag To is 1.

Jumps to address m of current page when flag To is O.

Jumps to address m of current page when flag T1 is l.

Jumps to address m of current page when flag T1 is O.

Jumps to address m of current page when flag Fo is 1.

Jumps to address m of current page when flag F1 is 1.

Calis subroutine from address m. The program counter and the high-order 4 bits of PSW are stored in address indicated by stack pOinter (SP). SP is incremented by 1 and m is transferred to PCo-PC1O•

SP is decremented by 1. Program counter is restored to saved setting in stack indicated by stack pOinter. PSW4-PSW7 are not changed and interrupt disable is maintained.

SP is decremented by 1. Program counter and high-order 4 bits of PSW are restored with saved data in stack indicated by stack pOinter.

Interrupt becomes enabled after execution is completed.

Loads contents of Pp to register A.

Output latches contents of register A to Pp.

Logical product of contents of Pp and data n; outputs result to Pp.

Logical sum of contents of Pp and data n; outputs result to Pp.

Enters contents of data bus buffer (DBB) into register A and resets IBF.

Outputs contents of register A to data bus buffer (DBB) and sets OBF.

MITSUBISHI .... ELECTRIC

5-21

III

Documents relatifs