Escolar Documentos
Profissional Documentos
Cultura Documentos
1
8ae|d Nooshabad|
ELE62041
H|croprocessors and |nterfac|ng
Lecture 2: 6-Language Rev|ew - 1
http:||webct.edtec.unsw.edu.au|
Harch, 200
8ae|d Nooshabad|
sae|dunsw.edu.au
ELE62041 |ec02-6-|anguage-| .2
8ae|d Nooshabad|
0verv|ew
6 8yntax
|mportant T|db|ts |n 6
Po|nters
Pass|ng Arguments to Funct|ons
ELE62041 |ec02-6-|anguage-| .3
8ae|d Nooshabad|
Rev|ew: what |s 8ubject about?
||0 system Processor
6omp||er
0perat|ng
8ystem
(w|ndows XP}
App||cat|on (Netscape}
0|g|ta| 0es|gn
6|rcu|t 0es|gn
|nstruct|on 8et
Arch|tecture
6oord|nat|on of many levels of abstraction
0atapath & 6ontro|
trans|stors
Hemory
hardware
8oftware
Assemb|er
ELE62041
ELE62041 |ec02-6-|anguage-| .4
8ae|d Nooshabad|
Rev|ew: Programm|ng Leve|s of Representat|on
h|gh Leve| Language
Program (e.g., 6}
Assemb|y Language
Program (e.g. ARH}
Hach|ne Language
Program (ARH}
Corlro| 3|gra| 3pec|l|cal|or
ompiler
Assembler
Machine lnterpretation
temp = v[kj;
v[kj = v[k+1j;
v[k+1j = temp;
|dr r0 , [r2, #0j
|dr r1 , [r2, #4j
str r1 , [r2, #0j
str r0 , [r2, #4j
1110 0101 1001 0010 0000 0000 0000 0000
1110 0101 1001 0010 0000 0000 0000 0100
1110 0101 1000 0010 0001 0000 0000 0000
1110 0101 1000 0010 0001 0000 0000 0100