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-006


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-006


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 3

OUTPUT

Registration No: FA20-BSEE-006


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 4

(b)CODE

Registration No: FA20-BSEE-006


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 5

OUTPUT

Registration No: FA20-BSEE-006


Microprocessor Systems And Interfacing Department of Electrical & Computer Engineering

Figure 6

CONCLUSION

Registration No: FA20-BSEE-006

You might also like