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.023s
<1…19202122232425…34>
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    ... "C Nonsense in Basic 20:1"

    I get the ... /> 10 DEF FN a$(n$)=VAL$ ((VAL$ (""""""+("+\#19434+n$(\#177n$)+\#19434+\#19443 ... n$>2)))+(VAL$ (""""""+("+\#19434+n$(2)+n$(1)+\#19434" AND LEN ...
    Dunny Dunny May 2006 Sinclair Basic
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    ... text?

    [CODE]OVER 1: LET a$="text": FOR n ... =1 TO 1e3: PRINT AT 0, ... ).

    I always thought VAL$ was a waste of a ...
    equinox equinox May 2006 Sinclair Basic
  • Self Relocating CodeOn page 47 of [url]http://www.tim-mann.org/trs80/doc/ldosq1-3.txt[/url] is an article about relocating code. The documented routine that performs the…

    ... ,(DE)
    DEC A ; val of 1 is end marker
    JR ... /> RELTAB ; bytes
    ........
    DEFB 1 ; end marker


    1.
    Downside of this (single ...
    piters piters August 2006 Development
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... make the code smaller using VAL"", but that's for a ... ; INK 8; FLASH 8; BRIGHT 1; OVER 1; " "
    70 IF y
    Matt_B Matt_B November 2006 Development
  • Recursive functionsA while ago Phil demonstrated a nice example of recursiveness in a DEF FN function. Sadly it doesn't appear to be online anymore and I have difficult…

    10 Def Fn D$(n,s$)=val$ (("s$+fn D$(n-1,s$)" And N>0)+("""""" And N=0))
    20 Print Fn D$(10,"abc")
    Dr BEEP Dr BEEP November 2006 Sinclair Basic
  • I'm in need of help hereI've been using the 'COMB' and 'TRANSFER' programs on Lerm's Utility D package to convert copy-protected (Speedlock, Alcatraz etc) 48k games onto +3 …

    ... do POKE 23388,XX: PAUSE 1 to get it to change ... br /> DATA 243,62,16,1,253,127,237,121,33 ... 0,128,17,0,192,1,0,64,237,176, ... 62,16,1,253,127,237,121, ... like this:
    (File / POKE val / Start Address to load)
    0 16 49152
    1 17 49152
    2 18 ...
    Jmk Jmk December 2006 Sinclair Miscellaneous
  • Who knows how to program a "pathfinder"?Hi all. I like to play games like "Colour Lines" and I think, I will create a version of this game for the SAM Coupe. It looks easy - until this "dam…

    ... REM LET a$(5)=a$(1)
    35 REM line ... /> 40 LET a$(8,1)="o": REM the end
    100 FOR f=1 TO 9: PRINT PAPER 6 ...
    220 LET y=VAL s$(1)
    230 LET x ... =VAL s$(2)
    235 IF x=1 ... " THEN LET y=VAL y$: LET x=VAL x$: GO TO 410 ...
    Dr BEEP Dr BEEP January 2007 Development
  • Question about digitized sound and videoI searched the forums and couldn't find the answer, so here it goes. Regarding digitized sound: I remember reading an article long ago about a vid…

    Here is the code I prepared for flashloading... Hides file names also...

    [code]
    5 PAPER 7: BORDER 7: CLS
    10 POKE VAL "23739",CODE "o"
    15 LOAD ""SCREEN$
    20 PAUSE 1
    30 GO TO 15
    [/code]
    Arda Arda January 2007 Development
  • DivIDE and RWAP's DiwIDE*Opps, sorry, wrong forum, this thread must be in hardware topic.* I was planning to get a divide from Rwap, but I'm too afraid of long way the devi…

    ... independently. Since combination COMMEM = MAPRAM = 1 is not really needed, we ... MAPRAM):

    [ 1 1 ext ext ext ext val val ]

    "ext ... undefined (zero) and that two "val" bits select ROM page. This ... xxxxxx11) for ROM pages 0, 1, 2, 3, ... it is ...
    baze baze January 2007 Development
  • 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. …

    ... ))
    DEF FN h$(x) = VAL$("FN h$(INT(x/16 ... $(x-16*INT (x/16))"(1+(13 AND xhex converter similar ...
    Alcoholics Anonymous Alcoholics Anonymous February 2007 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. …

    [code]
    DEF FN x$(a) = CHR$(a+48+(7 AND a>9))
    DEF FN h$(x) = VAL$("FN h$(INT(x/16))+FN x$(x-16*INT (x/16))"(1+(13 AND x
    Dr BEEP Dr BEEP February 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... FNs at the beginning (line 1,2,3,4,etc) this ... ]

    And then use VAL a$ to evaluate it when ...
    Alcoholics Anonymous Alcoholics Anonymous March 2007 Sinclair Basic
  • Converting m$ to dataI created a maze using a matrix of 704 characters. In order to save memory, and since the maze it's just walls and spaces which could be interpreted …

    ... ((LEN m$)/8)+1)
    FOR i = 1 TO LEN m$ STEP ... = i+7 TO i STEP -1
    LET t = t*2 ... /> LET m(INT(i/8)+1) = t
    NEXT i
    1)
    20 FOR i = 1 TO LEN m ... LET m(INT (i/8) + 1) = VAL$ ("BIN " + m$(i TO i ...
    Alcoholics Anonymous Alcoholics Anonymous May 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... FOR loop:
    [code]
    1 LET c=4/3: LET ... b=12: FOR j=1 TO 104: BEEP VAL "51a1a136351339351a1a13635133b51a1a136351339351a1a13635133b3cc3cccccc5cccc3333cccc633333cccc3cccc3cc33339"(j)/10 ...
    BloodBaz BloodBaz May 2007 Development
  • Converting m$ to dataI created a maze using a matrix of 704 characters. In order to save memory, and since the maze it's just walls and spaces which could be interpreted …

    [QUOTE=Alcoholics Anonymous;189402]
    [code]
    30 LET m(INT (i/8) + 1) = VAL$ ("BIN " + m$(i TO i+7))
    [/code]
    [/QUOTE]

    Now that, sir, is very clever indeed!
    Arjun Arjun May 2007 Sinclair Basic
  • Converting m$ to dataI created a maze using a matrix of 704 characters. In order to save memory, and since the maze it's just walls and spaces which could be interpreted …

    ... ((LEN m$)/8+1)
    20 FOR i = 1 TO LEN m ... LET m(INT (i/8) + 1) = [B]VAL$[/B] ("BIN " + m$(i ... ]THAT[/I] is what [B]VAL$[/B] was intended for... All ...
    Marcelo Marcelo May 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... it is.
    [code]
    1 CLS : LET b=12: DIM ... b): FOR q=1 TO b: LET p(q)=VAL "3579b6bbbbb2"(q ... PRINT AT g,0; INVERSE 1;a$(g): NEXT g: INPUT ... 6)=p(e+6)-1: LET l=1+(p(b)=11)*q ... L as variable and the 1 comes in as well.< ... LET L=...
    All +1 are +1 and no +L
    Dr BEEP Dr BEEP May 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... and fitting
    within the 1 screen boundary.

    ... +8.

    [code]
    1 LET b$="? ? ? ? ? ? ? ? ":
    CLS : ... FOR c
    =1 TO 8: FOR g=1 TO 10: PRINT ... IN
    VERSE 1;AT y,x;"Q";AT ... br /> OR b=1 TO 4: LET q=VAL "3213"(b)
    Dr BEEP Dr BEEP June 2007 Development
  • New protection systemsAs a follow-up to [URL="http://www.worldofspectrum.org/forums/showthread.php?t=14311&page=2"]this[/URL] thread regarding relatively new protection sy…

    ...

    1 : with a calculator get the val or R entering ... the LDIr then val (2*BC value) and being ...
    Kilby Kilby July 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... :
    [code]
    1 LET a$="": LET c=0 ... n$ TO 1 STEP -1: LET r=VAL n$(l TO ... l)+VAL n$(LEN n$-l+1 ... TO LEN n$-l+1 ... : LET c=LEN s$-1: LET r$=r$+s$( ... c+1 TO c+1): NEXT l: ... 1 TO LEN r$-1+c): FOR l=LEN r$ TO 1 STEP -1 ...
    wilko0070 wilko0070 July 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... :
    [code]
    1 LET a$="": LET c=0 ... n$ TO 1 STEP -1: LET r=VAL n$(l TO ... l)+VAL n$(LEN n$-l+1 ... TO LEN n$-l+1 ... : LET c=LEN s$-1: LET r$=r$+s$( ... c+1 TO c+1): NEXT l: ... 1 TO LEN r$-1+c): FOR l=LEN r$ TO 1 STEP -1 ...
    Digital Prawn Digital Prawn July 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... br /> [code]
    1 LET a$="": LET c=0 ... n$ TO 1 STEP -1:
    LET r=VAL n$(l ... TO l)+VAL n ... $(LEN n$-l+1 ... TO LEN n$-l+1 ... r$=r$+s$(c+1 TO c+1): NEXT l: ... 1 TO LEN r$-1+c): FOR l=LEN r$ TO 1 STEP -1 ...
    Digital Prawn Digital Prawn July 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... .

    Problems:-

    1) It grew too big, 47 ... into trouble if you try VAL u$(3 TO ) on whitespace ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... FN w(a,s)=VAL ((a$(a,s) ...
    LET x=1:
    LET y=1:
    cursorcoordinates

    FOR h=1 TO n$>"":
    ... FOR s=0 TO 1:
    PAUSE 1-s:
    LET ... 1,1 : 100
    in 2,1 : 2
    in 3,1 ; FN W(1,1 ... )*FN W(2,1)
    in 4,1 ...
    Dr BEEP Dr BEEP September 2007 Development
  • Death Pit PreservationClive Townsend has found his Death Pit tape and cassette inlay.... He also had a microdrive cartridge apparently containing the game... What's the b…

    ... /> 1 BORDER NOT PI: PAPER NOT PI: CLEAR VAL "24999": POKE VAL "23739 ...
    Andrew Barker Andrew Barker October 2007 MIA/STP/SDP
  • 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…

    Here are the improvements I mentioned:

    [CODE]
    1 READ n,a$:
    FOR c=0 TO 8:
    POKE USR "b"-c,SIN (c/3)-1:
    POKE USR "c"-c,129:
    LET q=INT (c/2)+1:
    CIRCLE 91,92,CODE " $LS "(q):
    POKE (c
    Einar Saukas Einar Saukas February 2008 Development
  • 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…

    ...
    [code]
    1 PRINT AT 9,9;"SIMON ... =23620:
    FOR f=1 TO 4:
    INK ... 1 TO 32: PLOT SGN (f-2.5)*80+24+g,(VAL ... "0202"(f)-1)*99-48+g ... f; OVER 1;AT VAL "1919"(f)+4,VAL "0099"(f)+ ... 7;f:
    NEXT f:
    LET f=1 ...
    Dr BEEP Dr BEEP February 2008 Development
  • 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…

    ... br />
    [CODE]
    1 POKE 23693,7:
    CLS ... ;"SIMON":
    FOR f=1 TO 4:
    INK ... FOR g=1 TO 32:
    PLOT (VAL "0202"(f)-1)*112+24 ... br /> PRINT OVER 1;AT VAL "1199"(f)+4,VAL "0909"(f)+11 ... q=4); INK 8; OVER 1; BRIGHT -b,:
    ...
    Einar Saukas Einar Saukas February 2008 Development
<1…19202122232425…34>

Latest Posts

  • 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
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade 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

HitBox

Word Docs Hits
val 705 2.3K
1 73.3K 143.7K

Related Threads

  • Fuse for Mac OS X 1.1.1.1 ReleasedA new version of Fuse for Mac OS X has been released at the dedicated sourceforge project and shortly here on WoS:<br /> <br /> [url]http://sourcefor…
  • ANNOUNCE: Fuse 0.6.1.1, libspectrum 0.2.0.1Hi all.<br /> <br /> The recently released Fuse 0.6.1 and libspectrum 0.2.0 contained a couple of moderately serious bugs:<br /> <br /> * The SVGAlib…
  • Input Magazine Vol 1 & 2 (pgs 1-824, mag 1-26) in BindersHaving a mini clear out and I've got two sets of these now so if anybody wants my spare one you can have it for postage which will be about ?7 to UK …
  • Fuse 1.1.1 releasedOn behalf of the Fuse team, I am pleased to announce the 1.1.1 release of Fuse. The changes from the recent 1.1.0 are relatively minor, mostly correc…
  • Fuse for Mac OS X 1.1.1 ReleasedA new version of Fuse for Mac OS X has been released at the dedicated sourceforge project and shortly here on WoS:<br /> <br /> [url]http://sourcefor…
  • Bug in Fuse 1.1.1 recording RZX filesI've spent a few hours trying to record a completion run of Rasterscan for the RZX Archive website.<br /> <br /> The recording seemingly records file…
  • Fuse emulator 1.1.1 for the Rasbperry PiHello, have been waiting for a long time for an official update to the Fuse emulator on the Raspberry Pi, currently at version 1.0.0. Today decided t…
  • Fuse 1.1.1 and DSK file supportDear reades,<br /> <br /> I'm working with Fuse 1.1.1 for Windows. I'm not able to use a valid (and with Spectaculator and my own tools working) DSK …
  • Fuse 0.5.1 and libspectrum 0.1.0 releasedVersion 0.5.1 of Fuse, the Free Unix Spectrum Emulator, is now available from its homepage, [url="http://www.srcf.ucam.org/~pak21/spectrum/fuse.html"…
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax.<br /> <br /> what is the difference between val "1" and 1?<br /> <br /> …

Related Searches

  • r forum loading error 0 1
  • r tape loading error 0 1
  • val
  • inzerface 1
  • interface 1 voltage
  • multiface 1
  • 1 bit music
  • disk has been changed 1 5
  • 3 2 1
  • traco power tsr 1 2450
  • tax 1 20
  • issue 1
  • issue 1 ebay
  • tommygun 1 2
  • interface 1 bis
  • fuse 1 0
  • fuse 1 0 released
  • fuse 1 2 0
  • specemu 1 5
  • zx spectrum emulator 1 5

Copyright © 2024 World of Spectrum