Question: Microprocessor Lab work Using emu8086-assembler and microprocessor emulator Solve all the problems,I will upvote you. Following the codes to be done by assembly language Task

Microprocessor Lab work

Using emu8086-assembler and microprocessor emulator

Solve all the problems,I will upvote you.

Following the codes to be done by assembly language

Task 01

Write a program that takes in 3 digits as input from the user and finds the

maximum Sample input:

1st input: 1

2nd input: 2

3rd input: 3

Sample Output:

3

Task 02

Take two digits as input from the user and multiply them. If the result is divisible by 2 and 3 both, print “Divisible”. Otherwise, print “Not divisible”

Sample input:

1st input: 5

2nd input: 6

Result is 30

Sample Output:

Divisible

Sample input:

1st input: 5

2nd input: 2

Result is 10

Sample Output:

Not divisible

Task 03

Write a program that takes in a digit from 1 to 6 where each digit represents a month in a calendar year. For example the digit 1 represents January, 2 represents February, and 3 represents March and so on. Your program should then output the total number of days in that month

Sample input:

4 [which represents April]

Sample Output:

30

Sample input:

2 [which represents February]

Sample Output:

28

Task 04

Write a program that takes as input the length of the 3 sides of a triangle and check it is an isosceles triangle. If it is an isosceles triangle, print “Y”, otherwise, print “N”. (Assume the sides are from a valid triangle and is in integers)

[Hint: Check If side1 == side2 OR side2 == side3 OR side3 == side1]

Sample input:

1st side: 5

2nd side: 4

3rd side: 6

Sample

Output: N

Sample input:

1st side: 5

2nd side: 5

3rd side: 4

Sample

Output: Y

 

Step by Step Solution

3.58 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Question model small stack 100h Macro for printing messages printmsg macro msg push ax push bx push cx push dx lea dxmsg mov ah09h int 21h pop dx pop cx pop bx pop ax endm begins data segment data msg... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!