Lecture 4
Lecture 4
And
Addressing Modes
Course Teacher:
Deboky Saha
Contractual Lecturer
Department of Computer Science & Engineering
BRAC University.
B0000
A0000
90000 8000:FFFF
80000 One Segment
8000:0000
70000
60000
A0000
90000
80000 one segment
70000
60000
8000:0250
50000
0250
40000
30000 8000:0000
20000
10000
seg ofs
00000
Segment 1
starts at address 0001:0000 00010 h
ends at address 0001:FFFF 1000F h
00001H 00000H
00003H 00002H
00005H 00004H
. .
. .
FFFFFH FFFFFH
bank
A0
Distinct forms:
Direct
Indirect
Relative
27 CSE – 341 : Microprocessors
BRAC University
2. Addressing Program Codes in Memory
Near Branch:
If the branch is in same segment (code segment) and only
the offset (IP) changes then it is called near branch
Far Branch:
CALL 1000:0000
or CALL doagain ; doagain is a procedure in code
or indirect addressing
OUT DX, AL ; DX contains the address of I/O port
44