[A83] Re: displaying values of a variable


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

[A83] Re: displaying values of a variable




How would you go about displaying a value in the accumulator (a) in an Ion
program?  I'm sorry if this is a dumb question, I'm new to asm.
    -charlie adams
----- Original Message -----
From: "Patrick Mächler" <valio@bluewin.ch>
To: <assembly-83@lists.ticalc.org>
Sent: Saturday, January 26, 2002 8:32 PM
Subject: [A83] Re: displaying values of a variable


>
> > I suggest you mean the uservars (A - Z & Theta)... Try this:
> >     call _zeroop1   ;set op1 = 0
> >     ld hl,op1+1      ;load address of op1 in hl
> >     ld (hl),'A'          ;put this sign to that address, where hl is
> > pointing to (op1)
> >     call _rclvarsym ;Rom call that will recall the value of the
variable,
> > whose name is in OP1, in op1 / op2
>
> damn! I forgot to write the most important command:
>     call _dispop1a ;Displays contents of OP1
>
> use register a to set the number of digits after the decimal point.
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





References: