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.025s
<1…21222324252627…34>
  • Question about operations and target numbers[size=1]Title should say *operators. It's been a long day.[/size] :p One of the homework problems my kids are working on consists on using a set of …

    ... routine. :-D

    [CODE]1 PAPER 7: BORDER 7: INK ... DIM a(4): FOR b=1 TO 4: INPUT "n.";(b ... )+")"
    110 IF d$="/" AND VAL e$=0 THEN GO TO ... ,0;"Search complete.","Numbers: ";a(1);",";a(2);",";a(3);",";a ... ,y1;a$: LET x1=x1+1: IF x1=20 AND y1 ...
    zxbruno zxbruno October 2009 Sinclair Basic
  • Req' Help with Random numbersHello all, im new to the forum, i hope im putting this in the right place ... I would like to ask a question in the hope someone will be able to as…

    ...

    a is 1
    b is 2
    VAL(a$(1))
    30 LET b = VAL(a$(2))< ... br /> 40 LET c = VAL ... br /> 50 LET d = VAL(a$(4))
    60 LET ... e = VAL(a$(5))
    [/code]
    1 TO 5
    40 LET n(i) = VAL(a$( ...
    gasman gasman November 2009 Sinclair Basic
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    Arjun, the upper$ and lower$ functions only return the first letter of the string capitalized. Something like this will do the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND CODE s$
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... />
    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND ...
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... the bit happening inside the VAL$, I'm a bit stumped ... 28+12*(LEN s$>1)). How does that work?
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    [QUOTE=Alcoholics Anonymous;413667]The recursion has to be terminated somehow and I'm doing that by string slicing the "+FN..." bit off if the string length is
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • Converting games from tap to dskHi to all from Greece, Being an old Speccy user and now owner of most models of Spectrum (48k , 48k+ , 128K, +2 grey and +3) , I desided to salvage m…

    ... "CODE
    20 FOR X=1 TO 4 : READ A: LOAD ... $ (a)CODE 32768: RANDOMIZE USR VAL "30000+j": LET j=j ... switching while others use 0,1,2 etc. Shade some light ...
    batsilos batsilos February 2010 Emulators
  • BEEP pitch values for key of G?I've been transcribing a listing which is supposed to include a DATA statement with the pitch values for the key of G. What it's got is: DATA 5,7,9,…

    ...
    30 DATA STR$ 5, VAL "5"

    although I ... :

    20 FOR f=1 TO 7: READ s$(f ... ): FOR g=1 TO 12: READ s((f ... -1)*12+g): NEXT g: NEXT ...
    Battle Bunny Battle Bunny March 2010 Sinclair Basic
  • Found an old tapeWay back in the 80's I wrote some basic (and later compiled basic) programs to hold character data for playing the fighting fantasy books. I tried fl…

    ... 1030
    1033 LET num=VAL z$: IF num40 THEN GO ... IF z$="" THEN LET error=1: RETURN
    9310 FOR f ... =1 TO LEN z$: IF z$( ... f)"9" THEN LET error=1: RETURN
    9320 LET error ...
    Gedlion Gedlion July 2010 MIA/STP/SDP
  • Seeking alternatives to DATA statementsAnyone know of any memory saving alternatives to storing a list of numbers, other than using DATA statements or poking data into addresses?... Im ti…

    ... DATA 23,70,23,71,1,69,1,72
    you could ... n=1 TO 13 STEP 4
    22 LET l=VAL l ... $(n TO n+1): IF l=0 ... 20
    23 LET p=VAL l$(n+2 TO n ...
    Battle Bunny Battle Bunny August 2010 Sinclair Basic
  • Challenge: Make a Speccy version of "Leisure Suit Larry 1"and put it on this site as a rom c'mon be nice!

    ... /> OF 
    MEM˙ţ
    ˙1

    ĐĐĐ˙
     ... MEMORIA ˙ Um numero entre 1 e 9999.˙Mensagem numero ?........˙
    1-restore˙
    ˙˙ ˙˙
    ... JOGĎAČAIII? QUANTĎ VALĹ SHO?LOMBARD? DIG?LA ...
    Ralf Ralf August 2010 Development
  • Message to all programmersHello folks, more and more programmers in the recent time are using special loading routines for their Homebrew-Software. This makes their game runn…

    ... like:

    [CODE]
    1 BORDER NOT PI:INK NOT ... PI:PAPER NOT PI:CLEAR VAL "24569": POKE 23739,CODE "o ... FOR i=SGN PI TO VAL "8":OUT 32765, i:LOAD ... I
    3 RANDOMIZE USR VAL"24570"
    [/CODE]

    Fikee Fikee August 2010 Development
  • Message to all programmersHello folks, more and more programmers in the recent time are using special loading routines for their Homebrew-Software. This makes their game runn…

    ... like:

    [CODE]
    1 BORDER NOT PI:INK NOT ... PI:PAPER NOT PI:CLEAR VAL "24569": POKE 23739,CODE "o ... FOR i=SGN PI TO VAL "8":OUT 32765, i:LOAD ... I
    3 RANDOMIZE USR VAL"24570"
    [/CODE]

    LCD LCD August 2010 Development
  • Message to all programmersHello folks, more and more programmers in the recent time are using special loading routines for their Homebrew-Software. This makes their game runn…

    ... like:

    [CODE]
    1 BORDER NOT PI:INK NOT ... PI:PAPER NOT PI:CLEAR VAL "24569": POKE 23739,CODE " ... FOR i=SGN PI TO VAL "8":OUT 32765, i: ... I
    3 RANDOMIZE USR VAL"24570"
    [/CODE]

    VAL string as well. On some ...
    Speccyman Speccyman August 2010 Development
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    [code]
    10 input d$ : REM OR D AND D$=STR$ D
    20 let y=val d$(1 TO 4): let m=val d$(5 TO 6): let d=val d$(7 TO)
    [/code]
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ... ; White
    30 BRIGHT 1: BORDER 0: PAPER 0: INK ... --------------------------
    9115 LET i0=1: LET n$="": LET t$="3 ... 9180 LET v0=v0+1: LET i0=i0+1
    9185 LET ... $;TAB (15);t$;TAB (25);VAL$ (n$)
    9320 PRINT ... br /> 9380 LET i0=i0+1
    9385 IF i0PEEK ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…

    ... DEF FN b$(n,d)=VAL$ "STR$ nFN b$(INT (n ... (n/d),d/2)"
    ((1+2*(d>=2)) TO ...
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    [code]
    1 let b$="hello"
    2 let v$="b$"
    3 let a$=VAL$ v$
    4 print a$
    [/code]
    Dr BEEP Dr BEEP October 2010 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    [QUOTE=Dr BEEP;483699][code]
    1 let b$="hello"
    2 let v$="b$"
    3 let a$=VAL$ v$
    4 print a$
    [/code][/QUOTE]

    Very nice - scope for a [B]DEF FN[/B] there ?!
    jp jp October 2010 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    ... be themselves variable by using VAL$. Thus, if v$ holds ... , or:
    [B]LET anumber=VAL VAL$ "v$"[/B]
    for a ... something like this
    1 LET AA=1
    2 LET AB ... A$}=A{A$} = A{A$} +1 ; REM A$="A" or "B ... (2)
    2 LET A(1)=1
    3 LET A(2 ... LET A(B)=A(B)+1
    Dr BEEP Dr BEEP October 2010 Sinclair Basic
  • Z88DK tapfile creation questionHere's another question. The game I've just started working on (Sid Spanners 3), I'm concatenating the following tap files together, to make a big ta…

    ... /> //not "-n"
    basic_loader=1;
    }
    else
    ... {
    strncpy(name,argv[1],10);
    } else {
    strcpy(name,argv[1]);
    strncat(name," ",10 ... -strlen(argv[1]));
    }
    for ...
    Digital Prawn Digital Prawn January 2011 Development
  • Converting a decimal number to binary...Hi Folks, Been thinking about ways to convert a decimal number to 8 bit binary and came up with the following: [CODE]100 REM ----------------------…

    ... c$
    40 LET num=VAL c$
    50 PRINT num ... />
    [CODE]...
    LET num=VAL (CHR$ 196+b$)
    ...[/CODE ... I assume is less than 1 frame! ;)

    Paddy
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... . You can save memory using VAL "64564" instead, in this case ... can use NOT PI, for 1 SGN PI. You can see ...
    Shiru Shiru February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... . You can save memory using VAL "64564" instead, in this case ... can use NOT PI, for 1 SGN PI. You can see ... floating point internal storage plus 1 byte for each digit displayed ...
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ...
    [CODE]xxxx PAUSE 1:
    RANDOMIZE USR 64564[/CODE ... br /> [FONT=Courier New]PAUSE = 1 byte[/FONT]
    [FONT=Courier ... [FONT=Courier New]RANDOMIZE = 1 byte[/FONT]
    [FONT= ... SGN PI:
    RANDOMIZE USR VAL "64564"[/CODE]

    Dr BEEP Dr BEEP February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... 192+"64564"
    ...
    RANDOMIZE VAL r$
    ...[/CODE]

    1+5 bytes. You can save ... $="USR 64564"
    ...
    RANDOMIZE VAL r$[/code]

    Assuming ... program will execute at line 1.

    The result ...
    mcleod_ideafix mcleod_ideafix February 2011 Sinclair Basic
<1…21222324252627…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