Re: A86: Variable-width font


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

Re: A86: Variable-width font




you want short and simple?

;-----Display HL Routine [By: SCaBBy]-----
DispA:
 ld l,a
 ld h,0
DispHL:                                 ;dipslay 5 digits from hl
 xor a
 ld de,-1
 ld (_curRow),de
 call 4A33h
 dec hl
 jp _vputs

although, i like the routine david phillips just posted

-josh

On Wed, 4 Nov 1998 22:04:26 EST ComAsYuAre@aol.com writes:
>
>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 :)
>

___________________________________________________________________
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/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]