PRINT VAL VAL VAL "2"

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
MOB-i-L
Posts: 63
Joined: Mon Apr 19, 2010 12:13 am
Location: Lund, Skåne/Scania, Sweden
Contact:

PRINT VAL VAL VAL "2"

Post by MOB-i-L »

I've tested a ZX Spectrum BASIC line in ZX81 BASIC and I had to make some modifications in order to get it to run. The line 'PRINT VAL "VAL ""VAL """"2"""""""' is from ch. 9 in the ZX Spectrum BASIC Programming manual and it can only be typed in in Spectrum 48K or earlier (e.g. not in Spectrum 128K mode):
http://www.worldofspectrum.org/ZXBasicM ... chap9.html

Here is my test program with the translated line:
Image
valvalval2.p

Is it possible to make the ZX81 line shorter and more similar to the ZX Spectrum line?
Last edited by MOB-i-L on Sat Oct 26, 2013 9:51 am, edited 1 time in total.
User avatar
Math123
Posts: 44
Joined: Sun May 11, 2008 11:14 pm
Location: Germany Wuppertal
Contact:

Re: PRINT VAL VAL VAL "2"

Post by Math123 »

Hi,
what about this? VAL STR$ VAL STR$ VAL "2"
Matthias
Attachments
valvalval2.P
(1.02 KiB) Downloaded 253 times
Post Reply