Professional Documents
Culture Documents
Lesson 1
Lesson 1
Introduction
• Machine dependent
1
Why
• Memory efficient
• Faster to run
• Flexible
3
How to
• Install DOSBOX
• Run program
4
But First…
• Memory segments
• Registers
• Addressing
5
Memory segments
• Data Segment- a memory region where data elements are stored, static, alternate:
the .bss section- also a static memory section that contains data to be declared
later
• 3 groups of registers
• General Registers
• Control Registers
• Segment Registers
7
General Registers
• Further divided into 3
• Data Registers- four 32 bit registers used for arithmetic and logical operations.
AX- accumulator, used for IO and arithmetic operations
BP-helps in referencing parameter variables passed to a subroutine procedure. Used with DI and SI
8
…General Registers
9
Control Registers
10
Segment Registers
13