1-20-11 - Assembly Language Programming 1 High-level vs....

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

View Full Document Right Arrow Icon
1 Assembly Language Programming
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 High-level vs. Assembly language Consider the following statements 1. a = x + y – z 2. if x > y then x:= x + y else x:= x - y HLL (High Level Language) programs are machine independent. They are easy to learn, easy to use, and convenient for managing complex tasks. Assembly language programs are machine specific. It is the language that the processor directly understands. Compiler HLL Assembly Language
Background image of page 2
3 Understanding Assembly Language Let us begin with data representation. How to represent Signed integers Fractions Alphanumeric characters Review Floating point numbers Pictures? Memory 0 1 0 0 1 0 1 1 1 1 0 1 1 0 1 0 1 00 1 1 0 0 0 Can you read the contents of these memory cells?
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Visualizing instruction execution (The main concept is register-transfer operation. registers Memory 0 x r0 1 y ALU 2 z r2 3 a r3 Address data processor A register is a fast storage within the CPU load x into r1 load y into r2 a = x + y - z load z into r0 r3 ! r1 + r2 r0 ! r3 – r0 store r0 into a 500 24 -32 0
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

1-20-11 - Assembly Language Programming 1 High-level vs....

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

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