Question: 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
Get step-by-step solutions from verified subject matter experts
