overview - CSE 379 Microprocessor System Overview...

Info iconThis preview shows pages 1–4. 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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSE 379 Microprocessor System Overview Microprocessor System Overview & Stored Program Computer ¡ aka von Neumann Machine ¢ Named after John von Neumann ¡ Instructions and data are stored together in memory & Assembly Language Programs ¡ Consist of primitive instructions performing tasks such as ¢ Addition ¢ Subtraction ¢ Compare ¢ Shift ¢ Rotate ¢ Logical Operations ¢ Load £ Transfers data from memory to the processor ¢ Store £ Transfers data from the processor to memory ¢ Branching £ Allows instructions to be selectively executed based on data £ Provides decision making capability ¢ Jumps £ Allows for incorporation of subroutines & Machine Language vs. High-Level Languages ¡ Machine Language ¢ The 1’s & 0’s that the processor understands ¡ Assembly Language ¢ Symbolic representation of machine language ¢ Mnemonics represent opcodes ¢ Labels represent memory locations ¡ High-Level Languages ¢ Closer to natural language ¢ Takes burden off programmer ¢ Objective £ Reduce time & effort needed to write software ¢ Object-Oriented vs. Structured ¢ Examples & Bridging the Gap ¡ High-level language are compiled to assembly and ultimately to machine language ¡ How do we go from high-level languages to machine language? ¢ Compiler ¢ Assembler ¡ There is a direct correlation of a single line of machine code to assembly language & Machine Language vs. Assembly Language ¡ Machine language consists of 1’s and 0’s ¡ There is a direct correlation of a single line of machine code to assembly language ¡ Assembly language uses mnemonics ¢ Symbolic names describing the task performed by the instruction ¢ Increases readability & High-level language are compiled to assembly and ultimately to machine language & Differences between High-Level & Assembly Language ¡ Variables / Registers ¡ Data Structures ¡ Objects ¡ Complexity, Type, & Number of Instructions ¢ Loops ¢ Conditional Statements £ If…Then…Else £ Case / Switch ¢ Subroutine / Function Calls ¢ Other Complex Instructions £ Division £ Multiplication & C Program int main() { int temp[10]; int i, sum, min, max; sum=0; min=temp[0]; max=temp[0]; for (i=0; i<10; i++) { if (temp[i] < min) {min = temp[i];}; if (temp[i] > max) {max = temp[i];}; sum = temp[i] + sum; } } & ARM Assembly Language sub r13,r13,#0x28 ldr r2,[r13,#0] ldr r3,[r13,#0] mov r0,#0 ldr r1,[r13,r0,lsl #2] cmp r1,r2 bge 0x80c8 ; (main + 0x20) mov r2,r1 cmp r1,r3 ble 0x80d4 ; (main + 0x2c) mov r3,r1 add r0,r0,#1 cmp r0,#0xa blt 0x80b8 ; (main + 0x10) mov r0,#0 add r13,r13,#0x28 & ARM Machine Language 11100010010011011101000000101000 11100101100111010010000000000000 11100101100111010011000000000000 11100011101000000000000000000000 11100111100111010001000100000000 11100001010100010000000000000010 10101010000000000000000000000000 11100001101000000010000000000001 11100001010100010000000000000011 11011010000000000000000000000000...
View Full Document

This document was uploaded on 11/03/2011 for the course CSE 380 at SUNY Buffalo.

Page1 / 12

overview - CSE 379 Microprocessor System Overview...

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

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