A83: Re: Display Characters...
[Prev][Next][Index][Thread]
A83: Re: Display Characters...
James, here is a routine that
you can call to display a digit and increment the cursor position.
; *******************************
; * Input
(0-9) in reg A *
; * *
; * Output -
number on graph *
; * cursor pos is updated *
;
*******************************
disp_digit:
call _setxxop1 ;
a->OP1
ld a,1 ; byte size of string
call _dispop1a ;
Display OP1 on graph screen
ld a,(pencol)
sub 2
ld
(pencol),a
cp 92
ret c ; return if X-position of cursor
is less than 92
xor a
ld (pencol),a
ld
a,(penrow)
add a,6
ld (penrow),a ; include a flow switch
to exit program
ret ; if penrow > 57
-Harper Maddox
Ok, here's something that will get you
guys talking!!
Ok, I made a basic program that displays a fraction to
up to 256 decimal
places (cool, but pointless). Anyway, I want to
convert it into ASM, to
make it *a lot* quicker. Ok, how do I
display an integer at a given place
on the graphing screen.
Basically, the equivalent to:
text(x,y,text)
I have a vague
idea...but I want a more definite one
:).
____________________
James Matthews.
E-mail
(family): matthews@tkb.att.ne.jp
E-mail
(private): james_matthews@hotmail.com
Homepage:
http://home.att.ne.jp/gold/tomcat21/index.html
ICQ:
7413754
____________________________________