












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The lecture slides of the Microcomputer Structures are very easy to understand and the main points are:Instruction Set Two, Understand and Effectively, Data Movement, Arithmetic Instructions, Remaining Instructions, Data Movement, Arithmetic Operations, Logical Operations, Shift Operations, Bit Manipulations
Typology: Slides
1 / 20
This page cannot be seen from the preview
Don't miss anything!













9/20/6 Lecture 3 - Instruction Set - Al 1
9/20/6 Lecture 3 - Instruction Set - Al 2
9/20/6 Lecture 3 - Instruction Set - Al 4
Both can be data registers At least one must be a data register
9/20/6 Lecture 3 - Instruction Set - Al 5
Speed is faster than ADD #4, D
9/20/6 Lecture 3 - Instruction Set - Al 7
DIVU
9/20/6 Lecture 3 - Instruction Set - Al 8
MULS, MULU – multiply signed or unsigned
SUB, SUBA, SUBQ, SUBI, SUBX – the subtractions equivalents of ADD
NEG – Take the 2’s complement of target NEGX – Two’s complement with X bit EXT – sign extend low-order byte for word of destination
9/20/6 Lecture 3 - Instruction Set - Al 10
9/20/6 Lecture 3 - Instruction Set - Al 11
ASL Dx,Dy shift Dy by Dx bits ASL #, Dy shift Dy by #data bits ASL
9/20/6 Lecture 3 - Instruction Set - Al 13
These instructions test data and set the CCR CMP – compare source and destination operands CMPA – compare address – second operands is an address register CMPM – compare memory with memory CMPI – compare register or memory, i.e.
9/20/6 Lecture 3 - Instruction Set - Al 14
Bcc
9/20/6 Lecture 3 - Instruction Set - Al 16
BSR GetChar
9/20/6 Lecture 3 - Instruction Set - Al 17
In calling program BSR GET_DATA
GET_DATA MOVE.W MOVE.L CCR,D1-D7/A0-(A7)-A6, - (A7)
MOVE.L RTR (A7)+, D1-D7/A0-A
Note that RTR restores the CCR.
9/20/6 Lecture 3 - Instruction Set - Al 19
Loads return address (on the top of the stack) in to program counter
Loads CCR from top of stack (1 word) And then loads return address
Problem 2-52 Write a sequence of instructions to reverse the order of the bits of register D0. That is D0(0) D0(31) D0(1) D0(30) D0(2) D0(29) … D0(31) D0(0) 9/20/6 Lecture 3 - Instruction Set - Al 20