RE: A86: Variable-width font


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

RE: A86: Variable-width font




DispA:
 ld l,a
 ld h,0
DispHL:
 xor a
 ld de,-1
 ld (_curRow),de
 call 4A33h
 dec hl
 jp _vputs

Ahmed El-Helw <ahmed@ticalc.org>
Program Ideas, Upcoming Programs
the ticalc.org project - http://www.ticalc.org/
_____________________________
http://hail.icestorm.net/asm
ICQ : 3350394

> -----Original Message-----
> From: owner-assembly-86@lists.ticalc.org
> [mailto:owner-assembly-86@lists.ticalc.org]On Behalf Of
> ComAsYuAre@aol.com
> Sent: Wednesday, November 04, 1998 10:04 PM
> To: assembly-86@lists.ticalc.org
> Subject: Re: A86: Variable-width font
>
>
>
> In a message dated 11/4/98 9:55:21 PM Eastern Standard Time,
> dvanee@dowco.com
> writes:
>
> > How can I display the decimal (not hex) value of a register
> (hl?) onscreen
> >  in the variable width font at a specific location?
>
>
> if you want variable width, you need to use the ops and
> _formreal. (unless you
> want to build your own display routine, which is really complex
> but i'm sure
> david phillips or somebody else will come up with one :)
>
> anyway, enough mindless babble.  here's how:
>
> _formreal			.equ		$5191
>
> 	call _SetXXXXOP2			;OP2=hl
> 	call _OP2TOOP1			;move to OP1
> 	call _formreal
> ;OP3=zero-terminated string value of OP1
> 	ld hl,_OP3					;point hl to OP3
> 	ld bc,$0000					;whatever
> penrow and pencol you want to use
> 	ld (_penRow),bc				;move cursor
> 	call _vputs					;display
> it.  this could easily be changed to _puts if you
> felt inclined.
>
> hope this helps.  it may not be the fastest way, but it's really short and
> simple, which is fine by me :)
>


References: