Question: Computer Architecturc u computer Architecture using EMU8086 Computer engineering exercise lab It is using emu8086 app Computer Architecture (CSE 403) Lab Experiment -7 Student ID:
Computer Architecturc u

computer Architecture using EMU8086 Computer Architecture (CSE 403) Lab Experiment -7 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 Positive or Negative. DATA SEGMENT N1 DB-01H N2 DB OAH,ODH, "THE DATA IS POSITIVE S" N3 DB OAH,ODH, "THE DATA IS NEGATIVE S" DATA ENDS CODE SEGMENT ASSUME CS:CODE DS:DATA START: MOV AX,@DATA INITIALIZE DATA SEGMENT MOV DS, AX CLC CLEAR CARRY MOV AL,N1 AND AL, 10H CHECK THE MSB JZ D1 ;IF 0, DISPLAY THE NO IS POSITIVE MOV DX,OFFSET N3 MOV AH,09H INT 21H ELSE DISPLAY THE NO IS NEGATIVE JMP END1 D1:MOV DX,OFFSET N2 MOV AH,09H INT 21H END1:MOV AH,4CH INT 21H END Lab Exercise No - 2: WRITE AN ASSEMBLY LANGUAGE PROGRAM TO SOLVE THE EQUATION C = Z=((A-B/10*C)**2 IN ASSEMBLY LANGUAGE USING 8086. DATA SEGMENT A DB 60 B DB 20 C DB 5 Z DW ? ENDS CODE SEGMENT ASSUME DS:DATA CS:CODE START: MOV AX,DATA MOV DS, AX MOV AH,0 MOV AL,A SUB AL,B MULC MOV BL,10 DIV BL MUL AX MOV Z,AX MOV AH,4CH INT 21H ENDS END START Lab Submissions: 1. Use procedures, to enter the number from keyboard, to check whether given number is negative or positive 2. Use procedures, write an assembly language program to solve the equation z=x^3+y^2+1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
