Msi Lab 2-1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Lab 2: COMMAND PROMPT PROGRAMMING USING DEBUG


POST LAB
TASK 1
Translate the high level language assignment statement A=(30+5)*(A-12)/B into assembly code. Let A
and B be byte variables and suppose there is no overflow also save and load program.

CODE

Figure 1

OUTPUT

Registration No: FA20-BSEE-009


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 2

TASK 2
Perform following operations and show result,
a. Multiply 80 h with FFh
b. Divide 1250h with 7

(a)CODE

Registration No: FA20-BSEE-009


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 3

OUTPUT

Registration No: FA20-BSEE-009


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 4

(b)CODE

Registration No: FA20-BSEE-009


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 5

OUTPUT

Registration No: FA20-BSEE-009


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 6

CONCLUSION
In this lab we leaned command prompt using debug .The technique of giving the computer
task instructions through a command line interface was originally used in MS-DOS environments
to translate assembly language code into operation code, and machine language into executable
(.exe) files. The debug command is used to look at portions of your computer and write assembly
code to perform certain tasks on your computer.

Registration No: FA20-BSEE-009

You might also like