A86: Re: Creating Variables


[Next][Index][Thread]

A86: Re: Creating Variables




 ld hl,RealName-1
 rst 20h
 call _createreal  ; conforming to new naming standards (what's with all
caps?)
 ld a,5
 call _SetXXOP1    ; set OP1 to 5 (I'm assuimg this won't trash BDE)
 call _ex_ahl_bde
 call _abs_mov10toop1     ; copy OP1 to variable
 ret

RealName:
 .db 4,"Real"

> Recently I have been trying to create a real variable with an assembly
> program, and I have had had some success.  To create the variable, I use:
>
> ld hl,RealName-1
> rst 20h
> call _CREATEREAL
> ret
>
> RealName:
> .db 4,"Real"
>
> Now comes the question:  how do I load a value (for example 5) into the
> variable from within the same assembly program.




References: