Question: using 8086 microprocessor The answer will be using EMU8086 program just you will copy the code then you will get the odd/even number Computer Architecture

using 8086 microprocessor
using 8086 microprocessor The answer will be using EMU8086 program just you
The answer will be using EMU8086 program just you will copy the code then you will get the odd/even number
will copy the code then you will get the odd/even number Computer

Computer Architecture (CSE 403) Lab Experiment - 6 Student ID: Name: Lab Objective In this laboratory exercise you will practice: Compiling and executing the programs using EMU8086-Simulator The follow up question and activity will give you practice modifying an existing program to perform a different task. Lab Exercise No - 1: Lab Exercise No. 1 - Write a program in 8086 MP to check whether given number is odd/even DATA SEGMENT MSGI DB ODH, OAH, "IT'S AN EVEN NO. S" MSG2 DB ODH, OAH, "IT'S AN ODD NO. S" DATA ENDS CODE SEGMENT START: MOV AX, DATA MOV DS, AX MOV BL, 02 MOV AX, 59 DIV BL CMP AH, OOH JZ EVEN JNZ ODD EVEN: MOV DX,OFFSET MSGI JMP FINAL ODD: MOV DX,OFFSET MSG2 JMP FINAL FINAL: MOV AH,09H INT 21H CODE ENDS END START Computer Architecture (CSE 403) Lab Experiment - 6 Student ID: Name: Lab Objective In this laboratory exercise you will practice: Compiling and executing the programs using EMU8086-Simulator The follow up question and activity will give you practice modifying an existing program to perform a different task. Lab Exercise No - 1: Lab Exercise No. 1 - Write a program in 8086 MP to check whether given number is odd/even DATA SEGMENT MSGI DB ODH, OAH, "IT'S AN EVEN NO. S" MSG2 DB ODH, OAH, "IT'S AN ODD NO. S" DATA ENDS CODE SEGMENT START: MOV AX, DATA MOV DS, AX MOV BL, 02 MOV AX, 59 DIV BL CMP AH, OOH JZ EVEN JNZ ODD EVEN: MOV DX,OFFSET MSGI JMP FINAL ODD: MOV DX,OFFSET MSG2 JMP FINAL FINAL: MOV AH,09H INT 21H CODE ENDS END START

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!