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…10111213141516…34>
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... test...

    [CODE]100 DIM a(5)
    110 LET ... I had an 8 element array [t()] in my code and ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • binutils questionSince there's a few people using binutils these days I thought I'd give it a go and see whether it solves my hunt for a replacement assembler/librari…

    ... ]=6;" places an integer array at address 40000. This ... looks like a multidimensional array access but it isn ... because we have an array of arrays which does ... is not the same as string[][]. If I remember correctly ... errors if the common string length has not been ...
    Timmy Timmy July 2011 Development
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... MARK RANDOM NUMBERS IN A ARRAY
    30 FOR m=1 ... TO 21
    40 DIM A(49)
    70 FOR ...
    Battle Bunny Battle Bunny July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... MARK RANDOM NUMBERS IN A ARRAY
    30 FOR m=1 ... TO 21
    40 DIM A(49)
    70 FOR ...
    Battle Bunny Battle Bunny July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... MARK RANDOM NUMBERS IN A ARRAY
    30 FOR m=1 ... TO 21
    40 DIM A(49)
    70 FOR ...
    loonix loonix July 2011 Sinclair Basic
  • Streams - File HandlingHello there my fellow WoS'ers I am attempting to write a Z80 / Snapshot Launching program that is based on a category of files # - Z whereby each f…

    ... a whole file into a string in one go; it seems ... copy the file to the string and then print it. Hopefully ... .txt"
    20 DIM #4,size
    30 DIM f$(size*2 ...
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • Streams - File HandlingHello there my fellow WoS'ers I am attempting to write a Z80 / Snapshot Launching program that is based on a category of files # - Z whereby each f…

    ... ]

    Solved it! The string channel has to be opened ... Fuse.
    [code]
    30 DIM f$(128)
    40 OPEN ...
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • Streams - File HandlingHello there my fellow WoS'ers I am attempting to write a Z80 / Snapshot Launching program that is based on a category of files # - Z whereby each f…

    ... file to the string, which seems OK. The string must be defined ... before the string channel is opened, and the string ... is EOF. If you use DIM #4 to get the file ...
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • saving arraysHi. So i'm working on a small program. I'm almost finished, but i just hit a problem by the end. I would like to save (and load back later) four arra…

    ... the array space would always have to be assigned with DIM before ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ...
    20 DIM a(8,8): REM define array for board
    33 REM - clear array
    34 FOR x=1 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ... 't need to clear the array.
    Line 20 will do ...
    20 DIM a(8,8): REM define array for board
    33 REM - clear array
    40 LET a(4 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ...
    20 DIM a(8,8): REM define array for board
    33 REM - clear array
    40 LET a(4 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ...
    20 DIM a(8,8): REM define array for board
    33 REM - clear array
    40 LET a(4 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ... /> 20 DIM a(8,8): DIM b(8,8): REM define array for ... sub)
    33 REM - clear array
    40 LET a(4 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ... /> 20 DIM a(8,8): DIM b(8,8): REM define array for ... sub)
    33 REM - clear array
    40 LET a(4 ... /> 20 DIM a(8,8): DIM b(8,8): REM define array for ... sub)
    33 REM - clear array
    40 LET a(4 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ... /> 20 DIM a(9,9): DIM b(8,8): REM define array for ... sub)
    33 REM - clear array
    40 LET a(4 ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    [QUOTE=Rebelstar without a cause;564327]If you wanted to tidy it up a bit


    [PHP]204 IF INKEY$="q" AND p>1 THEN PRINT AT p,q; INVERSE 1; INK a(p,q)+3;"XOO"(a(p,q)+1):: LET p=p-1
    205 IF INKEY$="a" AND p1 THEN PRINT AT p,q; INVERSE ...
    fortyeightkay fortyeightkay September 2011 Development
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ...
    20 DIM a(9,9): DIM b(8,8): DIM d(9 ... : NEXT x: REM define a array for board, c for directions ...
    fortyeightkay fortyeightkay September 2011 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... address of the keyports/patterns array if it was the ... print_message
    ;
    ; prints a string which is terminated with $ff ... get_defined_key: ld de,port_array ; the array of rows
    ld b ... inc de ; next row in array
    djnz gdk_loop ; go ...
    polomint polomint September 2011 Development
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    ... finishes.

    The empty string DATA item is so that ... lz>a2)
    9994 DIM f$(VAL "10"): INPUT "SAVE ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    ... version:

    [CODE]100 DIM i$(2,50):
    LET ... /> 9010 REM i$(1)=Whole String
    9020 REM i$(2 ... )=Search String
    9030 REM i1=Pointer ...
    Paddy Coleman Paddy Coleman October 2011 Sinclair Basic
  • Display half a screenWorking in 128 Basic and saving screens to memory via - SAVE! "image" SCREEN$ . Is it possible to display just the top half (or the bottom half) of t…

    ... be held in either an array or a DATA statement and ... file as a string variable and then using string slicing to select ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • Display half a screenWorking in 128 Basic and saving screens to memory via - SAVE! "image" SCREEN$ . Is it possible to display just the top half (or the bottom half) of t…

    ... RAMdisk.
    [code]
    20 DIM s(8)
    33 FOR ... rather, in which case the string method might be preferable, if ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • New WIP underway - 'Dingo'.Hi, Prepare for a long post. Perhaps I can even challenge ewgf here. :razz: Anyway, I've been meaning to get into Z80 programming and making a game…

    ... address of the keyports/patterns array if it was the ... print_message
    ;
    ; prints a string which is terminated with $ff ... get_defined_key: ld de,port_array ; the array of rows
    ld b ... inc de ; next row in array
    djnz gdk_loop ; go ...
    polomint polomint October 2011 Development
  • Mazes and Tremaux's AlgorithmI've done a version of Tremaux's maze solving algorithm which solves my current test maze with 400 junctions and 715 connections in a reasonably quic…

    ... /> 1212 CLS: GO SUB s0: DIM j$(em): LET jp=k3 ...
    Battle Bunny Battle Bunny November 2011 Development
  • Create a new microdrive cartridge image formatHi there, I'm working to emulate the IF1+Microdrives in JSpeccy.I've found what the "classic" MDR format ins't capable to store all the required inf…

    ... /> * [i]Description Text[/i] ([b]STRING[/b] of [i]Description Length ... )
    *
    * [i]Data[/i] (Array of [i]Raw Sector Size ... ]Gap[/i] (CSW compressed data array of [i]# Gap Entries[/i ... . The signal toggles with each array entry between zero value and ...
    zx81 zx81 December 2011 Emulators
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... which holds expressions in an array, selected and then run using ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... which holds expressions in an array, selected and then run using ...
    Dunny Dunny December 2011 Sinclair Basic
<1…10111213141516…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