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 706 results in 0.001s
<1234567…24>
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... br /> rst $20 ;step over +VAL"
    rst $20
    ... "RLC ";a,"= ";USR 40021+VAL "(,a"
    23 PRINT " ... RRC ";a,"= ";USR 40021+VAL "),a"
    24 PRINT " ... "SRA ";a,"= ";USR 40021+VAL "],a"
    35 PRINT '" ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • tiny routine to shift RAMTOP & stackCompressing some data areas above RAMTOP and wanting to make the released space available for BASIC arrays, I needed to move RAMTOP without using CLE…

    ... /> [code]
    ;Change RAMTOP to "val" without clearing variables
    ;POKE ...
    Battle Bunny Battle Bunny November 2011 Sinclair Basic
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in var…

    ... can already be done with VAL or VAL$, but this works with ...
    10 PRINT USR id,"val"+CHR$ (a+64),"=",v;
    VAL ("val"+CHR$ (a+64));
    20 ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Generating a constant of 2?Hi Folks, Through "The Wizard of WOS" I learnt that you can generate constants as follows: [B]NOT PI=0 SGN PI=1 INT PI=3[/B] Is there a quick way …

    ... are 37 occurences of [B]VAL "2"[/B] and I was ...
    Paddy Coleman Paddy Coleman February 2012 Sinclair Basic
  • stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…

    ... with quoting and parenthesising and VAL$ering I always get either ... $(s,l)=CHR$ PEEK (s)+VAL$ "FN j$(s+1,l ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... b$(n,s$)
    =s$+VAL$ (("FN b$(" + STR$ INT (n ...
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • Tunnel Adventure: Known Error?I've been playing this game lately, and found out that both the current versions of [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0017444"]T…

    ... program, you must replace the "VAL v$" in line 351 with ... "VAL x$".

    Interestingly, in ... versie), this line actually has "VAL x$" in it. I don ...
    Timmy Timmy April 2012 Infoseek database
  • 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. …

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas July 2012 Development
  • BIFROST* Advanced Programming - part 2This second demo shows animated and moving tiles together, and also how to implement collision detection. This knowledge should be enough to implemen…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas July 2012 Development
  • BIFROST* Advanced Programming - part 3This new demo demonstrates the BIFROST* built-in sprite support that I mentioned before. In BIFROST*, "sprite tiles" are 2 special tiles that BIFROS…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas July 2012 Development
  • BIFROST* Advanced Programming - part 4In previous posts I demonstrated how to move multicolor tiles up and down smoothly by a single pixel, and sideways by an entire char (8 pixels). Thi…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas August 2012 Development
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    Hi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place.

    Thanks everyone so far, I feel I am making good progress.

    Reading the book ZX Spectrum Games Master. Its a great start ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • BIFROST* Advanced Programming - part 5In my [URL="http://www.worldofspectrum.org/forums/showthread.php?t=40437"]previous post[/URL] I demonstrated how to move multicolor images smoothly i…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "tiles ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas August 2012 Development
  • BIFROST* Advanced Programming - part 6The purpose of this demo is somewhat different from previous ones. Instead of teaching a new technique, the main goal here is to demonstrate how much…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "tiles ... "CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original version ...
    Einar Saukas Einar Saukas September 2012 Development
  • Questions about BasicHi everyone, I am Max, student of media studies in berlin, and I have to do a little project on the spectrum. I am working on a sinclair zx spectrum…

    ... did it;)
    a=val("hallo")
    a=val("15")


    val$="hallo"

    3. the ...
    lomax030 lomax030 December 2012 Sinclair Basic
  • TXT2EMU enhancementI was looking at the encodings supported by BAS2TAP for entering graphics, print controls, etc. as plain text. Basically, there's only one needed, be…

    ... $(s,l)=CHR$ PEEK (s)+VAL$ (("FN j$("+STR$ (s+1 ... $(s,l)=CHR$ PEEK (s)+VAL$ (("{A8} j$("+STR$ (s+1 ...
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... )=5 THEN
    LET loc=VAL VAL$ (CHR$ PEEK (a-3)+"$"):
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…

    ... $ I+FN b$(VAL r$): LET I=VAL s$(LEN s$): POKE ... r$
    903 LET r=VAL s$(TO LEN s$-1 ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... AND n>500)
    +VAL$ (("FN t$("
    +STR$ (n ...
    Battle Bunny Battle Bunny August 2013 Sinclair Basic
  • SpecBAS 0.800 Released!Hi folks, it's that time again for another release. I was going to add a few more features, but I have other projects on the go at the moment, and it…

    ... after NEW and RUN
    VAL no longer crashes specbas with ...
    Dunny Dunny December 2013 Sinclair Basic
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... at: 24000

    clear val "23999": load""code 24000,21696 ...
    Speccy_James Speccy_James January 2014 Development
  • reversing an LFSRWhat's the correct way of reversing an LFSR so that it produces the same numbers but in reverse order? The little BASIC program below shows a test I …

    ...
    20 LET xor=VAL a$(4)+VAL a$(5): LET xor ...
    21 LET xor=xor+VAL a$(3): LET xor=xor ...
    22 LET xor=xor+VAL a$(2): LET xor=xor ...
    Battle Bunny Battle Bunny February 2014 Development
  • GEDit syntax highlighting for Boriel's ZX BasicHi! I just tailored this syntax highlighting code and would like to share with he community. Suggestions are always welcome, though the file works w…

    ...
    ubound
    until
    val
    verify
    wend
    pkersey pkersey February 2014 Development
  • SpecBAS 0.802 Released!Hi folks - It's that time again when I release the latest round of features and bugfixes to SpecBAS :) New for this version are ZONEs which act ver…

    ... size on close
    DECIMAL(val$,base) function converts from a ...
    Dunny Dunny February 2014 Sinclair Basic
  • eVALuating $ in +3 BasicHi all, I was very interested in the thread below about re-starting Basic, and remember reasonable amounts from zx81 and early Spectrums. But I now h…

    ... code the idea is to VAL this $ and make it equal ...
    sliderules sliderules March 2014 Sinclair Basic
  • Can anyone explain this result?This little sub-routine isn't always doing what it's supposed to; ie. transfer the value from SEED to VARS. Can anyone explain why? I've put in the P…

    ... VAL "23627",PEEK VAL "23670": POKE VAL "23628",PEEK VAL "23671":
    PRINT PEEK VAL ... "23627",PEEK VAL ...
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • SpecBAS 0.830 Released!Hi guys - A new official release of SpecBAS has been released. The full changelog is below, but for now here's the download: [url]https://sites.goo…

    ... not perform evaluation as for VAL
    POS has a new ... were inappropriately cleared at times (VAL/VAL$ being a culprit, but there ...
    Dunny Dunny February 2015 Sinclair Basic
  • Raycasting (3D Games!) with SpecBAS<div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">Here's one I wrote just recently. I wanted to see …

    Here's one I wrote just recently. I wanted to see if SpecBAS can handle a raycasting engine - which doesn't mean doom-style texture mapping (though I may try that later!) but a rather nice algorithm that matches nicely up with the old "3D Maze" games you ...
    Dunny Dunny May 2015 Sinclair Basic
  • Scart 128 toastrack tip (powered scart)<br>It you have a toastrack you may like to know that you can create a powered cable ( +5v to the pin 16 on the scart) with out taking it from the sp…

    It you have a toastrack you may like to know that you can create a powered cable ( +5v to the pin 16 on the scart) with out taking it from the speccy, or modding you speccy .


    Most LED TVs (well the ones I have, Samsung and Logik) have ...
    Steve(spt) Steve(spt) May 2015 Hardware
  • NEW "SH*T GAME TIME" VIDEO - RENEGADE IIIHi guys, god it's good to get these forums back even though I'm not sure about the new look but hey I'm happy.<br><br>Anyway, just wanted to let you …

    Hi guys, god it's good to get these forums back even though I'm not sure about the new look but hey I'm happy.

    Anyway, just wanted to let you know the next entry in my "S**t Game Time" section is now up and live to watch, this time I rate ...
    ZEUS ZEUS May 2015 Announcements
<1234567…24>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Your Spec-chum on 7:28AM
  • Your Favorite Magazine Cover Tapes.
    Paradigm Shifter on 1:28AM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11
  • Footballer of the year - translated version
    firelord on April 11

HitBox

Word Docs Hits
val 705 2.3K
mcneal 1 1

Related Threads

  • 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 /> …
  • 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…
  • 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…
  • Interesting VAL featureHi Folks,<br /> <br /> No doubt most people know this but it is new to me! The following code generates the answer of 10.<br /> <br /> <br /> […

Related Searches

  • val
  • randomize usr val
  • randomize val
  • val string
  • val float bytes
  • val string save space
  • val string save memory
  • val string memory
  • val memory
  • val beep
  • val beep kgmcneil
  • beep val save memory
  • beep val mcneal
  • beep val
  • val karl
  • val mcneal
  • val mcneil
  • val 1
  • kgmcneil val
  • let bk3 peek val x 18

Copyright © 2024 World of Spectrum