You are on page 1of 16

BACAAN DOA SEBELUM

BELAJAR
TAZKIRAH & PERINGATAN

TANDA KEMUNCULAN AL-MAHDI


1. Turunnya salji di Arab 8. Kejatuhan ekonomi dunia, manusia
2. Sg Eufrat mengering menggunakan emas dan perak
3. Ancaman perang terjadi 9. Terjadi tahun-tahun bencana:
4. Perang di mana-mana • Gempa bumi
5. Wafatnya sultan Arab dan • Tsunami
keturunannya saling berebut • Gunung berapi meletus
kekuasaan Mekah dan Madinah
6. Orang yang disayangi orang Sumber UZMA
beriman mati dibunuh
7. Fitnah di negeri Syam (Jordan,
Palestin, Syria, Lebanon) sudah
membara
CHAPTER 6 PART 2
BIU REGISTERS AND EMULATOR 8086 (DIRECTIVE ASSEMBLER)
8086 PROGRAMMING MODEL

8 bit
0
uP
Memory
20 bit address

220-1

8 bit data
8086
Microprocessor ARCHITECTURE

Execution Unit (EU) Bus Interface Unit (BIU)

EU executes instructions that have BIU fetches instructions, reads data


already been fetched by the BIU. from memory and I/O ports, writes
data to memory and I/ O ports.
BIU and EU functions separately.
20
8086
Microprocessor Architecture BUS INTERFACE UNIT (BIU)

Dedicated Adder to generate 20


bit address

Four 16-bit segment


registers

Code Segment (CS)


Data Segment (DS)
Stack Segment (SS)
Extra Segment (ES)
8086
Bus Interface Unit (BIU)
Microprocessor
ARCHITECTURE
Segment Instruction Pointer
Registers
➢ 16-bit

➢ Always points to the next instruction to be


executed within the currently executing
code segment.

➢ So, this register contains the 16-bit offset


address pointing to the next instruction
code within the 64Kb of the code segment
area.

➢ Its content is automatically incremented as


the execution of the next instruction takes
place.

8
8086
Microprocessor ARCHITECTURE Bus Interface Unit (BIU)

Segment Code Segment Register


Registers
➢ 16-bit

➢ CS contains the base or start of the current


code segment; IP contains the distance or
offset from this address to the next
instruction byte to be fetched.

➢ BIU computes the 20-bit physical


address by logically shifting the
contents of CS 4-bits to the left and
then adding the 16-bit contents of IP.

➢ That is, all instructions of a program are


relative to the contents of the CS register
multiplied by 16 and then offset is added
provided by the IP.
8086
Microprocessor ARCHITECTURE Bus Interface Unit (BIU)

Segment Extra Segment Register


Registers

➢ 16-bit

➢ Points to the extra segment


in which data (in excess of
64K pointed to by the DS) is
stored.

➢ String instructions use the ES


and DI to determine the 20-bit
physical address for the
destination.
11
EMULATOR 8086 (FOR DIRECTIVE)
• CS = 0700
• Shift CS = 07000
• IP=0100
• 20bit physical
address = shift
CS+IP = 7100
LABORATORY REPORT FORMAT

• Format:
• Front page: Full name, student ID, Group, Lab No.
• Assembly language programming
• List file
• Table of expected result (without simulation)
• Table of simulation result

• Submission: Save in cloud and share its link


EXAMPLE TABLE OF RESULT

Memory address 7100 7101 7102 7103 7104 7105 7106


Before execution 00 00 00 00 00 00 00
Db 10 0A 00 00 00 00 00 00
Dw 1234h 0A 34 12 00 00 00 00
Dd 55667788h 0A 34 12 88 77 66 55
LAB 1: DIRECTIVE

• Write the directive below and find out its memory data and address. Show
your result in table.
• Db 25,100,200
• Dw 6000
• Dd 0aabbccddh

You might also like