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.209s
<1234567…34>
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    I see some basic programs which use Let a=val "1" instead of let a=1 syntax.

    what is the difference between val "1" and 1?

    is it an effect of some compiler or converter?

    just curious.
    Arda Arda April 2003 Sinclair Basic
  • 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: [quote] 20 RANDOMIZE : LET a$=""…

    ... to extract random numbers from a sequence in the one-liner ... /> 20 RANDOMIZE : LET a$="": FOR f=1 TO 49: LET a$=a$+CHR$ (f): NEXT ... );":": FOR f=1 TO 6: LET b=1+INT (RND*LEN ... a$): PRINT AT g-1,8+(( ... f-1)*3);" "( TO (CODE a$(b)
    Dunny Dunny November 2008 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ... the routine:
    LET A$="QH": PRINT USR adres;A$
    PRINT AT ...
    Dr BEEP Dr BEEP December 2008 Development
  • A tidy loader for minigamesThe minigame competition doesn't permit the use of separate loaders like [code]10 LOAD "": RAND USR 32768[/code] The loader must be included in the b…

    ... afterwards[/i][/b].
    [code]LET a = PEEK 23635 + 256 * PEEK ... USR
    6 97 a
    7 13 Carriage ...
    1018 65 Variable name (a)
    1019 0 Mantissa
    ===========

    There's a way to squeeze out another ...
    ajmoss ajmoss June 2010 Development
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... />
    How can the LET s$=a$ (the bit that does the ... =16384: LET dl=6912: LET defadd=23563
    30 FOR a=udg TO ... +1,FN h(udg):
    LET s$=a$:
    POKE defadd,0 ... +1,FN h(udg):
    LET a$=s$:
    POKE defadd,0 ...
    Battle Bunny Battle Bunny April 2011 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…

    ... $ 0:
    FOR a=3 TO 19:
    LET m$=m$+CHR ... 0:
    CLS
    110 LET a$=CHR$ 17+CHR$ 7+CHR ... LET c$=""
    130 FOR a=1 TO 10:
    LET c$=c$+a ... $:
    NEXT a:
    LET c$=CHR$ 19 ...
    Paddy Coleman Paddy Coleman June 2011 Sinclair Basic
  • 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…

    ... following line (well the 2nd LET statement) is somewhat slow.< ... =INT (CODE z$(a,4)/16)
    LET a$=(("D" AND h ... )+("DP" AND z$(a,o)=CHR ... +CODE z$(a,6)*256+CODE z$(a,5)))[/CODE]< ... />
    Does anyone see a way to speed it up ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Is there a limit to the numberof variables you can have in BASIC..... Reason I ask is I've got an idea....but using my "lowest common denominator" approach to code I fear that I'…

    ... upwards of 200 variables (LET a=1, LET b=2...etc etc) to ... this kind of thing....basically a maze with walls held as ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • How much space does a number take?Hi Folks, Could someone please remind me how much memory a number takes up in a BASIC listing. For example, if you had: [CODE]100 LET a=3000[/CODE…

    ... how much memory a number takes up in a BASIC listing. For ... had:

    [CODE]100 LET a=3000[/CODE]
    does the ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • Overflow Detection while Scanning a Number from a StringI've got some strange behaviour from a subroutine that reads a number from a string and converts it to a 32-bit long. It's C's strtol if it helps to…

    ... a subroutine that reads a number from a string and converts it to a ... It's certainly true within a base system. Eg within base ... what about a representation of a base X number in a binary ... to proving this:

    Let a = the running total, b = base ...
    Alcoholics Anonymous Alcoholics Anonymous April 2012 Development
  • A "bit" of a curiosityHaving to use a bit of m/code to do the AND in that key check function, I was prompted to revisit the "AND,XOR,OR,...for BASIC" topic and came up wit…

    ... )=g:
    RESTORE llll: LET da=PEEK 23639+256*PEEK ... LET ba2=INT (a/2): LET bb2=INT (b/2):
    LET ba=a-ba2 ... *2: LET ... bb=b-bb2*2:
    LET a=ba2: LET b ...
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • Omitting LETAn untested thought. Changing: [code]1B34 SUB $CE ; Reduce command code by $CE to ; give 00 to 31 for comman…

    ... to REPORT-C if not a
    ; command[/code]to
    LD (CHADD),HL
    LD A,'LET'-$CE ; Set current code to ... LET to be omitted, allowing [b]a=1[/b] instead of [b]LET a ...
    Jonathan Harston Jonathan Harston November 2012 Sinclair Basic
  • A 128 Routine to Put Tokens in StringsI was writing a DEF FN on the +128k and decided that I'd had enough of not being able to put function tokens in strings without a great palaver and s…

    ... : LET a=FN p(23639):
    LET la=256*PEEK (a+1)+PEEK (a+2): LET ... ll=FN p(a+3): RESTORE 9990:
    LET ... ae=a+4 ... +ll: LET ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • need some help with a small programHi you all, maybe someone can quickly help me on this small program, I just did a really small program for a presentation, I want the letters to ch…

    ... 1
    120 let a$="blablabla"
    130 let b$="blablabla"
    140 ... print at 9,11; ink i; a ... $="T120"
    205 let o$="O3"
    210 let d$="t$+o ... $+"abcdef"
    215 let e$=t$ + "O4abcdef"
    220 ...
    lomax030 lomax030 January 2013 Sinclair Basic
  • Saving a file and removing the title (Program:)I remember when saving a program how I could construct a string such as: 10 let a$=chr$ 8+ chr$ 8+"name" 20 save a$ In order to remove the "Program…

    ... when saving a program how I could construct a string such as ... :

    10 let a$=chr$ 8+ chr$ 8+"name ... "
    20 save a$

    In order to ... the "Program:" title to display a different loading header.

    daveysludge daveysludge April 2013 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…

    ... is the source, as in LET a$=b$. a$ & b$ contain either ... /> IF FN p(a+3)=5 THEN
    LET loc=VAL VAL ... $ (CHR$ PEEK (a-3)+"$"):
    POKE a+1 ... (l)
    35 POKE a,0: NEXT a: LET a$=b$: POKE da+1 ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    ... LET A$=""
    30 IF A$="" THEN INPUT A$
    40 LET Y=CODE A$-48 ... : IF Y>9 THEN LET ... =Y-7
    50 LET Z=CODE A$(2)-48: IF Z ... >9 THEN LET Z=Z ...
    70 LET X=X+1
    80 LET A$=A$(3 TO )
    wibble wibble August 2013 Development
  • A game from an other machine.if someone interesting, this is a game I created in 1989. this is the basic source, maybe somebody can convert to specy. An image: http://www.ep128.…

    ... AT X,Y:"š":LET X$(X,Y)=" ":LET A=X:LET S=Y:GOTO ... AT TA1,TA2:"‘":LET TAI=1
    810 !LET A=3:LET S=19 ... CALL RASZT
    880 LET A=KEZA:LET S=KEZS:CALL EMB
    A-1,S)="-" THEN CALL EMB:LET A=A-1:CALL EMB ... OR X$(A-1,S)="-" THEN CALL EMB:LET A=A-1:CALL ...
    endi endi June 2017 Sinclair Basic
  • Tomb Raider - LegendSeven and a half hours. Seven and a half bloody hours. Seven hours and a tad over thirty mins TOTAL. Great Graphics. Great Story. A GRAND TOTAL …

    ... Dictionary.

    TOMB RAIDER: A very poor game which disappointed ... as Resident Evil or Dino Crisis. but I'm sure you ... finished game - but then why let a little thing like facts spoil ... slur.

    Saw a fantastic program a while back - Brass Eye ...
    ZX Beccy ZX Beccy April 2006 Chit chat
  • Speeding up select processing...Hi Folks, I have the following code in my program and it works fine but is rather "sluggish". I have even moved it to the beginning of the program …

    Hi BB, Crisis,

    Thank you for ... REM
    260 LET t(1)=2:
    LET t(3)=t ... /> POKE 23560,0
    280 LET t(2)=PEEK 23560:
    Paddy Coleman Paddy Coleman June 2011 Sinclair Basic
  • numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…

    [QUOTE=Crisis;541408][code]
    5 CLEAR ... : LET a=BIN 11011011: PRINT "a=";a'"a$=";
    25 LET a$=FN b$(a,15): PRINT a$

    I know a working RECURSIVE function like this ... for your STOP-question.
    A recursive formula in BASIC needs ...
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • 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…

    [QUOTE=Crisis;547615]Nested FOR:NEXT are very slow as well, better change that in several GOTO's
    [code] IF x
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • 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…

    [QUOTE=Crisis;547615]Not ... steady variables, plan this (a little) ahead
    ... [code]
    let a=b+c: let d=(a>g): let a=a-d
    ... [/code]or
    [code]
    let a ... QUOTE]

    Hi Crisis,

    Already do ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • 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…

    [QUOTE=Crisis;547723]Hi Paddy,


    Hi Crisis,

    Well assuming that ... ]100 DIM a$(1,1)
    110 LET a$(1,1)="A"
    ... 120 IF a$(1,1)= ... "
    140 IF a$(1,1)="A" THEN PRINT "Hello"[/CODE ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
<1234567…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Frankie's ZX Spectrum Digouts
    Zup on April 8
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8

HitBox

Word Docs Hits
crisis 6.7K 7.4K
let 29.3K 51.6K
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…
  • 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…
  • 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…

Related Searches

  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • create a batch file screen
  • change a letter
  • crisis
  • crisis screen
  • circle crisis
  • 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
  • let a poke print
  • for a 1 to let condition next

Copyright © 2024 World of Spectrum