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.126s
<1234567…34>
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    I try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as
    10 DIM AB(10) instead of
    10 DIM A(10)

    Any iformation about it?
    mhanias mhanias December 2009 Sinclair Basic
  • Just wrote my first useful working Speccy BASIC program in years...A nice UK National Lottery number generator. And not just any lotto number generator either. This one generates 8 lines of 6 numbers without replace…

    ... idea for this a while back. There was a story in ... 6). Apparently he won a few grand and made it ... =49
    105 REM a is the number hat (array ... pick the numbers
    110 DIM a(49)
    120 FOR n ... randomly picked numbers
    200 DIM l(8,6)
    205 ...
    BigBadMick BigBadMick November 2008 Development
  • Please help an absolute novice with some simple(ish) programming.I'm very, very rusty at BASIC. I'm using BASin, for my GCSE Astronomy coursework [quote] Use a spreadsheet and/or a graphing package, or write a com…

    ...
    [quote] Use a spreadsheet and/or a graphing package, or write ... , or the major satellites of a named planet[/quote]

    30 BRIGHT 1: DIM b$(24)
    40 LET ... : LET g=171
    50 DIM a(9): FOR f=1 TO ... 9: READ a(f): NEXT f: RESTORE < ...
    thx1138 thx1138 December 2008 Sinclair Basic
  • reading Hex[code]1 DIM a$(20,20) 2 DIM g$(16) 3 LET g$="\::\ \' \ '\ .\. \.:\:.\:'\':\''\..\: \ :\'.\.'" 4 BORDER 4 20 LET a$(1)="00000000000000000000" 21 LET …

    [code]1 DIM a$(20,20)
    2 DIM g$(16)
    3 ... BORDER 4
    20 LET a$(1)="00000000000000000000"
    21 ... basic to read hex as a number value

    A = the number 10
    ... so that in line 21 'A' will point to the tenth ...
    chop983 chop983 December 2008 Sinclair Basic
  • storing machine code in BASICApart from putting m/c above RAMTOP, which means that it has to be POKEd or LOADed separately after the BASIC program; or putting it in a REM, which …

    ... it in a REM, as it just uses DIM a$() to allocate ... , because the variable letter for a$() is encoded as 11000001 = ... 4 DEF FN p(a)=PEEK a+256*PEEK (a+1):
    DEF ...
    9161 CLEAR :
    DIM a$(machine_code_length-5):
    LET newVARS ...
    Battle Bunny Battle Bunny August 2010 Sinclair Basic
  • Storing and displaying attributes...Hi Folks, I have a requirement to store and then redisplay a line of attributes from the screen. For example: 100 DIM a$(1,32) 110 LET line=10 120…

    ... br />
    I have a requirement to store and then ... redisplay a line of attributes from ... example:

    100 DIM a$(1,32)
    110 LET ...
    After line 120 a$(1) will contain the 32 ... or will it require a couple of machine code routines ...
    Paddy Coleman Paddy Coleman June 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…

    ... /> The part im having a little trouble with is generating ... the sets, someone suggested a randomize command ,but ... below i have included a little (poorly written routine ... (that i thought would work a treat!) provides.
    < ... C=1
    40 DIM A(49)
    50 LET ...
    loonix loonix July 2011 Sinclair Basic
  • SpecBAS 0.718 Now AvailableHi Folks! After an appreciable delay, the latest and (dare I say it?) greatest SpecBAS update is now available. We're moving into modern times with …

    ... )
    30 PLOT a$.x,a$.y
    [/code ... a point. You can also use them with DIM:< ... (x,y)
    20 DIM a$(100) STRUCT coord
    ... Access structures in strings using a "." to separate member parameters ... be used with arrays - DIM a$(10) STRUCT mystruct[(default ...
    Dunny Dunny January 2012 Sinclair Miscellaneous
  • BASIC: Find the nearestHello guys) A few days ago I found oldie ?Jeux et casse-tete a Programmer? by Jacques Arsac (Paris?85) and suggested my nephew to try a few in Basic…

    ... ?Jeux et casse-tete a Programmer? by Jacques Arsac ... br /> Shortly,
    - there?s a field NxM
    - there?s ... a hero at a random position
    - ... is solved via
    a) bruteforce dim A/B scanning, e.g ... to N
    let a=abs(A(i)-x): let b ...
    NRA NRA January 2012 Sinclair Basic
  • SpecBAS 0.724 Now available!Hi folks - Again, a new SpecBAS for you. Some stunning bugs made their way into the last one, so I had to get a new version out sharpish. And for o…

    Hi folks -

    Again, a new SpecBAS for you. Some ... , so I had to get a new version out sharpish. And ... thusly:

    10 IF a IN [0 TO 9] THEN ...
    Dunny Dunny January 2012 Sinclair Miscellaneous
  • storing machine code in BASICA couple of years ago I posted a routine for storing machine code between PROG & VARS, based on an idea in Toni Baker's "Mastering Machine Code". Thi…

    ... The method is to assign DIM a$() at the start of VARS ... than "GO TO 9161". The DIM a$() is set as n-32 ... br /> DEF FN p(a)=PEEK a+256*PEEK (a+1):
    DEF ... GO SUB 9165: POKE a,b: POKE a+1,c: POKE d ... SUB 9164: INPUT "New ";n: DIM a$(n-32): LET nv=FN ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • INKEY$ giving me troubleHello, I have been using BASin (great program by the way...) Sad though it seems during the typhoon here I have been re-learning my spec-skills an…

    ... /> 10 DIM A(12): DIM B(12): DIM C(12): DIM E(12): DIM F(12 ... )
    15 DIM ... S(12): DIM ... J(12): DIM ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • 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…

    ... . I am working on a sinclair zx spectrum +2 ... vectors:

    dim a(10)
    let a(1)=7
    let ... of just adding: print a(1)+a(2)+a(3)

    a=val("hallo")
    a=val("15")
    ... br />
    10 Let a$="ux1000w0c&w1c&w2c ...
    lomax030 lomax030 December 2012 Sinclair Basic
  • Loading / Saving Data in VariablesHello there my fellow WoS'ers I was wondering if there was a way (in basic) where I could save variables like string / integer arrays? i.e. [cod…

    ... was wondering if there was a way (in basic) where I ... /> [code]
    10 DIM a$(5,13)
    20 DIM index(13)
    Zetr0 Zetr0 March 2013 Sinclair Basic
  • SpecBAS 0.775 released!Hi all - me again :) SpecBAS has been updated again, and a whole load of new stuff has been added. Not many bugs fixed (none reported, and I only fo…

    ... () or array$() will sort a one-dimensional array
    ... RUN when used with a numeric parameter
    ... dimensional arrays, you can DIM a=1,2,3,4, ... BASE$(value,base) returns a string of the number converted ... check your value (a above) with a range, using WHEN ...
    Dunny Dunny May 2013 Sinclair Miscellaneous
  • SpecBAS 0.780 releasedHi all - Back again with a new SpecBAS release! It's all been about arrays this time around, and to add to those lovely associative arrays from las…

    ... />
    Back again with a new SpecBAS release!

    DIM command:

    DIM a()

    ...
    Dynamic array allocation - DIM a() - note the empty brackets, ... An issue with ENDIF triggering a segfault when used in ...
    Dunny Dunny August 2013 Sinclair Miscellaneous
  • 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 …

    ... program below shows a test I did with a 5-bit ... if I try it with a 13-bit number (forward ... /> 3 DIM a$(5): LET a$="00101"
    5 PRINT "seed=";a$: FOR a=1 ... /> 20 LET xor=VAL a$(4)+VAL a$(5): LET xor=xor ...
    40 LET a$=CHR$ (xor+48)+a$( TO 4)
    ...
    Battle Bunny Battle Bunny 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…

    ... -machine which has gained a significant speed increase
    a string array and a separator - LET b$=JOIN$(a$()," ") ... each separated by a space.
    String splitting: DIM a$(SPLIT "my ... /> Zones. A Zone is a region of a window against which ...
    Dunny Dunny February 2014 Sinclair Basic
  • Read Data from memoryHi there. Not been on this scene for a long time. Does anyone know how to do a routine to read data from memory(peek..etc) rather than using lines of…

    ... been on this scene for a long time. Does anyone know ... how to do a routine to read data from ... is this

    10 dim a(10)
    20 for f ... to 10
    30 read a(f)
    40 next f ...
    davepierce07 davepierce07 May 2014 Sinclair Basic
  • 3D Games in SpecBAS!Not really :) Actually, yes - here's a type-in for you: MontyMole's "Crap Castle Master" [code] ZXASCII AUTO -1 PROG CrapCastleMaster 1 REM Crap Ca…

    ... />
    Actually, yes - here's a type-in for you: MontyMole ... REM Crap Castle Master by A Lycett adapted to SpecBAS
    Dunny Dunny May 2014 Sinclair Basic
  • SpecBAS 0.844 releasedHi all - it's been a while... Having some unexpected extra time off work, I've been able to get some work done on SpecBAS and it's now a bit more …

    ...
    DIM can now create multiple arrays - DIM a$(),b(2 ... second parameter treats substr$ as a regular expression
    REPLACE ... :

    Assigning a string to a sliced string array member ... now
    Assigning a value to a string array member ...
    Dunny Dunny May 2015 Sinclair Basic
  • Arrays in BASICHi so I'm making this crappy game and I wanna store the screen positions of some UDGs in in a 50x2 array cause I have 50 characters. So I made the ar…

    ... of some UDGs in in a 50x2 array cause I have ... like this
    [code]10 DIM a(50,2)
    20 FOR ... TO 50
    30 LET a(n,1)=INT(RND*30 ... )
    40 LET a(n,2)=INT(RND*24 ...
    ivanb303 ivanb303 October 2016 Sinclair Basic
  • Hunchback is back!Hi, I would like to publish again an old-fashion style writing what perhaps should be valueable if we wrote 1985. Maybe somebody will try it ... …

    ... =33555
    320 DIM A(15)
    330 DIM B(15)
    340 ... /> 1200 DATA A(1),B(1),A(2),B(2),A(3),B ... /> 1210 DATA A(4),B(4),A(5),B(5),A(6),B ... /> 1230 DATA A(10),B(10),A(11),B(11),A(12),B ... /> 1240 DATA A(13),B(13),A(14),B(14),A(15),B ...
    Pgyuri Pgyuri April 2022 Games
  • De zeven sleutels van TARKUSI've decided to type in the game "De zeven sleutels van TARKUS" from a book I have for many years now. And, it seems the game as it was printed in…

    ... sleutels van TARKUS" from a book I have for many ...
    Surprisingly this is quite a good maze game!

    121 IF a(l,3)=1 THEN LET ... 12,14; FLASH 1;"\a\..\..\b";: PRINT AT 13, ... dc=1 THEN LET a$=INKEY$: IF a$="" THEN GO TO ...
    Timmy Timmy August 2022 Sinclair Basic
  • Microdrive woesHi there! Just managed to pick up a 2nd hand Microdrive and interface one... Came with an introductory program which doesn't seem to load. Since its…

    ... .

    Enter
    10 DIM a$(30000)
    20 SAVE * "m ...
    Geoff Geoff March 2002 Sinclair Miscellaneous
  • How the hell does this work then??[url="http://www.dslextreme.com/users/exstatica/psychic.swf"]http://www.dslextreme.com/users/exstatica/psychic.swf[/url]

    ... ;"Please wait - Initialising"
    60 DIM a(100):\
    LET c$="!\`$%& ... =1 TO 10:\
    LET a((f*9)+1)=b:\
    IF a(f)=0 THEN LET a(f)=INT (RND ... , press any key to see a table of symbols."
    120 ...
    Dunny Dunny November 2004 Sinclair Miscellaneous
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... br /> Thats nice, but a little question:
    Once being ... is realy need to DO a recusion?
    It does ... work space while running a def(exept when the ... you can fill it with dim a$(a+1) until it says ... br />
    I might add a small, linear "Memory Map" like ...
    Dunny Dunny April 2005 Sinclair Basic
  • Need some help making a BASIC gameI'm creating a text adventure in 128 BASIC (I don't like using the 'keywords' in 48 BASIC - It's slow and annoying!) called "The Legend of The Red Dr…

    ... /> I.e.
    DIM A(5)
    LET A(1)=MONEY
    LET ... A(2)=LIVES
    LET A(3)=CHAMBRE
    A()

    LOAD ""DATA A()
    LET SCORE ... =A(5)
    LET POWER ...
    Dr BEEP Dr BEEP November 2005 Sinclair Basic
<1234567…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
dim 1.1K 1.8K
a 589.5K 1.7M

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
  • How to separate a character from a number in a string?Hi <br /> 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…
  • A TZX, a MIA and a previously unknown title from QLSThe Spanish website [url="http://trastero.speccy.org/"]El Trastero del Spectrum[/url] has a TZX of [url="http://www.worldofspectrum.org/infoseekid.cg…

Related Searches

  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • create a batch file screen
  • change a letter
  • is there a system test for the spectrum
  • is there a system test tape for the spectrum
  • how to do a tzx file
  • how to create a tzx file
  • how to make a tzx file
  • composite screen goes yellow after a while
  • screen goes yellow after a while
  • validate input is a number
  • not a number
  • if input is not a number
  • finding a character on screen
  • dim input
  • dim from input
  • dim variable size
  • dim size

Copyright © 2024 World of Spectrum