Re: A86: CPIR


[Prev][Next][Index][Thread]

Re: A86: CPIR




In a message dated 5/9/99 12:20:28 AM Eastern Daylight Time, 
ieatlint@home.com writes:

> anyoe got some helpful info for string searching using cpir?

this what you're looking for?


;---------= Point hl to string a =---------
; by: Joe Wingerbermuhle
; Input: a=string number (0 to 255)
;	 hl->string data
; Output: hl->string

getString:
 ld b,a
 xor a
getStringL1:
 push bc
 ld c,-1
 cpir
 pop bc
 djnz getStringL1
 ret