World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.026s
<1234567…34>
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    I see some basic programs which use Let a=val "1" instead of let a=1 syntax.

    what is the difference between val "1" and 1?

    is it an effect of some compiler or converter?

    just curious.
    Arda Arda April 2003 Sinclair Basic
  • Sinclair Basic compiler for PC?I know we all can use BASin to play for a while in a little window. But... What about creating a 80x86 EXE program from scratch using Sinclair Basic…

    ... could input a string like (1+2) and the rubbery marvel ... .NET!!! Everybody else thinks that VAL("1+2") is either an error ... or just "1", when we all KNOW (and ...
    Marcelo Marcelo September 2003 Sinclair Basic
  • Which would be fasterSay you want to use a variable value of 0 to 255 in a BASIC program, which way would be fastest? Say for arguments sake you wanted to use two variabl…

    ... value equal another?

    1) Using the standard Spectrum BASIC ... example nnn, where nnn=1)

    2) VAL "1"

    3 ... is the fastest between examples 1) and 2) ?
    ewgf ewgf September 2006 Development
  • Basic listings memory occupationI remember readong someplace that due to basic's representation of number, in a program, in order to save space, it was better to represent integers …

    ... />
    10 PRINT 1
    20 PRINT VAL "1"
    30 FOR F ...
    Dr BEEP Dr BEEP August 2002 Sinclair Miscellaneous
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    ... use Let a=val "1" instead of let a=1 syntax.

    what is the difference between val "1" and 1?
    [/quote]
    They ...
    BadBeard BadBeard April 2003 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    The use of VAL / NOT PI etc... is slower!< ... 4E4
    30 LET A=VAL "1" : REM Second run LET A ... =1
    40 NEXT F
    ...
    Dr BEEP Dr BEEP May 2003 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    ... this is 48K without IF 1).

    [code]
    1st ... try:
    10 PRINT 1
    20 FOR F=23756 ... /> 2nd try:
    10 PRINT VAL "1"
    20 FOR F=23756 ...
    Dr BEEP Dr BEEP May 2003 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    yes the 1st one takes 7 bytes for "1"..
    second one takes 4 bytes (val "1") and
    last one (sgn pi) takes only 2 bytes.

    thanks everyone for your help to please my curiousity.
    Arda Arda May 2003 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    ...
    [quote]
    Would PRINT VAL$ Q$ save memory over PRINT ... Well, PRINT Q$ and PRINT VAL$ Q$ have completly different effects ... comparing them is irrevelevant. PRINT VAL$ "Q$" is (mostly?) ... . The reason that VAL "1" is smaller than 1 (etc) has already ...
    Philip Kendall Philip Kendall July 2003 Sinclair Basic
  • BASin release 12c available for downloadHi again, folks - I've had no more reports of further bugs in BASin, so I'm assuming that we've now got a stable editor. Release 12c is now availab…

    ... always miss the Sinclair PRINT VAL "1+2", which makes all nowadays ... compilers to print 1, not 3, so I shot ...
    Marcelo Marcelo November 2005 Sinclair Basic
  • BASin release 12c available for downloadHi again, folks - I've had no more reports of further bugs in BASin, so I'm assuming that we've now got a stable editor. Release 12c is now availab…

    ... always miss the Sinclair PRINT VAL "1+2", which makes all nowadays ... compilers to print 1, not 3, so I shot ... />
    $ perl -le 'print eval "1+2"'
    3

    Philip Kendall Philip Kendall November 2005 Sinclair Basic
  • BASin release 12c available for downloadHi again, folks - I've had no more reports of further bugs in BASin, so I'm assuming that we've now got a stable editor. Release 12c is now availab…

    ... always miss the Sinclair PRINT VAL "1+2", which makes all nowadays ... compilers to print 1, not 3, so I shot ...
    na_th_an na_th_an November 2005 Sinclair Basic
  • BASin release 12c available for downloadHi again, folks - I've had no more reports of further bugs in BASin, so I'm assuming that we've now got a stable editor. Release 12c is now availab…

    ... always miss the Sinclair PRINT VAL "1+2", which makes all nowadays ... compilers to print 1, not 3, so I shot ...
    Dunny Dunny November 2005 Sinclair Basic
  • Which would be fasterSay you want to use a variable value of 0 to 255 in a BASIC program, which way would be fastest? Say for arguments sake you wanted to use two variabl…

    ... value equal another?

    1) Using the standard Spectrum BASIC ... example nnn, where nnn=1)

    2) VAL "1"

    3 ... is the fastest between examples 1) and 2) ?[/QUOTE]


    VAL is a good space saving ...
    Matt_B Matt_B September 2006 Development
  • New - BASin r13a is available for downloadHi all, Here's the latest BASin. Mostly just bugfixes, but also now has the upgraded UDG editor which can now edit multiple UDGs on one editing gri…

    ... br />
    sounds like 1 pixel = 1 Printer Dot

    ... line of the program : 1 LET num1=12* (typo ... so I deleted the line 1. And it disappears normally. Then ... I rewrite first line: 1 LET num1=120 , and ... changing all let a=1's to let a=val "1"'s?
    Arda Arda October 2006 Emulators
  • basin & spinWhen a basic program is loaded into Basin from .tzx does it display the real basic underneath or what the basic has been made to look like by the sof…

    ... course also the reason that VAL "1" takes up less bytes than ...
    Philip Kendall Philip Kendall January 2007 Emulators
  • How can I view code from a game?Hi All, I had a Spectrum years ago and it is what started my love for playing games. I have recently been playing some of the old games I used to pl…

    ... VAL "105",VAL "88",VAL "2"
    70 PLOT VAL "98",VAL "45": DRAW -VAL "52",VAL ... "60",-VAL "1 ... .5"
    80 RETURN
    300 RANDOMIZE USR VAL ...
    Digital Prawn Digital Prawn August 2007 Sinclair Miscellaneous
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... /> lfsr = (lfsr ^ (-(lfsr & 1) & 0x0408)) / 2; // taps at ... br /> {
    int val;

    galLFSR(1); // set initial state ... to 1

    do
    {
    val = galLFSR( ...
    Alcoholics Anonymous Alcoholics Anonymous March 2008 Sinclair Basic
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... lfsr = (lfsr/2) ^ (-(lfsr & 1) & 0x8805); // taps at 16 ... {
    unsigned int val;

    galLFSR16(1); // set initial state to ... 1

    do
    {
    val = galLFSR16( ...
    Alcoholics Anonymous Alcoholics Anonymous March 2008 Sinclair Basic
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... with taps at 10, 7, 1
    10 DEF FN l ... val = 1
    40 LET val = FN l(val,FN t(val,8),FN t(val,1 ... ))
    50 IF val
    Alcoholics Anonymous Alcoholics Anonymous March 2008 Sinclair Basic
  • BIN shorter than NOT PI?Some time ago I checked many loaders and want to ask why coders are using BIN and not NOT PI? NOT PI is only 2 Bytes, BIN would be better if it would…

    ... to do this is with VAL:

    [B]Let s ... =VAL "7"[/B]
    uses three ... extra bytes for the VAL and the two " characters, but ... bytes in total, whereas [B]VAL "1"[/B] would be four bytes ...
    ajmoss ajmoss June 2009 Sinclair Basic
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... d stop short of supporting "VAL" and "DEF FN" ... complex functions to manage. VAL is a fairly simple ... just want to do VAL("32"), but the Speccy ... sorts of expressions, such as VAL"(1+2)*3".

    VAL" subroutine that picked off ...
    joefish joefish November 2009 Games
  • Correct flag response to BIT n,(HL) etc.When running the test program suggested by Arjun (thanks again), all intructions are passing the flag tests except the BIT n,(HL), BIT n,(IX+dis) and…

    ... /> if ((BIT == 7) && (VAL & 0x80)) F |= FLAG_S;
    Madonna Mk 2 Madonna Mk 2 May 2010 Emulators
  • Correct flag response to BIT n,(HL) etc.When running the test program suggested by Arjun (thanks again), all intructions are passing the flag tests except the BIT n,(HL), BIT n,(IX+dis) and…

    ... /> if ((BIT == 7) && (VAL & 0x80)) F |= FLAG_S;
    alien8r33d alien8r33d May 2010 Emulators
  • New Mojon Twins Release: Cheril Perils.[I]Cheril, thanks to her strenght and intelligence, was able to say goodbye to her homeland, the jungle of Badajoz, travel accross the dusty paths fu…

    ...
    30 RESTORE VAL "50": FOR A=VAL "1" TO VAL "2": READ B ... D=B TO B+C-VAL "1": READ C: POKE D,C ... DATA VAL "56557",VAL "3",VAL "195",VAL "0",VAL "96"
    60 DATA VAL "24576",VAL ...
    FrankT FrankT July 2010 Games
  • VAL SCREEN$I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL S…

    I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL SCREEN$ (1,1).

    I cant get it to work now...

    Any ideas?!:-?
    daveysludge daveysludge January 2012 Sinclair Basic
  • BIFROST* Advanced Programming - part 1In BIFROST*, it's much easier to just make changes in the tile map and let the engine automatically draw & animate everything in multicolor for you. …

    ... ]/* ----------------------------------------------------------------
    * BIFROST* ENGINE HI-DEMO #1
    *
    * Requires "BIFROSTENGINEV1.2H_z88dkInterface ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas July 2012 Development
  • Keys in 48k mode for SpecEmu 1.2?Hello all, Does anyone know how to get the " symbol to appear when in 48k mode on Spec Emu 1.2? As you can imagine, it's pretty essential to be able…

    ... 48k mode on Spec Emu 1.2? As you can imagine ...
    David David July 2001 Emulators
  • Interface 1Hi, Just got myself an Interface 1 only to find it does not work. That is to say that I can't use any of the extended commands on it,e.g. CAT 1, LOA…

    ... /> Just got myself an Interface 1 only to find it does ... it,e.g. CAT 1, LOAD *"m";1;"example".....

    I ... Spectrum and not the interface 1?

    Thanks
    GazzaB GazzaB September 2001 Sinclair Miscellaneous
<1234567…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21

HitBox

Word Docs Hits
val 705 2.3K
1 73.3K 143.7K

Related Threads

  • Fuse for Mac OS X 1.1.1.1 ReleasedA new version of Fuse for Mac OS X has been released at the dedicated sourceforge project and shortly here on WoS:<br /> <br /> [url]http://sourcefor…
  • ANNOUNCE: Fuse 0.6.1.1, libspectrum 0.2.0.1Hi all.<br /> <br /> The recently released Fuse 0.6.1 and libspectrum 0.2.0 contained a couple of moderately serious bugs:<br /> <br /> * The SVGAlib…
  • Input Magazine Vol 1 & 2 (pgs 1-824, mag 1-26) in BindersHaving a mini clear out and I've got two sets of these now so if anybody wants my spare one you can have it for postage which will be about ?7 to UK …
  • Fuse 1.1.1 releasedOn behalf of the Fuse team, I am pleased to announce the 1.1.1 release of Fuse. The changes from the recent 1.1.0 are relatively minor, mostly correc…
  • Fuse for Mac OS X 1.1.1 ReleasedA new version of Fuse for Mac OS X has been released at the dedicated sourceforge project and shortly here on WoS:<br /> <br /> [url]http://sourcefor…
  • Bug in Fuse 1.1.1 recording RZX filesI've spent a few hours trying to record a completion run of Rasterscan for the RZX Archive website.<br /> <br /> The recording seemingly records file…
  • Fuse emulator 1.1.1 for the Rasbperry PiHello, have been waiting for a long time for an official update to the Fuse emulator on the Raspberry Pi, currently at version 1.0.0. Today decided t…
  • Fuse 1.1.1 and DSK file supportDear reades,<br /> <br /> I'm working with Fuse 1.1.1 for Windows. I'm not able to use a valid (and with Spectaculator and my own tools working) DSK …
  • Fuse 0.5.1 and libspectrum 0.1.0 releasedVersion 0.5.1 of Fuse, the Free Unix Spectrum Emulator, is now available from its homepage, [url="http://www.srcf.ucam.org/~pak21/spectrum/fuse.html"…
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax.<br /> <br /> what is the difference between val "1" and 1?<br /> <br /> …

Related Searches

  • r forum loading error 0 1
  • r tape loading error 0 1
  • val
  • inzerface 1
  • interface 1 voltage
  • multiface 1
  • 1 bit music
  • disk has been changed 1 5
  • 3 2 1
  • traco power tsr 1 2450
  • tax 1 20
  • issue 1
  • issue 1 ebay
  • tommygun 1 2
  • interface 1 bis
  • fuse 1 0
  • fuse 1 0 released
  • fuse 1 2 0
  • specemu 1 5
  • zx spectrum emulator 1 5

Copyright © 2024 World of Spectrum