Question: Implement a linear search for a sorted array using Assembly? Your code must run on https://schweigi.github.io/assembler-simulator/ You will have four variables. Name - Meaning Found
Implement a linear search for a sorted array using Assembly?
Your code must run on https://schweigi.github.io/assembler-simulator/
You will have four variables.
Name - Meaning
Found - Result of the computation. 1 for true and 0 for false. target The number to look for.
Size - The number of elements in the array.
first - The first value in the array
Your code should begin with
; Set to 1 if found
; Set to 0 if not found
found : DB 99
; Target i s the value to look for
target : DB 19 ; Sorted Array o f Numbers
size : DB 11
first : DB 0, DB 5, DB 9, DB 12, DB 13, DB 19, DB 20, DB 35, DB 19, DB 29, DB 39
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
