I'm using ZXTEXT2P to write a ZX81 program. I need to use the exponent math function (**). I type two asterisks in the code, but ZXTEXT2P does not convert the two asterisks into the single exponent token. Looking at the short docs on ZXTEXT2P, I don't see any mention of this issue and getting around it.
Has anyone else seen this issue? Anybody have a workaround?
Tim Swenson
Bug in ZXTEXT2P
Re: Bug in ZXTEXT2P
Hi
I just used ** with no problem in zxtest2p - make sure there is no spaces
BIll H
I just used ** with no problem in zxtest2p - make sure there is no spaces
BIll H
Re: Bug in ZXTEXT2P
Actually, spaces are needed, just before and after the **. My line of basic was like this:
if y<(x**2) then .....
I changed it to:
if y<(x ** 2) then .... (note the space before and after the **)
That worked. I guess zxtext2p likes spaces between the tokens. I'll have to tinker with it a bit more to see what it likes and does not like.
if y<(x**2) then .....
I changed it to:
if y<(x ** 2) then .... (note the space before and after the **)
That worked. I guess zxtext2p likes spaces between the tokens. I'll have to tinker with it a bit more to see what it likes and does not like.
Re: Bug in ZXTEXT2P
I didswensont wrote:Actually, spaces are needed, just before and after the **. My line of basic was like this:
if y<(x**2) then .....
I changed it to:
if y<(x ** 2) then .... (note the space before and after the **)
That worked. I guess zxtext2p likes spaces between the tokens. I'll have to tinker with it a bit more to see what it likes and does not like.
Code: Select all
PRINT 1**6
Bill H
Re: Bug in ZXTEXT2P
???
Juste use the Vb81 XuR !!!
The line character lenght is bugged too ... only 1024 chars ( incuding specials char codes "/;;")
Get my ZxText2P win32 release inncude in "ZxBASIC" (ZXtools project)
Have Fun.
Juste use the Vb81 XuR !!!
The line character lenght is bugged too ... only 1024 chars ( incuding specials char codes "/;;")
Get my ZxText2P win32 release inncude in "ZxBASIC" (ZXtools project)
Have Fun.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Re: Bug in ZXTEXT2P
I've been doing my ZX81 work on Linux and using DOSBOX, so having a Win32 version of ZXTEXT2P will not work for me. If you've made changes to ZXTEXT2P, why not publish the changes or the new code and others can compile to their own environment. Heck, I wonder if it would compile under Linux. May have to try.
Tim Swenson
Tim Swenson