Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello my teacher. In the code below, DIFFERENT will be printed on the screen because the last element is different. but I want you to
Hello my teacher. In the code below, "DIFFERENT" will be printed on the screen because the last element is different. but I want you to add which element is different after you write "DIFFERENT". You need to add 1-2 lines of code. please help me sir. thanks
org 100h
.model small
.stack 100h
.DATA
Dizi1 db 1,2,3,4,5,6,7,8,9,4
Dizi2 db 1,2,3,4,5,6,7,8,9,0
s1 dw 10,13,"DIFFERENT$"
s2 dw 10,13,"SAME$"
.code
main proc
mov ax,@data
mov ds,ax
LEA SI,DIZI1
LEA DI,DIZI2
MOV CX,10
CLD
REPE CMPSB
JNE UYMAZ
mov ah,09h
lea dx,s2
int 21h
ret
uymaz:
mov ah,09h
lea dx,s1
int 21h
ENDM
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started