Code: org 100h lea si,arr mov cx,5 search_loop: mov al,[si] cmp al,key JZ found inc si LOOP search_Iloop ret found: mov ah,9 mov dx,offset msg1 int 21h ret arr db 1,2,3,4,5 key db 9 msg1 db "Key is...


Write down what is the purpose of the following code. What each line/command of the code states.


Code:<br>org 100h<br>lea si,arr<br>mov cx,5<br>search_loop:<br>mov al,[si]<br>cmp al,key<br>JZ found<br>inc si<br>LOOP search_Iloop<br>ret<br>found:<br>mov ah,9<br>mov dx,offset msg1<br>int 21h<br>ret<br>arr db 1,2,3,4,5<br>key db 9<br>msg1 db

Extracted text: Code: org 100h lea si,arr mov cx,5 search_loop: mov al,[si] cmp al,key JZ found inc si LOOP search_Iloop ret found: mov ah,9 mov dx,offset msg1 int 21h ret arr db 1,2,3,4,5 key db 9 msg1 db "Key is found$"

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here