Assembly language compiler
Binary Search Code in Assembly Language ... Compiler Masm615
include irvine32.inc
.data
array byte 10 DUP(?)
num byte ?
first byte 0
middle byte 0
last byte 0
msg1 byte " Enter 10 Number in Array : ", 0
msg2 byte " Enter Number to Find: ", 0
msg3 byte " Found ", 0
msg4 byte " Not Found ", 0
call crlf
mov edx, offset msg1
call writestring
call crlf
mov edx, offset array
mov ecx, lengthof array
mov esi, 0
L1:
call readint
mov array[esi], al
inc esi
loop L1
call crlf
mov edx, offset msg2
call writestring
call readint
mov num, al
mov al, lengthof array
You might also like


![]() |
LWW ipazzport KP-810-19 Germany + English Language Mini Wireless 2.4GHz 84-Keys Keyboard - Black PC Accessory (LWW Computers)
|
![]() |
C Programming with The Programmable Box (Orange-Kit) Software (Your Inner Geek, LLC)
|