Question: Run code of example # 0 1 and enter results run by run in table # 1 Write a program that take different values from

Run code of example # 01 and enter results run by run in table #1
Write a program that take different values from user as input and perform AND, OR, NOT and NEG and then display the required output on console screen.
Example # 01:
org 100h
.model small
.stack 100
data
num1 dw 0FA62H
num 2 db 94 H
.code
mov ax,@data
mov ds, ax
mov ax, numl
and ax,0FFDFH
or al,20 H
xor num1,0FF00H
not num 2
xor ax, ax
mov ax, numl
and ax,0008 H
xor ax,0080 H
ret
Table#1
\table[[Statement,Destination Content,Status Flags],[Before,After,OF,SF,ZF,AF,PF,CF],[AX,,,,,,,,],[AH,,,,,,,,],[AL,,,,,,,,],[BX,,,,,,,,],[BH,,,,,,,,]]
\table[[BL,,,,,,,,],[CX,,,,,,,,],[CH,,,,,,,,],[CL,,,,,,,,],[DX,,,,,,,,],[DH,,,,,,,,],[DL,,,,,,,,],[CS,,,,,,,,],[IP,,,,,,,,]]
Run code of example # 0 1 and enter results run

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 Programming Questions!