22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

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.

Table 5-4. 68000 Instruction Set Summary<br />

Opcode Size Source Destination Operation<br />

ABCD B D D Binary coded decimal add source to destina-<br />

B M M tion with extend<br />

ADD BWL Gs D Twos complement binary add source to des-<br />

BWL D Gm-R tination with result stored in destination<br />

ADDA WL Gs A<br />

ADDI BWL I Gd-A<br />

ADDQ BWL Q3 Gd<br />

ADDX BWL 0 0 Twos complement binary add source to des-<br />

BWL M M tination with extend<br />

AND BWL Gs-A 0 Logical AND source to destination<br />

0 Gm-R<br />

ANOI BWL I Gd-A<br />

ANOI xx B I xx Logical AND to condition code or status<br />

register; status register is privileged<br />

ASL BWL Q3 0 Arithmetic shift left data register; shift count<br />

BWL 0 0 is in source<br />

W Gd-R Shift memory left one bit position only<br />

ASR BWL Q3 0 Arithmetic shift right data register; shift count<br />

BWL 0 0 is in source.<br />

W Gd-R Shift memory right one bit position only<br />

Bcc BW 08,16 Branch relative if condition is true<br />

BCHG L I 0 Test the bit number specified by the source<br />

B I Gd-R and set the zero condition according to its<br />

L 0 0 state; then change the bit to the opposite<br />

B 0 Gd-R state<br />

BCLR L I D Test the bit number specified by the source<br />

B I Gd-R and set the zero condition according to its<br />

L 0 0 state; then clear the bit to zero<br />

B 0 Gd-R<br />

BSET L I 0 Test the bit number specified by the source<br />

B I Gd-R and set the zero condition according to its<br />

L 0 0 state; then set the bit to one<br />

B 0 Gd-R<br />

BSR BW 08,16 Branch relative to subroutine; 32-bit return<br />

address pushed onto stack<br />

BTST L I 0 Test the bit number specified by the source<br />

B I Gd-R and set the zero condition according to its<br />

L 0 D state<br />

B 0 Gd-R<br />

CHK W Gs-A 0 Destination compared against zero and content<br />

<strong>of</strong> source; trap if less than 0 or greater<br />

than source<br />

CLR BWL Gd-A Clear the destination to zero<br />

CMP BWL Gs D Subtract source from destination and set<br />

CMPA BWL Gs A condition codes<br />

CMPI BWL I Gd-A<br />

CMPM BWL M+ M+<br />

OBcc W 016 0 Continue if condition is true; if false, decrement<br />

destination and branch relative if not<br />

zero<br />

OIVS W Gs-A 0 Divide 32-bit destination by 16-bit source<br />

DIVU W Gs-A D and store 16-bit quotient and remainder in<br />

the destination; signed and unsigned<br />

EOR BWL 0 Gd-A Logical exclusive-or source to destination<br />

EORI BWL I Gd-A<br />

EORI xx B I xx Logical exclusive-or to condition codes or<br />

status register; status register is privileged

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

Saved successfully!

Ooh no, something went wrong!