A86: Displaying Text


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

A86: Displaying Text




Hey,

I have a routine that displays the text for my program and I believe that
there is a way to make it smaller.

My routine looks like this:

	ld a,(hl)
	ld (_penCol),a
	inc hl
	ld a,(hl)
	ld (_penRow),a
	inc hl
	call _vputs
	djnz WriteText
	ret

;example string

.db 10,10,"Hello",0

I have seen some programs combine my first 5 lines into about two.  They
somehow make hl put both coordinates into _penCol and _penRow in one line.
I was wondering if someone could tell me how to do that.

Thanks



References: