Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linear_search.asm
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ code segment

xor ax,ax ;initializing ax register with value 0
mov cx,5
mov bl,2
mov bl,2
mov si,-1


next:
inc si
mov al,array[si]
mov al,array[si] ;fetching next array element
cmp al,ele
je present ;if search is successful
loop next
Expand All @@ -51,4 +51,4 @@ code ends
end start

;.............................................................