[A83] Re: Displaying a var


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

[A83] Re: Displaying a var




[Xavier told this on 20 May 2001]

You just use this little routine:

vputshl:
        push hl
        bcall(_setxxxxop2)
        bcall(_op2toop1)
        ld a,5
        bcall(_dispop1a)
        pop hl
        ret

Hope that help
Paxl

On Sunday 20 May 2001 09:08 am, you wrote:
> How do I display a number from a regster pair directly on the screen in
> small font, and wherever I want?


>;How can you display a value, a example:
>;i have stored 257 in saferam: value1.
>;If I want to display that value on specified coordinates, can you do
>;something like this(not real code):
>ld hl,257;just to show how i load the value in valeu1, it isn't ;necessary
>in this example
>ld valeu1,hl
>;begin of code
>ld hl,value1
>call _setxxxxop2
>;here place the romcall that puts op2 in op1, don't know it right now.
>;here you have to load the coordinates, or something?
>call _dispop1a
>;this is the end of the code, does somebody know how I can do this?
>Maarten
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>