CMPE 311Instruction Sets:Characteristics and FunctionsAddressing ModesSlides modified from multiple sources1. William Stallings Computer Organization and Architecture, 7th Edition2.James Peckol, Embedded systems Design
What is an Instruction Set? The complete collection of instructions thatare understood by a CPU Machine Code Binary Usually represented by assembly codes
Elements of an Instruction Operation code (opcode)– Do this: ADD, SUB, MPY, DIV, LOAD, STOR Source operand reference– To this: (address of) argument of op, e.g.register, memory location Result operand reference– Put the result here (as above) Next instruction reference (often implicit)– When you have done that, do this: BR
Example: Simple Instruction Format(using two addresses)
Instruction Cycle State Diagram
Design Decisions (1) Operation– How many ops?– What can they do?– How complex are they? Data types (length of words, integerrepresentation) Instruction formats– Length of op code field– Length and number of addresses (e.g., implicitaddressing)
Design Decisions (2) Registers– Number of CPU registers available– Which operations can be performed on whichregisters? General purpose and specificregisters Addressing modes (see later) RISC v CISC
Instruction Types Data transfer: registers, main memory,stack or I/O Data processing: arithmetic, logical Control: systems control, transfer ofcontrol
Data Transfer Instructions Are responsible for moving data aroundinside the processor as well as brining indata or sending data out Examples: Store, load, exchange, move,set, push, pop Each Instruction should have: source and destination (memory, register,input/output port) amount of data
fig 01 16
Data Transfer Instructions Example
Arithmetic Add, Subtract, Multiply, Divide for signedinteger ( floating point and packeddecimal) – may involve data movement May include– Absolute (i.e a )– Increment (i.e a )– Decrement (i.e a--)– Negate (i.e -a)
Logical Bitwise operations: AND, OR, NOT, XOR,CMP, SET Shifting and rotating functions, e.g.– logical right shift for unpacking: send 8-bitcharacter from 16-bit word– arithmetic right shift: division and truncationfor odd numbers– arithmetic left shift: multiplication withoutoverflow
0DifferentShiftInstructionsS is sign bit
Systems Control and Execution Flow The execution flow captures the order ofevaluation/execution of each instruction– Sequential– Branch– Loop– Procedure or Function call
Branch Skip, e.g., increment and skip if zero:ISZ Reg1, cf. jumping out from loop Branch instructions: BRZ X (branch to X ifresult is zero), BRP X (positive), BRN X(negative), BRE X,R1,R2 (equal) Procedure (economy and modularity): calland return
Branch Instruction
Nested Procedure Calls
fig 01 20
fig 01 22
William Stallings Computer Organization and Architecture, 7th Edition 2.James Peckol, Embedded systems Design CMPE 311 Instruction Sets: Characteristics and Functions Addressing Modes. What is an Instruction Set? The complet
Aug 13, 2020 · exponential functions. Unit 5.1 –Exponential Functions & Their Graphs So far, this text has dealt mainly with algebraic functions, which include polynomial functions and rational functions. In this chapter, you will study two types of nonalgebraic functions –exponential funct
He then keeps counting out sets of . sets of 2 b) sets of 3 c) sets of 3 d) sets of 4 3. Draw a picture to solve the problem. Hint: Start by drawing a circle and placing the correct number of dots in the circle. . The picture shows 12 objects divided into
Sets/gets the join delay on Rx window 2. AT RX1DL. Sets/gets the delay of the Rx window 1. AT RX2DL. Sets/gets the delay of the Rx window 2. AT RX2DR [ datarate] where X [0:7] Sets/gets data rate of the Rx window 2. AT RX2FQ [ freq] where freq in Hz Sets/gets the frequency of the Rx window 2. AT TXP [ txpow] where txpow [0:7] Sets/gets the .
SQL Aggregate Functions Using the SQL aggregate functions, you can determine various statistics on sets of values. You can use these functions in a query and aggregate expressions in the SQL property of a QueryDef object or when creating a Recordset object based on an SQL query. Avg Function Count Function First, Last Functions Min, Max Functions
Polynomial and Sinusoidal Functions Lesson #1: Polynomial Functions of Degrees 0,1, and 2 333 Investigating Polynomial Functions of Degree One The graphs of four polynomial functions of degree one are shown. a) The graphs shown have many characteristics in common. Make a list of the common characteristics in the space below.,1 "V - i Yi l-4-i-b .
PLC-5 Instruction Set Alphabetical Listing PLC-5 Instruction Set Alphabetical Listing For this Instruction: See Page: For this Instruction: See Page: For this Instruction: See Page: For this Instruction: See Page: ABL 17-51 CMP 3-3 JSR 13-12 RES 2-25 ACB 17-71 COP 9-20 LBL 13-5 RET 13-12 AC
complex solutions. Students also graph quadratic functions and analyze characteristics of those functions, including end behavior. They write functions for various situations and build functions from other functions, using operations as needed. Given bivariate data, students fit a function to the data and use it to make predictions. KEY STANDARDS
Cambridge IGCSE ACCOUNTING 0452/22 Paper 2 May/June 2020 MARK SCHEME Maximum Mark: 120 Published Students did not sit exam papers in the June 2020 series due to the Covid-19 global pandemic. This mark scheme is published to support teachers and students and should be read together with the question paper. It shows the requirements of the exam. The answer column of the mark scheme shows the .