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.021s
<1234567…34>
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... .

    [code]
    10 let c$="ABCDEFGHIJ"

    25 randomize
    let r= int(rnd*f)+1
    50 let a$=c$(f):let c$(f)= c ... $(r): let c$(r)=a$
    60 next f

    70 print c ...
    Dr BEEP Dr BEEP November 2018 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…

    ... b$,l)=33: RESTORE 20: LET fnq=FN p(23639)+8 ... :
    LET qlo=FN l(fnq): LET qhi=FN h ... (fnq): LET da=23563:
    LET loc=VAL VAL$ (CHR$ PEEK ... 16384+4096 STEP 2048:
    LET c$=STR$ s: GO SUB FN ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • ZX48k terminal...Hello everybody, I thought someone might help me. I connect my good old ZX48k to my PC via serial (IF1) link, and I was trying to write a little term…

    ... "
    20 let o$=""
    30 let c$=INKEY$
    40 if c$ = o ...
    50 print #4; c$;: let o$=c$
    60 print INKEY$ #4 ...
    Alessandro Tommasi Alessandro Tommasi October 2001 Sinclair Miscellaneous
  • ONELINER TEXTADVENTUREI had the idea to try to code a small textadventure in just one line of BASIC-code. Here is the result. Although short to play, have fun with it. [c…

    ... .

    [code]
    10 LET c$=CHR$ 13: DIM r$(10 ... ,4
    ): LET a$="You are in a room."+c
    $+"You ... found an exi
    t","": LET p=1: FOR t=1 ... ): FOR x=1 TO 4: LET
    t=t+(CODE r ... )=
    "NSUR"(x)): NEXT x: LET t=t-1: N
    Dr BEEP Dr BEEP March 2004 Games
  • Amazing Short Type-InsHey all ! Been having some pretty stressfull days lately so I tought I would type in some games. There was a very nice type-in book here in Slovenia…

    ... LET b$="8": BORDER 2: PAPER 7: LET c=0: CLS
    40 LET ... x=10: LET y=19: LET a ... FOR f=10 TO 19: LET a$=a$+"10"+STR$ f ... GO SUB 220
    70 LET z$=INKEY$: IF z$> ...
    Tom-Cat Tom-Cat March 2006 Games
  • ONELINER : Finger TwisterFINGER TWISTER Do you all know TWISTER, that crazy game where you had to place your left foot on yellow, your right hand on green etc. etc. Well, n…

    ...
    : DIM b$(3,6): LET c$="12345": F
    OR z ... :
    LET x=VAL c$(y): LET c$(y)=c$(6
    -z): LET y=RND ... *3+.5: LET ... b$(y,7-
    x)=c$: NEXT z ... : FOR y=1 TO 3: LET
    b ...
    Dr BEEP Dr BEEP May 2007 Games
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... I'm sure the final LET t statement could be eliminated ... ,a,c,m:\
    FOR t=1 TO 20:\
    LET o ... ,c-1;" ^ ^ ";AT m,0,,AT 21,0;"t";t,:\
    LET ... TO d+(d=0)):\
    LET c=c-(IN 645102)+(IN 57342
    bigjon bigjon January 2008 Development
  • Julian Date / Mean AnomolyHere's another bunch of nonsense that (when finished) might be helpful*: [quote] 10 CLS : PRINT AT 0,0;"Please enter the information required:": …

    ... FN b(j,m,d,c)=(INT (1461*(j+4716)/ ... (153*(m+1)/5))+d+c-1524.5
    31 ... DEF FN c(j)=357.5291+(0.98560028 ... /> 60 PRINT "Day:",d: LET day=d
    70 INPUT ... /> 90 PRINT "Month:",m: LET month=m
    100 INPUT ... /> 110 PRINT "Year:",j: LET year=j
    120 IF ...
    gcallard gcallard May 2008 Sinclair Basic
  • Computer & Video Games Book of Adventure, TheBelow is the spectrum listing from the "[URL="http://www.worldofspectrum.org/infoseekid.cgi?id=2000078"]Computer & Video Games Book of Adventure, The…

    ... (i),c(i),n(i): NEXT i
    50 LET pn=0: LET ... )=9: LET o$(4)="Tree": LET n(4)=4: LET c(4)=-1: LET q ... $(4)="Oops! Tree just fell in moat!": LET ... e$(5)="w"
    120 IF c(8)=4 ... AND pn0 THEN LET q$(2)="It ...
    c1541 c1541 October 2008 MIA/STP/SDP
  • 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…

    ... was trying to learn some C++ before and tried and failed ... give it another go in C++. Plus I'm learning Z80 ... REM
    90 LET c=1
    100 LET numbersleft=49
    ... 1 TO 49
    130 LET a(n)=n
    140 ... SUB 1000
    320 NEXT c
    400 REM print the ...
    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…

    ... b$(24)
    40 LET h=83: LET g=171
    50 ...
    thx1138 thx1138 December 2008 Sinclair Basic
  • A little program to set the time...Hi Folks, OK, I have amended the program so you now have four routines/functions you can use in your own programs: TIME: GET - Reads the current va…

    ... --------------------------
    9025 PAUSE 1:
    LET hh=(65536*PEEK 23674+256 ... PEEK 23673+PEEK 23672):
    LET mm=(65536*PEEK 23674+256 ... 23673+PEEK 23672):
    LET time=(hh+mm+ABS (hh ... -mm))/2:
    LET hh=INT (time/180000):
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • Drawing a "window"...Hi Folks, I want to display a blank window over an existing screen. It then draws a border around it but that is not the point of my question. Ini…

    ... br />
    [CODE]100 LET m$=CHR$ 17+CHR$ 0 ... br /> CLS
    110 LET a$=CHR$ 17+CHR$ 7 ... LET c$=c$+a$:
    NEXT a:
    LET c$=CHR$ 19+CHR$ 1+c$
    140 PRINT AT 2,0;c ... ,82)
    160 LET l$(1)=c$
    170 REM ...
    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…

    ... DIM X(126)
    30 LET C=1
    40 DIM A ... (49)
    50 LET Z=49
    60 FOR ... n=1 TO z: LET a(n)=n: NEXT n ... /> 90 LET X(c)=a(x): LET c=c+1
    100 IF C=127 THEN ... SETS OF 6
    140 LET C1=1
    150 FOR ... /> 170 NEXT F
    180 LET C1=C1+6: PRINT
    loonix loonix July 2011 Sinclair Basic
  • Collision detection in Arcade Game DesignerI've been playing with Arcade Game Designer recently but I can't get the collision detection work between two sprites of the same type even though I'…

    ... /> ELSE
    LET C = Y
    ORIGINAL
    LET Y = C
    ADD 16 ... /> ELSE
    LET C = Y
    ORIGINAL
    LET Y = C
    SUBTRACT 16 ... /> ELSE
    LET C = X
    ORIGINAL
    LET X = C
    SUBTRACT 16 ...
    matti1234 matti1234 July 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 …

    ... $(17): DIM c$(68): LET h$(1)=CHR$ 0: LET fg=256
    c setup": LET c$="AF111100DD2A4B5C010600DD09CDC204CDA22D3EFFC5D1DD2A765CCDC204CD2B2DC9":
    FOR s ... TO 67 STEP 2:
    LET c$((s+1)/2)=CHR$ FN ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Arkanoid Hack - Your Sinclair Smash TipsRemember that Arkanoid hack in YS Smash Tips that didn't work? It does now... [CODE] 10 REM ARKANOID HACK 20 CLEAR 65535: LET C=1: LET D=23295 …

    ... HACK
    20 CLEAR 65535: LET C=1: LET D=23295
    30 ... LET T=0: FOR N=1 ... ERROR IN BLOCK ";C: STOP
    60 LET C=C+1: LET D=D+N ...
    jp jp October 2011 Development
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... Pages listing, its supposed to let you draw a title page ...
    20 LET L=10: LET C=15
    30 LET I=2
    40 PRINT AT L,C ... ;"*"
    50 LET A$=INKEY$: IF A ...
    60 PRINT AT L,C;" "
    70 IF A$> ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • Ideas for speeding up this BASIC routine?This loop can take up to 2 minutes to run, depending upon the content of the screen being scanned, about 70% of that time being taken up by lines 105…

    ... $="n" THEN POKE 23678,y: LET y=USR toprow:
    IF ... TO 1082
    1052 LET minx=tci: LET maxx=0
    1053 ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • Keyboard TrickI know how to use the multi key in BASIC with IN you can get the keys [QUOTE]IN 254+256*(255-2^K)[/QUOTE] K is the keyboard's half row, comes from …

    ... k(8,5)
    let c = 0
    for c = 0 to 7 ... > 16)then let b = b-16:let k(c+1,1)=1 ... > 8)then let b = b-16:let k(c+1,2)=1 ... > 4)then let b = b-16:let k(c+1,3)=1 ... > 2)then let b = b-16:let k(c+1,4)=1 ... > 1)then let b = b-16:let k(c+1,5)=1 ...
    MKGplaymore MKGplaymore February 2013 Sinclair Basic
  • 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…

    ... LET Z=B: LET B=V: LET V=Z
    402 LET Z=C: LET C=X: LET ... X=Z
    403 LET Z=D: LET D=S: LET ... MPR IS B'C'AC
    1070 LET A=17 : REM ... FN R("C") : REM RR C
    1370 LET A=A- ... H'L'HLB'C'AC
    1391 LET a$=FN ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • dumping protected BASIC loadersI wrote this a few weeks ago but forgot to post it. It will load & list from tape/TAP/TZX any BASIC program which has been saved with SAVE, including…

    ... /> 21 LET c=PEEK a: IF c>=32 THEN PRINT CHR$ c;: LET a ... =a+1: GO TO 21
    23 IF c=13 ... THEN
    PRINT : LET a=a+1 ... : GO TO 15
    25 IF c=14 ... THEN
    PRINT PAPER 2;c;: LET a=a+1: GO TO ...
    Battle Bunny Battle Bunny March 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…

    ... LET XCam=4: LET YCam=-20: LET ZCam=4: LET FocLen=200
    20 LET ... HAng=100: LET ... VAng=0: LET ... GO SUB 210
    60 LET XCam=XCam+SinH*((I$="w ...
    Dunny Dunny May 2014 Sinclair Basic
  • BEEP & PLAY jingles in BASIC sourceI've been digging through the +3 manual and checking out the [URL="http://www.worldofspectrum.org/ZXSpectrum128+3Manual/chapter8pt19.html"]great musi…

    ... elaborate examples:
    [CODE] 10 LET a$="Y1T100O2(((1CCg$b))(($E ... &&&&C$bfG)"
    30 LET c$=
    "Y3O4((3C ... &)C&1CCDD(3$E ... $,c$,d$[/CODE]

    and simpler ones:
    [CODE] 5 LET ...
    Dock Dock June 2014 Sinclair Basic
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... TO b: LET c=g(i,j): LET n=n+(c AND g(i ... -o,j))+(c AND g ... : LET h=20: LET w=32: LET a=h-o: LET b=w-o: LET c ... =n: LET d ... =2: LET e=3: LET c$="0": LET s$=" ": LET ...
    Shaun.Bebbington Shaun.Bebbington September 2014 Sinclair Basic
  • Fast Condition TestingHello my friends, I have been writing some input and string handling routines in BASIC lately - yeah I could write them super fast in C/ASM via z88d…

    ... *****[/B]

    LET l$=" ;:*()"
    LET maxchars = 13
    GOSUB ... LOOP *****[/B]

    LET c$= INKEY$

    FOR ... l$ )
    IF c$ = l$( f ) THEN LET c$= CHR$ (1)
    ... NEXT f

    IF CODE ( c ...
    Zetr0 Zetr0 November 2014 Sinclair Basic
  • Soundex routineIn an idle 5 minutes I wrote a short routine to calculate Soundex codes using the algorithm described here: [url]http://en.wikipedia.org/wiki/Sounde…

    ... /> 11 REM ....abcdefghijklmnopqrstuvwxyz
    12 LET a$="01230129022455012623019202[": DIM x$(3 ... $: LET c$=n$(a)
    32 IF c$>="A" AND c$="a" AND c ... $ag THEN
    LET p ...
    Battle Bunny Battle Bunny November 2014 Sinclair Basic
  • More SpecBAS funHere's a neat little effect I lifted from a thread about displaylists and stuff from an Amiga forum - although SpecBAS has no hardware to assist, it …

    ... br /> 20 CLS 8: LET b=0: FOR a=7 ... ,128,10*a FILL: LET b=1-b: NEXT ... FOR y=0 TO 255: LET pic$(y)=PEEK$(circles,320 ... circles
    50 LET d=0: LET offy=(SCRh-256)/2 ... *PI) THEN LET d=0
    110 LET c=SIN d*((MOUSEx ... /SCRw)*8): LET e=SIN ...
    Dunny Dunny March 2015 Sinclair Basic
<1234567…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Goodbye Z80
    i love the z80s on 6:28PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 6:04PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • 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
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
let 29.3K 51.6K
c 20.3K 48.8K
abcdefghij 3 3

Related Threads

  • Let it Slow Let it Snow let it SnowWell, It's snowing here hard in the top left Corner of North Carolina.<br /> <br /> I heard that is it snowing hard in the UK also. My parents were s…
  • comp.sys.sinclair Crap Games Competition (C.S.S.C.G.C. 2022) is here!Welcome one and all!<br /> <br /> [img]https://i.postimg.cc/3yYpjjbH/cropped-CCG2022.png[/img]<br /> <br /> I am proud to announce the opening of…
  • Arrays in C and C++ from a Java Programmer.I have been looking arround the web and found many conflicting answers to this question so I thaught I'd ask you folkes.<br /> <br /> What is the C a…
  • Let is snow let it snowFor those of use in the south and west of the country including those in Northern Ireland its going to be a snowy one tonight and tomorow.<br /> <br …
  • Z80 disassembler C/C++ source codeHello,<br /> <br /> I just thought I might share the [URL="http://zxds.raxoft.cz/docs/z80d.cpp"]source code[/URL] of the Z80 disassembler I have writ…
  • c & c red alert 2 freeanother day.. another freebie<br /> <br /> http://www.pcgamer.com/command-conquer-red-alert-2-is-free-on-origin/
  • C CompilerIs there an IDE based C compiler for the 128. I've heard rumours...
  • C&VG magsI have quite a number of these for sale ranging from Aug.1982 to Jan 1988 and am open to offers. Also the C&amp;VG Book of Games III.<br /> …
  • .$b and .$c format helpHi, i have downloaded agame of lemmings (it took ages to find one that might work) i have downloaded about 5 and none of them worked.<br /> I have fo…

Related Searches

  • hisoft c manual
  • live and let die
  • speccy c
  • developing in c
  • divmmc c
  • let
  • xor c
  • xor c loop
  • ld a b xor c loop
  • ld a b or c loop
  • pacmen c
  • emulator c
  • emulator c source
  • c compiler
  • code in c
  • play a b c
  • b c bill
  • a m c
  • t a c
  • c

Copyright © 2024 World of Spectrum