Re: A86: Decimal output using the variable width font


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

Re: A86: Decimal output using the variable width font



In a message dated 97-10-24 18:51:19 EDT, you write:

> 
>  Does anyone know how to do decimal output using the variable width font?
>  Any help would be greatly appreciated!
>    Thanx!
>  
>  -Martin
>  

Use the _unpackHL method (from Asm86 II or III).  Basically, it takes HL and
divides it by 10, storing the remainder in A.  You can then add $30 to A and
_vputmap it.  There is a good example of this (you'd need to adapt it for var
width, but that involves nothing more then changing _putc -> _vputmap) in
ZTetris, when it displays the score.

~Steve