Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Why are structured models so seductive?

Answered: 1 week ago

Question

b. Where did they come from?

Answered: 1 week ago