RE: A86: Displaying Text


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

RE: A86: Displaying Text




That is not exactly what I mean.  I want to be able to place the text any
place on the screen.  My string (.db 10,10,"Hello",0) will be placed (using
the routine I originally had) at (10,10).  This allows me to place it
anywhere like (40,2) or (100,6), etc.  I believe that _penCol and _penRow
are right next to each other, but which one is first, and when I place the
number in for hl like:

ld hl,$A0A0		;10=x,10=y
ld (_penCol),hl	;if hl is first

Does it put the numbers in backwards.  Meaning if hl was $A006 will it be
placed as 10,6 or 6,10.

Thanks

-----Original Message-----
From: owner-assembly-86@lists.ticalc.org
[mailto:owner-assembly-86@lists.ticalc.org]On Behalf Of
Bigskank9@aol.com
Sent: Wednesday, April 21, 1999 8:00 PM
To: assembly-86@lists.ticalc.org
Subject: Re: A86: Displaying Text



In a message dated 4/21/99 6:24:26 PM Pacific Daylight Time,
tresh@sginet.com
writes:

>
>  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
>

  ld hl,1+256*1
  ld (_curRow),hl
  ld hl,text
  call _vputs

test:
 .db "hello




References: