asm1-intro - Assembly Language Lecture 1: I ntroduction...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Assembly Language Lecture 1: I ntroduction Motaz K. Saad Spring 2009 I ntroduction • Computer Architecture includes the design of: – I nstr uction Set Ar chitectur e ( programmer's view) – M achine Or ganization ( logic designer’s view ). 2 Computer Design Pr ogr ammer ’s View Logic Designer ’s View I nstr uction Set Design M achine Or ganization Machine Language Machine I mplementations Computer I nterface Hardware Components Compiler/System View Logic Designer’s View 3 Computer Architecture Design I/O system Instr. Set Proc. Compiler Operating System Application Digital Design Instruction Set Architecture Datapath & Control Software Hardware Circuit Design 4 Architectures • x86 (including I ntel I A-32) • HP/Compaq Alpha AXP • Sun SPARC • Sun UltraSPARC • Motorola 68000 • PowerPC • PowerPC64 • ARM • Hitachi SuperH • I BM S/390 and zSeries • MI PS • HP PA-RI SC • I ntel I A-64 • AMD x86-64 • H8/300 • V850 and CRI S. 5 Below Your Program High-level language program in C void swap(int v[ ], int k) { int temp; temp = v[k]; v[k] = v[k+1]; v[k+1] = temp; } swap: muli $2, $5, 4 add $2, $4, $2 lw $15, 0($2) lw $16, 4($2) sw $16, 0($2) sw $15, 4($2) jr $31 Compiler Assembly language Program (for MIPS) 00000000101000010000000000011000 00000000100011100001100000100001 10001100011000100000000000000000 10001100111100100000000000000100 10101100111100100000000000000000 10101100011000100000000000000100 00000011111000000000000000001000 Assembler Binary machine language program (for MIPS) 6 Try it out !Try it out !...
View Full Document

This note was uploaded on 07/09/2011 for the course ECON 101 taught by Professor Maldivino during the Spring '11 term at Ahmadu Bello University.

Page1 / 20

asm1-intro - Assembly Language Lecture 1: I ntroduction...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online