UNI CS 2420 - Roman Architecture: Activity Four (12 pages)

Previewing pages 1, 2, 3, 4 of 12 page document View the full content.
View Full Document

Roman Architecture: Activity Four



Previewing pages 1, 2, 3, 4 of actual document.

View the full content.
View Full Document
View Full Document

Roman Architecture: Activity Four

98 views


Pages:
12
School:
University of Northern Iowa
Course:
Cs 2420 - Computer Architecture
Computer Architecture Documents

Unformatted text preview:

Instruction set Design Issues what is the ML instruction format s ML instruction Opcode Dest Operand Source Operand 1 1 Which instructions to include How many Complexity simple ADD R1 R2 R3 complex e g VAX MATCHC substrLength substr strLength str looks for a substring within a string 2 Which built in data types integer floating point character etc 3 Instruction format Length fixed variable number of address 2 3 etc field sizes 4 Number of registers 5 Addressing modes supported how are the memory addresses of variables data determining Lecture 2 1 Number of Operands 3 Address 2 Address MOVE X b Y MOVE X b Y ADD X b Y Z SUB X b Y Z MUL X b Y Z DIV X b Y Z ADD X b X Y ADD X b X Y MUL X b X Y DIV X b X Y 1 Address Accumulator machine LOAD M STORE M ADD M SUB M MUL M DIV M 0 Address Stack machine 1 Address Accumulator machine LOAD B MUL C ADD A STORE D 0 Address Stack machine PUSH M POP M ADD SUB MUL DIV D A B C 3 Address 2 Address MUL D B C ADD D D A MOVE D B MUL D C ADD D A PUSH B PUSH C MUL PUSH A ADD POP D Load Store Architecture operands for arithmetic operations must be from to registers LOAD R1 B LOAD R2 C MUL R3 R1 R2 LOAD R4 A ADD R3 R4 R3 STORE R3 D Lecture 2 2 Flow of Control How do we jump around in the code to execute high level language statements such as if then else while loops for loops etc Two Paths Possible Jump over Execute TRUE if x y then FALSE then body then body if x y code of then body Jump over else Execute else body code of else body else body always after end if then body Conditional branch used to jump to else if x y Unconditional branch used to always jump end if Labels are used to name spots in the code memory if else and end if in below example Test and Jump version of the if then else Used in MIPS if bge x y else j end if else end if Lecture 2 3 Set Then Jump version of the if then else Used in Pentium if cmp x y jge else j end if else end if The cmp instruction performs x y with the result used to set the condition codes SF Sign Flag set



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Roman Architecture: Activity Four and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Roman Architecture: Activity Four and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?