[A83] Re: displaying values of a variable


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

[A83] Re: displaying values of a variable




> How does one display the value of a variable such as c on the home screen?
> Iknow that there are commands like call _disphl and call _dispop1a but i'm
> not sure how they work. Thanks.

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

Instead of 'A' you can use any other letter. For Theta use '[' !

Patrick





Follow-Ups: References: