Beruflich Dokumente
Kultur Dokumente
Computer Language
Machine Codes
010010001010100101010 in binary
1234 FFAB 1234 H in hexadecimal
Why Assembly?
Assembly has several features that make it a good choice many
some situations.
1. It's fast Assembly programs are generally faster than
programs created in higher level languages. Often,
programmers write speed-essential functions in assembly.
2. It's powerful You are given unlimited power over your
assembly programs. Sometimes, higher level languages have
restrictions that make implementing certain things difficult.
3. It's small Assembly programs are often much smaller
than programs written in other languages. This can be very
useful if space is an issue.
MASM http://www.masm32.com/.
TASM Made by Borland, a commercial product
NASM http://sourceforge.net/projects/nasm/
Steps to Create a
Program
MASM32
TASM
Emulator
10
Emu8086
11
Individual Assignment
emu8086 (trial)
http://www.emu8086.com/
12
Group assignment
13
14
15
Memory
Address
16
Machine
codes
Writing Structure
NEXT:
; comment
1=
label, followed by :
2= opcode
3= operand
4= comment, preceded with;
17
Writing Structure
Try it in emulator!
Click View and look the changes in every menu list:
20
registers
Data
Screen
Flags
etc
21
22
ASCII Data
23
24
BCD Data
25
26
Byte-Sized Data
27
28
29
Word-sized Data
30
Word-sized Data
Fig 1.11(a) & (b) shows the weight of each bit position in a
word of data
31
32
33
34
Doubleword-sized Data
35
36
37
Real Numbers
38
39
40
41
Reference/Text Book
42