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.

Instructions

4.1.3 Bit Manipulation Instructions

The bit manipulation instructions set the specified bits of the processor status register or

memory to "1" or "0".

The following table summarizes the bit manipulation instructions supported:

Category Instruction Description

Bit manipulation ClB Clears the specified memory bit to "0".

SEB

ClP

SEP

Sets the specified memory bit to "I".

Clears the specified bit of the processor status register's lower

byte (PSL) to "0".

Sets the specified bit of the processor status register's lower

byte (PSL) to "I".

4.1.4 Flag Manipulation Instructions

The flag manipulation instructions set to "1" or clear to "0" the C, I, m and V flags.

The following table summarizes the flag manipulation instructions supported:

Category Instruction Description

Flag setting ClC Clears the contents of carry flag to "0".

SEC Sets the contents of carry flag to "1 ".

ClM Clears the contents of data length selection flag to "0".

SEM Sets the contents of data length selection flag to "1 ".

CLI Clears the contents of interrupt disable flag to "0".

SEI Sets the contents of interrupt disable flag to "1 ".

ClV Clears the contents of overflow flag to "0".

4.1.5 Branching and Return Instructions

The branching and return instructions enable changing the program execution sequence.

The following table summarizes the branching and return instructions:

I

Category Instruction Description

Jump JMP Sets a new address in the program counter and jumps to the new

address.

BRA

JSR

Jumps to the address obtained by adding an offset value to the

contents of the program counter.

Saves the contents of the program counter to the stack and then

jumps to the new address.

55

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

Saved successfully!

Ooh no, something went wrong!