Re: A86: Quick question...
[Prev][Next][Index][Thread]
Re: A86: Quick question...
In a message dated 1/22/00 12:14:07 AM Mountain Standard Time,
asmti86@hotmail.com writes:
> A quick question for you guys. How would you display the contents of a
> register (like A) onto the screen? Probably someting simple, and I'm just
> making it too hard ;)
Something like this would work (not tested, mind you):
DispADeci:
ld h,0
ld l,a
ld de,TempBCD+2
DAD_Loop:
call _hldiv10
add a,48
ld (de),a
dec de
inc l\ dec l
jr nz,DAD_Loop
ex de,hl
jp _vputs
BCDTemp:
.db 0,0,0,0
Not that I haven't done much 86 specific assembly program, so I (again) can't
guarentee this will work ;)
JayEll