A82: One last thing :P


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

A82: One last thing :P




Let's say you had a bunch of strings that you want to display in a row.
They are not all the same length. If you make a little loop like this:

	ld a,5		;starting (CURSOR_Y)
	ld hl,string1	;point hl to the first string

DISP:
	ld (CURSOR_Y),a
	ROMCALL(D_ZM_STR)
	
;This part is where I get stuck.
;How would I point hl to the next string?

	add a,6
	cp 29		;four strings to display
	jr nz,DISP
	ret

string1:
.db "Blahblahblah",0

string2:
.db "Yaddayaddayadda",0

string3:
.db "Boy am I bored today",0

string4:
.db "Can anyone help?",0


_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]