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.005s
<1234567…34>
  • handy method for passing m/c parametersI knew that a single number or string parameter could be passed to a m/c routine with either: [b]LET a=b+USR address[/b] puts b on the calculator st…

    ... $ is just a throw-away variable, as it gets the BC ... use that method for short strings, when the returned value wasn ...
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • The Official Crap Games Competition 2013 Thread!Just to announce that the 2013 CGC is OPEN! [IMG]http://i1142.photobucket.com/albums/n608/daveyboyhughes/cgctitle2_zps77591934.jpg[/IMG] And for th…

    ... hacks like use a string variable and encode row and column ... that arrays of variables (not strings) are 5 bytes per element ...
    Paradigm Shifter Paradigm Shifter July 2013 Games
  • 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…

    ... as numbers or strings. The variable names can be ... inc hl ;skip over next variable letter
    ret
    ld de,STRINGS
    call FIND
    Variable not found
    inc ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ...
    call sa_v_old_1 ; exclude simple strings
    jr z, sa_data_1 ;
    variable
    ld a, (hl) ; store ... bytes
    inc de ; for variable name
    inc de ; and ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; THE SCANNING VARIABLE ROUTINE
    org 0x26c9
    ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... /> res 6, c ; signal handle strings as numeric
    call stk_var ... /> call next_one ; start of next variable
    call reclaim_2 ; reclaim existing ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... br /> call look_vars ; variable exists?

    ; THE 'VARIABLE IN ASSIGNMENT' SUBROUTINE ... system variable
    or (hl) ; set bit 0 for simple strings
    push af ; stack system variable
    call scanning ; evaluate expression ...
    chev chev October 2013 Development
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ... it doesnt need the TICKS variable anymore like you said

    // Attach C Variable to Sprite Graphics Declared in ...

    You can print strings to the screen on the ...
    slenkar slenkar November 2013 Development
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... every reference to a variable (or function) involves a ... numeric arrays and DIMmed strings/arrays. It's of ... no use for simple strings as for them a ... be reclaimed and the variable redeclared at the end ... a FOR...NEXT control variable just use "FOR a ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... that every reference to a variable (or function) involves a sequential ... DIMmed numeric arrays and DIMmed strings/arrays. It's of no ... use for simple strings as for them a LET ... to be reclaimed and the variable redeclared at the end of ...
    dmsmith dmsmith December 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…

    ... /> [list]
    [*]If assigning a slice ( which the demo is doing ... destination parameters to match the slice and use "LET a$=string ... not efficient for copying short strings. It's blindingly efficient for ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • analysing program variable usageIf I wanted to count the number of times each variable is referenced while a program is running (not the number of times each variable is referenced …

    ... of decreasing frequency. Counts for strings may be in two parts ... the total count for the variable (eg. w$ was accessed by ...
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • FZX: a new standard format and driver for proportional fonts[B]FZX[/B] is a very compact and efficient (although extremely flexible and powerful) standard format to create new fonts for the ZX-Spectrum. It sup…

    ... br />

    For both strings (0 terminated text) and buffers ... given pixel width. This will slice words.
    *_partition_ww = as ... above but will only slice at spaces. No trailing spaces ... will be included in the slice.

    For string ...
    Alcoholics Anonymous Alcoholics Anonymous January 2015 Brand new software
  • 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 …

    ... height of the closest vertical slice for each pixel column of ... a table of very thin variable-height columns as my display ...
    joefish joefish August 2015 Sinclair Basic
  • Bored of the Rings coded messageI was browsing [url="https://tcrf.net/"]The Cutting Room Floor[/url] recently and stumbled upon the entry for [url="https://tcrf.net/Bored_of_the_Rin…

    ... the encoding might be using variable multiples of 16 as offsets ... skip the more obvious invalid strings.
    1 DATA 10: DATA ...
    Battle Bunny Battle Bunny May 2016 Games
  • TommyGun's getting a Debuggerhttp://youtu.be/B_kZVRvYV98 I have always wanted to debug the programs I write in TommyGun using TommyGun instead of the debuggers in emulators. …

    ... You can easily output a variable 1 (8 bit) or ... 2 bytes (16 bit) variable.
    You can also easily ... print out a 2 byte variable
    19 bytes ... defined message from the Strings editor (an expensive procedure ... with the debug output strings in it, in a ...
    Kiwi Kiwi July 2016 Development
  • Leading Zeroes on a Score in BASICI'm trying to print the score with leading zeroes such that it's always 6 characters wide, i.e.: 000010, 000150, 006100 etc. I quickly knocked thi…

    ... it in the "analysing program variable usage" thread back in ... for all numeric variable types and DIMed strings. Simple strings get re- ... optimised by removing any unused variable declarations and/or program ... the search times for variable data and program lines ...
    Battle Bunny Battle Bunny July 2016 Sinclair Basic
  • Empire - port of trs80 basic programBack when I was a little kid, I had the opportunity to play around with a trs80 model 1 with level 2 basic. One of the games I often played was call…

    ... ]
    Makes Z a string variable, O an integer and leaves ... later on; since MID$ treats strings as being one-indexed.
    GReW GReW July 2016 Brand new software
  • Speeding up programs by hacking the SysVarsPositively pleased to properly discover this area of the forum! I have a couple of recent tricks that might be of interest - they're probably old hat…

    ... multiple copies of the same variable name?[/quote]

    The ... comes to mind is simple strings, which are always re-allocated ... be stopped by assigning all strings with DIM, but that might ...
    Battle Bunny Battle Bunny September 2016 Sinclair Basic
  • POKE taking a variable amount of time...Hi Folks, Does anyone know why the following POKE statements seem to vary in their execution time? [code]100 POKE 60000,10 110 POKE 60001,16…

    ... /> [/quote]

    The system variable DEFADD points to the parameters ... and +65535 (the format for strings and real numbers is different ... /> LD IX,($5C0B) ; DEFADD system variable
    LD C,(IX+4 ...
    GReW GReW September 2016 Sinclair Basic
  • z88dk : Support FunctionsJust a quick one here, I am looking to doing some dirty dirty code with C and load a screen$ file from the disk using "system( command )" - yes I …

    ... the notes that if the variable is not declared in basic ... fallback is to write the strings to a fixed address in ...
    Alcoholics Anonymous Alcoholics Anonymous June 2017 Development
  • Need Some Basic HelpHi all, I’ve decided to give programming in Spectrum Basic a go again (bit of nostalgia trip!) and I’m trying to develop a CYOA style game. How…

    ... suggest either storing all your strings as assembler DEFMs and calling ... the string in SPARE2 system variable at 23728 $5CB0 for example ...
    dbolli dbolli March 2018 Sinclair Basic
  • Okay so can you save text as a data array ?So I was playing with this but I'm obviously not doing this correctly. [code] 10 INPUT "Enter some text: ";a$ 20 PRINT a$ RUN [/code] Now i'm…

    ... like that will cause your strings to be fixed length though ... Sinclair BASIC doesn't do variable length arrays.
    AndyC AndyC April 2018 Sinclair Basic
  • Okay so can you save text as a data array ?So I was playing with this but I'm obviously not doing this correctly. [code] 10 INPUT "Enter some text: ";a$ 20 PRINT a$ RUN [/code] Now i'm…

    ... to saving a pure string variable, it's not something Sinclair ... manual about how BASIC stores strings to achieve this, but it ...
    AndyC AndyC April 2018 Sinclair Basic
  • Brain 8I am glad to present my new "experiment" in Sinclair Spectrum 48K BASIC. https://drive.google.com/file/d/17_wCFWaAl5diIVt3rPLTbKhxDmPmYmOs/view?us…

    ... preserve the position of the variable i$ in the vars area ... LET i$="..." would put this variable at the end of variables ... I use a single string variable then I don't need ... statements for all the various strings? I can see you are ...
    patters patters April 2019 Brand new software
  • Brain 8I am glad to present my new "experiment" in Sinclair Spectrum 48K BASIC. https://drive.google.com/file/d/17_wCFWaAl5diIVt3rPLTbKhxDmPmYmOs/view?us…

    ... I use a single string variable then I don't need ... statements for all the various strings? I can see you are ... , speeding up the use of strings that are stored at the ...
    IvanBasic IvanBasic April 2019 Brand new software
<1234567…34>

Latest Posts

  • European Software Titles with an English version
    harriusherbartio on 9:50AM
  • Cooperative Games.
    harriusherbartio on 9:27AM
  • Happy 40th Birthday to the Amstrad CPC464!
    zx1 on 9:02AM
  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Celebrity deaths...
    mel the bell on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
slice 471 546
strings 1K 1.4K
variable 2.8K 4.2K

Related Threads

  • 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…
  • Character set variableCan anybody help me?<br /> I'm trying to find out where the pointer to the ascii character set is.<br /> I remember that if you wanted to change the …
  • I forgot which system variable I need...... to prevent the message 'start tape, then press any key'. I saw the system variables list but it's not helping. I know I used one poke to bypass t…
  • CHANS system variableI modified my original code to incorporate Woody's changes and avoid using the stack:<br /> <br /> [code]<br /> org 60000<br /> <br /> save_register…
  • A little slice of undocumented Sinclair historyHi, I'm incog, I dump computers/consoles for emulation in [URL="http://mess.org"]MESS[/URL].<br /> <br /> Recently I found a machine I had never hear…
  • How do I know where my C compiler is putting my variable?Let me show you my code. I am writing a Z80 emulator (z80.c) which sets up a bit of shared memory for communication with another process. Well, I got…
  • Location of variableHi everyone<br /> <br /> When basic makes an array how to you find out the location in the ram of where the data is stored. :)<br /> <br /> Also, doe…
  • Variable resistorI have a problem with my speakers - the treble is much much too quiet in comparison to the bass. Or you could say, the bass is much to loud for the r…
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source &amp; destination variables can themselves be defined in…
  • editing strings with INPUT LINEHere's the latest in my unpredictable series of utility routines. This one I needed for the SAGE game editor; it emulates INPUT LINE l$ but with the …

Related Searches

  • variable list
  • dim variable size
  • scroll system variable
  • issue 2 variable
  • replacement variable capacitor
  • replace variable resistor
  • draw basic third variable
  • draw third variable
  • draw third variable geoff
  • assembly forgot variable
  • assembly variable
  • basic variable clear
  • opt variable
  • agd opt variable
  • compare strings
  • compare strings z80
  • variable width scrol
  • slicing strings variable
  • variable lngth strings
  • strings stored in variable area

Copyright © 2024 World of Spectrum