Bug in ZXTEXT2P

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
swensont
Posts: 76
Joined: Tue Jan 18, 2011 4:55 am
Location: SF Bay Area
Contact:

Bug in ZXTEXT2P

Post by swensont »

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
Bill H
Posts: 163
Joined: Sat Nov 27, 2010 6:05 pm

Re: Bug in ZXTEXT2P

Post by Bill H »

Hi

I just used ** with no problem in zxtest2p - make sure there is no spaces

BIll H
swensont
Posts: 76
Joined: Tue Jan 18, 2011 4:55 am
Location: SF Bay Area
Contact:

Re: Bug in ZXTEXT2P

Post by swensont »

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.
Bill H
Posts: 163
Joined: Sat Nov 27, 2010 6:05 pm

Re: Bug in ZXTEXT2P

Post by Bill H »

swensont 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.
I did

Code: Select all

PRINT 1**6
and it worked - it may be it doesn't like it next to the variable name?

Bill H
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Bug in ZXTEXT2P

Post by XavSnap »

???
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)
swensont
Posts: 76
Joined: Tue Jan 18, 2011 4:55 am
Location: SF Bay Area
Contact:

Re: Bug in ZXTEXT2P

Post by swensont »

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
Post Reply