Forum
Peek (uInteger,@label) problem (*solved*) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: Peek (uInteger,@label) problem (*solved*) (/showthread.php?tid=485)



Peek (uInteger,@label) problem (*solved*) - LCD - 08-02-2012

Hallo Boriel,
I just found following Problem in s888 and s894

Code:
paper 7:ink 0:border 7:cls
print peek(uinteger,@test)
print peek(@test)+256*peek(@test+1)
End
test:
asm
    defw 35600
end asm
It should print in both cases the value 35600, but the first number looks like the address of the test label.


Re: Peek (uInteger,@label) problem - boriel - 08-02-2012

Yep, it was a bug. Please download the latest version 1.2.9s904, which fixes it.


Re: Peek (uInteger,@label) problem - LCD - 08-02-2012

boriel Wrote:Yep, it was a bug. Please download the latest version 1.2.9s904, which fixes it.
Link is 404...
Better this one:
<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Archive">http://www.boriel.com/wiki/en/index.php ... IC:Archive</a><!-- m -->
Thanks for fast fixing!!!