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.014s
<1234567…34>
  • 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…

    ... PI:PAPER NOT PI:CLEAR VAL "24569": POKE 23739,CODE ... I
    3 RANDOMIZE USR VAL"24570"
    [/CODE]
    memory paging from basic.
    VAL string as well. On some ... save three bytes of memory. On Spectrums we still ...
    Speccyman Speccyman August 2010 Development
  • Renumbering routinesI sometimes modify programs that either I or others have written and sensibly renumber them - usually 10/10, to make future alterations easier and ma…

    ... Homer. They don't handle VAL "" though. Even the renumber routine ... Your Spectrum doesn't handle VAL "" numbers, probably because it's ... , not a literal, and a VAL string might hold more than just ...
    Battle Bunny Battle Bunny September 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…

    ... the first letter of the string capitalized. Something like this will ... />
    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 ... I'm doing that by string slicing the "+FN..." bit off ...
    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
  • A new ZX spectrum cloneOver the past 12 months i have been developing a new spectrum clone as a hobby project to waste my spare time on. It is still not fully complete yet …

    ... USR with numeric argument, FN, VAL, string functions, or PEEK would be ...
    mcleod_ideafix mcleod_ideafix August 2012 Hardware
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    ... poke a string of characters including colour control codes to memory, I ... do it by poking a string such as A$?
    daveysludge daveysludge March 2012 Sinclair Basic
  • String slicing for UDG definitionHey everyone. Got a bit of a string slicing/string to variable conversion problem. 10 let a$="01100110" 20 let pokevalue=???? What expression do I…

    ... a bit of a string slicing/string to variable conversion problem.
    VAL or VAL$ somewhere, but being a ...
    BigBadMick BigBadMick April 2005 Development
  • ANNOUNCE: BASin r14 is up. New SCREEN$ paintbox included.Hi all, Well, I can't sit on this any longer - so I've released it. Let's all get a good testing session going, eh? You can get the new BASin [url=…

    ... tokenising/detokenising a whole string on the popupmenu. Basically ... more pathological uses of the VAL$ function.
    Added - ... BASin, either directly into memory or translated into BASIC. ... Jahn)
    Fixed - Saving string arrays could be problematic - it ...
    Dunny Dunny February 2008 Emulators
  • 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 the ... $=VAL$ v$[/b]
    for a string, or:
    [b]LET anumber=VAL VAL ...
    Battle Bunny Battle Bunny October 2010 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…

    ... from memory starting at 's' and return them as a string, but ... parenthesising and VAL$ering I always get either "Out of memory" or ... $(s,l)=CHR$ PEEK (s)+VAL$ "FN j$(s+1,l ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • How much memory on sprites, maps etc.I've been tinkering with shifting & pre-shifting sprites recently, but as I haven't had that much experience with Z80 assembly I sometimes find it ha…

    ... too much" as far as memory allocation is concerned.

    string' question, but I'd be ... types tend to pre-allocate memory for different aspects of a ...
    Morkin Morkin September 2012 Development
  • 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 ... from memory starting at 's' and returns them as a string.) This ...
    Battle Bunny Battle Bunny May 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…

    ... /> More optimisation to internal string handling
    You can, ... regular string slicers
    Streams can now access memory banks ... operations were overruning their allocated memory
    PRINTing at ... NEW and RUN
    VAL no longer crashes specbas ...
    Dunny Dunny December 2013 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…

    ... will remove an array from memory - can be quite ... VAL
    POS has a new (optional) parameter - POS(substr,string ... [,start]) begins searching "string" for "substr" ... CAT shows the wildcard match string correctly
    The wildcard ...
    Dunny Dunny February 2015 Sinclair Basic
  • SpecBAS 0.900 ReleasedAgainst my better judgement, here's 0.900. It's got lots and lots new, but mostly the new shiny is the editor. You can indent your code, you can e…

    ... Optimisation to IF/ELSE addressing string characters
    Reduced CPU ... (mostly graphics, but memory filling and allocation too)< ... Fix for TOKEN$, VAL$ and VAL which fail due to ... caused problems
    String multiplication with negative values ...
    Dunny Dunny April 2017 Sinclair Basic
  • How to separate a character from a number in a string?Hi I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say you w…

    ... in BASIC that takes a string a$ from INPUT and then ... . Is there some trick with VAL or CHR$ so the Speccy ... character it reads in the string a$ is a number or ...
    ivanb303 ivanb303 May 2017 Sinclair Basic
  • How do I save?I've made a HUGE text adventure with lots of collectables and lots of locations, but how can I get the user to save their game to tape if they need t…

    ... easier to set up a string array for the player's ... take up a bit more memory though. Alternatively, you could set ... $
    40 IF I(c) = VAL D$ THEN READ D$: PRINT ... D$
    50 IF VAL D$ 999 THEN GO TO ...
    Ian Hamilton Ian Hamilton December 2005 Sinclair Basic
  • Sintech titles no longer denienced!8 years after the initial denience ( June 1998 ), the 3 Ultrasoft titles that [URL="http://www.worldofspectrum.org/infoseekpub.cgi?regexp=Sintech"]Si…

    iirc, numbers take up quite a bit of memory. Storing the equivalent string and converting it 'on the fly' with VAL is more efficient storage-wise.
    Lee Tonks Lee Tonks July 2006 Games
  • Sintech titles no longer denienced!8 years after the initial denience ( June 1998 ), the 3 Ultrasoft titles that [URL="http://www.worldofspectrum.org/infoseekpub.cgi?regexp=Sintech"]Si…

    ... memory. Storing the equivalent string and converting it 'on the fly' with VAL ...
    nekdo123 nekdo123 July 2006 Games
  • Sintech titles no longer denienced!8 years after the initial denience ( June 1998 ), the 3 Ultrasoft titles that [URL="http://www.worldofspectrum.org/infoseekpub.cgi?regexp=Sintech"]Si…

    ... is represented by its ascii string of digits followed by 14 ... POKE VAL "40653", VAL "59" takes at least 6 bytes less memory than ... POKE 40653, 59 (VAL "40653" takes 8 ... 40653 takes 5 bytes for string, then 14 and then 5 ...
    nekdo123 nekdo123 July 2006 Games
  • Sintech titles no longer denienced!8 years after the initial denience ( June 1998 ), the 3 Ultrasoft titles that [URL="http://www.worldofspectrum.org/infoseekpub.cgi?regexp=Sintech"]Si…

    ... POKE VAL "40653", VAL "59" takes at least 6 bytes less memory than ... POKE 40653, 59 (VAL "40653" takes 8 ... 40653 takes 5 bytes for string, then 14 and then 5 ...
    Alcoholics Anonymous Alcoholics Anonymous July 2006 Games
  • 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 in non-contended memory above RAMTOP, i.e ... Forget about trying to escape memory contention in BASIC. You can ... nnn=1)

    2) VAL "1"

    3) ... to do.

    VAL is a good space saving ... has to evalulate the string before it can use ...
    Matt_B Matt_B September 2006 Development
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... up memory. An alternative is to store the formula in a string ... ]

    And then use VAL a$ to evaluate it when ...
    Alcoholics Anonymous Alcoholics Anonymous March 2007 Sinclair Basic
  • IF2 Rom snapshot creationHi, is it possible convert a Speccy 16k snapshot to a Interface 2 Rom file? I've the original Ultimate Pssst, Cookie, Trans-am and Jetpac tapes and …

    ... $B0 ;is number beginning with VAL?
    JR Z,getval
    prmsg:
    ;print ASCII string following CALL statement
    ;last ... /> #END
    [/CODE]

    Memory map of ROM created is ...
    Jimmy Jimmy April 2008 Emulators
  • What is the (hypothetically) largest 9999 lines BASIC program possible?If the Speccy had infinite amounts of memory, what is the largest 9999 line BASIC program that could be made? (in K and amount of instructions) (Yet…

    ... 5 and using the Debug Memory Viewer, you can highlight the ... .

    Using VAL to evaluate large string expressions you can really ...
    Geoff Geoff 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…

    ... /> As it's a string function, VAL$ needs to be used to ... ) returns the addressed byte from memory;
    * ("FN j$("+STR$ (s ... values are calculated before VAL$ sees the string. Thus for the function ... still fail with "Out of memory", as each iteration creates a ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
<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
string 2.8K 5.1K
memory 21.8K 32.5K

Related Threads

  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand:<br /> <br /> 16,2,19,1,22,1,1,14…
  • 32k memory Italian memory expansionNot mine but its an [URL="http://www.ebay.co.uk/itm/TENKOLEK-32K-RAM-Expansion-Sinclair-ZX-Spectrum-/320861810075?pt=UK_VintageComputing_RL&amp;hash=…
  • 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 …
  • What's you happiest speccy related memory?Mine would have to be coming home from school at lunchtime with a couple of friends, loading up manic miner or commando for a quick 30 minute game-pl…
  • Funniest Speccy related memoryOkay, there maybe won't be that many, but I have a couple that might conjour up some jolly jape memories.<br /> <br /> 1. Walking home from school wi…
  • What is your worst Speccy related memory?We've had the good times, but there were bad times too. I will give you two choice cuts from my back catalogue...<br /> Over at a friends house, want…
  • Memory usageBrowsing the online documentation for the Spectrum I came across a peculiar discrepency.<br /> As we all know the start of the RAM is at 16384 which …
  • 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 /> …
  • 128 Memory PagingI'm having a problem getting my brain around paging. Well, actually the bit I don't understand is how reading I/O ports works! I hope the collective …
  • ZX80/81 memory expansion and 48k + Lightpen for saleAll are in original packaging and the lightpen has it's software and manual.<br /> <br /> The memory expansion is a 16k one.<br /> <br /> E-mail me a…

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • lowest memory
  • memory map
  • val
  • led storm memory
  • ld bc eostr string
  • string memory
  • string from memory
  • basic memory string copy
  • basic memory fast string copy
  • val string
  • val string save space
  • val string memory
  • val memory
  • beep val save memory
  • beep val save memory mcneal

Copyright © 2024 World of Spectrum