Re: A86: data
[Prev][Next][Index][Thread]
Re: A86: data
ld hl,stuff ;start of list
ld bc,6 ;number of items in the list
ld a,4 ;number to compare to
cpir ;compare,increment, and repeat
jr nz,notfound ;->if bc items were read before number in a was found
;(hl) == a
;bc = items left in list
-josh
On Fri, 17 Mar 2000 16:31:43 -0500 "J.S." <rengets@erols.com> writes:
> I'm new to assembly programming, and I'd like to know something:
>
> how would you read one byte at a time from something like this:
>
> stuff:
> .db 0,1,3,2,1,5,4
>
> then compare it with a number (lets say 4), and if its 4, you end?
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.