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
<1…891011121314…34>
  • 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,…

    ... can be READ into a string and vice versa by using ... array can't be [b]defined[/b] with a mixture of string ... ; s() arrays for the separate string and numeric elements of the ...
    Battle Bunny Battle Bunny March 2010 Sinclair Basic
  • 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,…

    ... ever...
    [code]
    10 DIM s(180)
    20 FOR ... up as a 2 dimensional array so it can change modes ...
    FrankT FrankT March 2010 Sinclair Basic
  • Arrays in asm ?Just following the idea to make the menu entirely in asm, how can i handle arrays in asm to store the each game loader to be loaded ? thx in advance

    ... , all it is is an array, with the start index (on ... .

    Given that an array of bytes may not be ... :

    * a table of string entries (in other words, a ... in hex). \x0 in the string means the byte 00:
    Winston Winston June 2010 Sinclair Basic
  • Help with a basic programI'm doing a very small basic program which I know is bloated, but it works. (I have limited basic knowledge compared to most on here). I just wondere…

    ... /> [code]10 DIM p$(8,32): REM An array of the 8 ... Read the phrases into the array
    30 FOR i=1 ... your pocket?","Goodbye"
    50 DIM o$(3,32): REM list ...
    gasman gasman August 2010 Sinclair Basic
  • 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. …

    ... a numeric paramter array to be defined ([COLOR="Red"]DIM p(10 ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • 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. …

    ... will reverse a string.

    [CODE]110 DIM p(2): REM ... Parms
    120 INPUT "Enter string: "; LINE ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • 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. …

    ... will reverse a string.

    [CODE]110 DIM p(2): REM ... Parms
    120 INPUT "Enter string: "; LINE ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • storing level datahi everyone im using arrays to store level data. its not working. just to set up the walls takes an array of size 92*2 is there a better way?

    ... Well you have not defined array "a" and you cannot have ... a subscript to an array of zero (well not ... :

    [CODE]10 dim a(32,6)
    20 ... In terms of storage your array is taking up 32 * 6 ... memory directly or a character array will save you loads ...
    Paddy Coleman Paddy Coleman September 2010 Development
  • 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…

    ... />
    As for arrays like DIM a(100), "a" this is ... which is classified as an array of numbers. All 100 entries ...
    BloodBaz BloodBaz 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…

    ... altering the length of any string variables defined before it (which ... value to copy an array w$() to an array i$() without actually ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... average sort time for the array of 23.55 seconds (25 ... Test Data
    130 RANDOMIZE : DIM p$(50,1): FOR a ... .83 seconds to sort the array on average. That is an ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... average sort time for the array of 23.55 seconds (25 ... Test Data
    130 RANDOMIZE : DIM p$(50,1): FOR a ... .83 seconds to sort the array on average. That is an ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... Test Data
    130 RANDOMIZE : DIM p$(50,1): FOR a ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... can be done in an array (assuming a max depth)
    DIM D(40).

    You ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... to sort an 80*32 array on selected 4-byte columns ... Sort
    10 INPUT n: DIM v$(n,1):
    FOR ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... demo using a 52-byte array of the m/c conversion ... +PEEK 23672
    10 DIM t(2): DIM v$(52,1):
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... last 32 elements of the array before and after the sort ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... nelem=50
    10 RANDOMIZE : DIM s(100,3): LET sp ... =0: DIM p$(nelem,1): FOR n ... time for a 50 element array.
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
  • Help! Reverse engineering a Spectrum game[deleted]

    ... an index pointer to an array that defines the differences. Also ... rate
    05 - Character and string printing routines
    06 - A ... possible
    08 - Number to string converting routines
    09 - A ...
    ASM ASM October 2010 Development
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    Hi Dr Beep etc.

    Come on guys - you know more about Sinclair BASIC than is healthy! :smile: Surely you have some tips to optimise/speed up the following code.

    [CODE]100 GO SUB 250
    110 REM SHELL SORT V4
    120 LET b=INT (n ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Logic sim for specHi guys, I was thinking about it and i was wondering, would it be good if i made a program that you enter details about a logic circuit, like what i…

    ... />
    Each column is an array with a logic gate name ... inputs as a long binary string. So to connect the first ...
    Robin Robin October 2010 Development
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    [QUOTE=JamesD;482918]If you can use ELSE it should look like this.
    [CODE]110 REM COMB SORT V2
    ...[/CODE][/QUOTE]

    Hi James,

    Coded up your V2 Comb Sort and got the following results:

    Paddy's original V1 Comb ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... :
    LET o=1:
    DIM l$(1,10):
    RANDOMIZE ... :
    LET n=64:
    DIM a$(n,1):
    FOR ... :
    PRINT AT 9,0;"Array Contents...":
    GO SUB 300 ... /> RETURN
    300 REM Print Array Contents
    310 FOR a ...
    Paddy Coleman Paddy Coleman 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…

    ... $ v$[/B]
    for a string, or:
    [B]LET anumber ... of variables

    1 DIM A(2)
    2 LET ...
    Dr BEEP Dr BEEP October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... both to the size of array [B]s[/B] and the ... n=50
    9010 RANDOMIZE : DIM s(ln n/ln 2 ... ,2): LET p=0: DIM p$(n,1): FOR i ... variables in each position of array [B]s[/B], so there ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 't that exceed the maximum array size from BASIC?[/QUOTE]
    array size.

    The recursion ... /log 2[/B].

    Array [B]s[/B] is now ... ]step 4[/B] as [B]DIM s(ln n/ln 2 ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... Create Test Data
    260 DIM l$(1,10):
    RANDOMIZE ... :
    LET n=64:
    DIM a$(n,1):
    FOR ... :
    PRINT AT 9,0;"Array Contents...":
    GO SUB 290 ... /> RETURN
    290 REM Print Array Contents
    300 FOR a ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... b=64:
    DIM a$(b,1):
    DIM b$(1,1 ... :
    PRINT AT 8,0;"Array Contents...":
    GO SUB 260 ... /> RETURN
    260 REM Print Array Contents
    270 FOR a ... by a single element b$ array - watching the code execute in ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... b=64:
    DIM a$(b):
    DIM b$(1):
    ...
    PRINT AT 8,0;"Array Contents...":
    GO SUB ... RETURN
    260 REM Print Array Contents
    270 FOR ... replaced [B]DIM a$(b,1): DIM b$(1,1 ... B] with [B]DIM a$(b): DIM b$(1)[/B] and ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... a=64:
    DIM a$(a):
    DIM b$(1):
    LET ... :
    PRINT AT 8,0;"Array Contents...":
    GO SUB 260 ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
<1…891011121314…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott 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
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
string 2.8K 5.1K
array 1.7K 3.2K
dim 1.1K 1.8K

Related Threads

  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum.<br /> There was a command in speccy basic that would let you scroll a string …
  • String slicing for UDG definitionHey everyone.<br /> <br /> Got a bit of a string slicing/string to variable conversion problem.<br /> <br /> 10 let a$="01100110"<br /> 20 let pokeva…
  • Method to read byte as binary string rather than dec?Hi all<br /> <br /> Am fiddling around with the screen buffer and have written a routine to scan the screenbuffer into upper ram and then write it ba…
  • Character Array tape header block parameters?Hello all! Long time since I've been here! Hope everyone's bright and cheerful as usual! <br /> <br /> I've been trying to figure out the structure o…
  • Insane string of bad luckWhat a horrendous past 3 months. :cry:<br /> All my computers died (including WoS), 2 of my guinea pigs died, my holidays got canceled and tonight my…
  • BASIC: Fast way of filling a string?Recently I decided to use string slicing to extract random numbers from a sequence in the one-liner Lottery picker:<br /> <br /> [quote]<br /> 20 RAN…
  • Quickest way to mix up an array of intsOk, I have ...<br /> <br /> [CODE]<br /> 10 DIM v(20) : FOR f = 1 TO 20 : LET v(f) = f : NEXT F<br /> [/CODE]<br /> <br /> now.... obviously each arr…
  • 2 questions about matrix and string handlingI was never good at understanding how to do something random in Sinclair Basic without repeating something that was already done. Had problems unders…
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as <br /> 10 DIM AB(10) instead of<br /> 10 DIM A(10)…
  • Multi Dimension String Arrays.Ok so I've been playing with Sinclair Basic though BASIN and I'm wanting to use multi dimension string arrays, if it is possible.<br /> <br /> I know…

Related Searches

  • dim input
  • dim from input
  • dim variable size
  • dim size
  • input array
  • input an array
  • ld bc eostr string
  • reorder a string
  • change characters in string
  • rotate dimensonal array
  • dim shoot em up
  • dim routine
  • inputting to a string array
  • inputting to array basic
  • basic text array
  • writing text to an array
  • save array
  • detect a word string on the screen
  • dim
  • dim string

Copyright © 2024 World of Spectrum