Page 2 of 2
Re: [ASM-ZX81] How to retrieve a floating-point value from ASM.
Posted: Sun Jul 17, 2022 1:39 am
by David G
XavSnap wrote: ↑Thu Jul 14, 2022 3:25 pmThe variable isn't set !
Before the "LET P=." the "P" value isn't set... and can't be viewed in the Vars memory room.
A PRINT P; , will give a 2/0 error report.
But, but the ROM call use a blank variable name ghosted in the Vars the keep it in memory
I am not understanding
If i enter
then enter
It prints 0 as expected
Does this not mean that the variable has been added by name ('P') to the
Variables zone of memory? What is meant by "ghosted" name?
Re: [ASM-ZX81] How to retrieve a floating-point value from ASM.
Posted: Sun Jul 17, 2022 3:25 am
by XavSnap
Hi David,
Ghosted in the BASIC, not in the Vars if the LET command is not RUN.
BASIC:
VARS after a RUN
$75= "P" character + bit 6 (+64) .
Re: [ASM-ZX81] How to retrieve a floating-point value from ASM.
Posted: Sun Jul 17, 2022 11:59 pm
by David G
OK, your explanation makes sense. "ghosted" = "hidden" floating-point value. In the BASIC line it is ghosted. Yes
And when the LET statement is RUN, the BASIC system copies it from there to the Variables memory area/zone/room/place