Re: A86: Quick question...


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

Re: A86: Quick question...




DispA:
    push af
    call _shracc            ;a=upper nibble
    call DispNibble
    pop af
DispNibble:
    and $0f             ;clear upper nibble
    cp 10
    jr nc,SkipAdd
    add a,'0'
SkipAdd:
    jp _putc


In a message dated 1/22/00 2:46:33 AM Eastern Standard Time, 
rabidcow@juno.com writes:

> if you're happy displaying a in hex:
>  
>  ; display a in hex
>  dispa:
>          push af
>          srl a
>          srl a
>          srl a
>          srl a
>          add a,$90
>          daa
>          adc a,$40
>          daa
>          call _vputmap
>          pop af
>          and $0f
>          add a,$90
>          daa
>          adc a,$40
>          daa
>          jp _vputmap



----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/ (down)