A83: tell me what??


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

A83: tell me what??




Could some one please tell me what this piece of code does. I got it from
Joe.

getstring:	or	a	;check end of line
	ret	z		;return if so
	ld	b,a		;
	xor	a		;
				

getStringL1:			;and this one
	push	bc		;
	cpir			;
	pop	bc		;
	djnz	getStringL1	;
	ret			;

Well I know that I input 'a' which is which string in an external program I
want to display. Then if I call _puts it should display the 'a'th word.

From: Chris
(Man in the Moon)
mecad@scv.net