Course: CAO C.

Id: 10440
Group Members: • • • • Salman Bajwa(3746) M. Taimour (4727) Shahrukh Ahmed (4798) Akhtar Waqar (4682)
Instructor: Mr. Kamran Ali

Project Presentation

Introduction:
• Using EMU-8086 processor.
• It’s a low level-assembly language based processor. • It’s a 16 bit processor. We will be using here 4 instructions • MOV • ADD • LOOP • SUB

SYNTAX:

MOV DESTINATION , SOURCE

EXAMPLE: ORG 100H MOV AH,10H MOV BL,AH RET

RAM Address-Bus

0100H

Control-Bus READ

0100H

10h

Data-Bus 10H

RAM Address-Bus 0104H

Control-Bus Read 0100H 10H 10H

0104H Data-Bus
10H

SYNTAX:

ADD Register , Number place in memory

EXAMPLE: ORG 100h MOV AH,10h MOV BH,5h ADD AH,BH MOV DL,AH RET
BEFORE AFTER

RAM Address-Bus

0100H

Control-Bus READ

0100H

10h

Data-Bus 10H

RAM Address-Bus 0104H

Control-Bus Read 0100H 0104H 10H 5H

Data-Bus
5H

RAM Address-Bus 0106H

Control-Bus Read 0100H 0104H 10H 5H 15H

Data-Bus
15H

0106H

SYNTAX: TAG: LOOP , TAG(NAME) EXAMPLE:

ORG 100h MOV AH,0EH MOV BL,30H MOV CL,0AH AGAIN:MOV AL,BL INT 10H INC BL LOOP AGAIN RET

RAM Address-Bus 0102H

Control-Bus Read 0102H 0eH

Data-Bus
OEh

RAM Address-Bus 0104H

Control-Bus Read 0102H 0104H 0eH 30H

Data-Bus
15H

RAM Address-Bus 0106H

Control-Bus Read 0100H 0104H 0eH 30H 0AH

Data-Bus
0AH

0106H

RAM Address-Bus 0108H

Control-Bus Write 0100H 0104H oeH 30H 0AH 30H

Data-Bus
30H

0106H 0108H

SYNTAX:

SUB REGISTER, NUMBER

EXAMPLE: ORG 100H MOV AH,10 SUB AH,5 MOV BL,AH RET
BEFORE AFTER

RAM Address-Bus

0100H

Control-Bus READ

0100H

10h

Data-Bus 10H

RAM Address-Bus

0102H

Control-Bus Read

0100H 0102H

10h

10H

Data-Bus 10H

RAM Address-Bus

0102H

Control-Bus Read

0100H 0102H 0105H

10h

10H
5H

Data-Bus 10H

RAM Address-Bus

0107H

Control-Bus Write

0100H 0102H 0105H

10h

10H
5H

Data-Bus 5H 0107H

5H

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.