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.008s
<1…14151617181920…34>
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ...
    20 LET prog = PEEK 23635 + 256 * PEEK 23636
    30 RESTORE ... +6+n), 255
    1030 PRINT USR(prog + 5)
    [/CODE ...
    John Elliott John Elliott May 2010 Sinclair Basic
  • Resolving USR entry point into a data + m/code block?Well, I had another look at that Merlin listing and decided that blowing up the faint page made it possible to read everything (with a struggle). How…

    ...
    20 PRINT F;"..."; PEEK F, CHR$ PEEK F AND PEEK F > 31 ...
    Dr BEEP Dr BEEP June 2010 Development
  • Howto paint a squared zone of the screen ?You know what guys ? i begin to love this languaje. Cant understand why not put more effort on the 80's to learn it :( because it is really speedy. …

    ... />
    and call it using PRINT USR. You also can call ... =PEEK a
    30 IF c==0 THEN STOP
    40 PRINT ...
    Shiru Shiru June 2010 Sinclair Basic
  • Howto paint a squared zone of the screen ?You know what guys ? i begin to love this languaje. Cant understand why not put more effort on the 80's to learn it :( because it is really speedy. …

    ...
    20 let b=peek a
    30 print b
    and ...
    arfgh arfgh June 2010 Sinclair Basic
  • Howto paint a squared zone of the screen ?You know what guys ? i begin to love this languaje. Cant understand why not put more effort on the 80's to learn it :( because it is really speedy. …

    ... /> 20 let b = peek a
    30 print b

    But ...
    arfgh arfgh June 2010 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 with [code]10 PRINT USR (256*PEEK 23628 + PEEK 23627 + 3)[/code ...
    ajmoss ajmoss August 2010 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. …

    ... at the required location using PRINT AT and then read the ... /> [CODE]PRINT AT y,x;
    LET sa=PEEK 23684+256*PEEK 23685 ...
    Paddy Coleman Paddy Coleman August 2010 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. …

    ... at the required location using PRINT AT and then read the ... /> [CODE]PRINT AT y,x;
    LET sa=PEEK 23684+256*PEEK 23685 ...
    Dr BEEP Dr BEEP August 2010 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. …

    ... in simple games. They'd 'PRINT AT' then read the system ... for the memory address, then PEEK that address to get the ... , kill you, or just simply PRINT your player character in the ...
    joefish joefish August 2010 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. …

    ... you have a top/bottom PRINT statement. This allows the ... full use of the PRINT features e.g. colours ... /> 110 LET CHARS=PEEK 23606+256*PEEK 23607: LET CHARS=CHARS ... 140 PRINT AT 0,0;a
    145 POKE DTOP,PEEK CHARS ...
    155 POKE DTOP,PEEK CHARS
    160 LET ...
    Paddy Coleman Paddy Coleman August 2010 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. …

    ... you have a top/bottom PRINT statement. This allows the ... full use of the PRINT features e.g. colours ... /> 110 LET CHARS=PEEK 23606+256*PEEK 23607: LET CHARS=CHARS ... 140 PRINT AT 0,0;a
    145 POKE DTOP,PEEK CHARS ...
    155 POKE DTOP,PEEK CHARS
    160 LET ...
    Dr BEEP Dr BEEP August 2010 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. …

    ... x=4: LET CHARS=PEEK 23606+256*PEEK 23607
    250 REM ... /> 340 PRINT AT y,x;: LET sa=PEEK 23684+256*PEEK 23685
    380 LET T=PEEK ca
    390 IF T ...
    Paddy Coleman Paddy Coleman August 2010 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. …

    ...
    110 LET CHARS=PEEK 23606+256*PEEK 23607: LET CHARS=CHARS ... /> 140 PRINT AT 0,0;a
    145 POKE DTOP,PEEK CHARS ... +1
    155 POKE DTOP,PEEK CHARS
    160 LET DTOP ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Time function?How do you do a timer? Example: Start timer If timer = 10 seconds then reset timer Thanks

    ... t()= INT ((65536* PEEK 23674+256* PEEK 23673+ PEEK 23672)/50)
    60 ... LET now=FN t()
    70 PRINT ...
    na_th_an na_th_an September 2010 Development
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1)

    3001 PRINT #0;AT k0,k0; INVERSE ... /> LET e=PEEK i:
    IF e=code THEN PRINT #0;AT ... p(23641)-2:
    IF PEEK a
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 0: CLS
    110 PRINT AT 0,0;"INSERTION SORT ... v1": PRINT AT 2,0;"Generating ... -t2))/2
    160 PRINT AT 4,0;"Start : ... -t2))/2
    270 PRINT AT 5,0;"Finish : ... PEEK 23674+256*PEEK 23673+PEEK 23672)/50: LET t2=(65536*PEEK 23674+256*PEEK ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... 0: CLS
    110 PRINT AT 0,0;"INSERTION SORT ... v1": PRINT AT 2,0;"Generating ... -t2))/2
    160 PRINT AT 4,0;"Start : ... -t2))/2
    270 PRINT AT 5,0;"Finish : ... PEEK 23674+256*PEEK 23673+PEEK 23672)/50: LET t2=(65536*PEEK 23674+256*PEEK ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... : BORDER 0: CLS
    110 PRINT AT 0,0;"SHELL SORT ... v1": PRINT AT 2,0;"Generating data ... (t1-t2))/2
    160 PRINT AT 4,0;"Start : ";st ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    Hi Dr. Beep,

    Tried one of the tricks you said (move the code nearer the top) and a couple of other optimisations and the Shell Sort now averages 10.3 seconds rather than 11.57.

    [CODE]100 GO SUB 250
    110 REM SHELL SORT V2
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... n:
    PRINT v$(i);:
    PRINT : STOP
    90 LET t1=(65536*PEEK 23674+256*PEEK 23673+PEEK ... 23672)/50:
    LET t2=(65536*PEEK ... 23674+256*PEEK 23673+PEEK ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... DEF FN t()=65536*PEEK 23674+256*PEEK 23673+PEEK 23672
    10 ... 90: LET st=time:
    PRINT t;":Start : ";st
    ... 90: LET ft=time:
    PRINT t;":Finish : ";ft't;": ... i=1 TO 52:
    PRINT v$(i);:
    NEXT ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • DRAW x,y,a Algorithm - how does the ROM do it?Hi all, Getting on with SpecOS, and one of the things I would love to do is to preserve the original ROM's behaviour when drawing Arcs. This is don…

    ... /> 30 INPUT "X value ";X: PRINT "X = ";X;
    40 ... 2)
    120 LET M0=PEEK 23678
    130 LET ... br /> 230 LET X=SC-PEEK 23677
    240 LET ... Y=M0-PEEK 23678
    250 GO ... /> 510 LET PlotX=PEEK 23677: LET PlotY=PEEK 23678
    520 ...
    Marcelo Marcelo September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    Hi Battle Bunny,

    Never ceases to amaze me the difference in performance between BASIC and MCODE. Sounds like you have a powerful routine there.

    I have modified my demo version so that it can be used (for future generations ;)) as ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • 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…

    ... y=1 TO 7:
    PRINT AT y*3-2,23 ... :
    INPUT ':
    LET c=PEEK 23556-48:
    POKE (8 ...
    Einar Saukas Einar Saukas October 2010 Development
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK 23674)/50
    45 PRINT "Elapsed time: ";t2-t1;" sec ... =1 TO nelem: PRINT p$(n);" ";: NEXT n: PRINT : RETURN
    2000 ...
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... DEF FN t()=(PEEK 23672+256*PEEK 23673+65536*PEEK 23674)/50
    45 PRINT "Elapsed time: ";t2-t1;" sec ... =1 TO nelem: PRINT p$(n);" ";: NEXT n: PRINT : RETURN
    2000 ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    Hi Dr Beep etc.

    Come on guys - you know more about Sinclair BASIC than is healthy! :smile: Surely you have some tips to optimise/speed up the following code.

    [CODE]100 GO SUB 250
    110 REM SHELL SORT V4
    120 LET b=INT (n ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
<1…14151617181920…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
print 8.5K 20.4K
peek 1.9K 4.4K

Related Threads

  • How to print with colour using DiscipleHi!<br /> <br /> I was wondering if there is any way of printing in colour using the Disciple. I am using an Epson Stylus 600 Printer with one of my …
  • Spectrum 2003 News and Info Special at PEEK N' POKE[url="http://peeknpoke.emuunlim.com/spectrum2003/pnpspectrumnews2003index.html"]http://peeknpoke.emuunlim.com/spectrum2003/pnpspectrumnews2003index.h…
  • Sinclair User: Blue Print Double DragonI'm not sure what issue the Blue Print of Double Dragon appeared, I think it was issue 78 (September 88)<br /> <br /> Even a scan would do. Cheers
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects?<br /> <br /> As a start, try anything from RANDOMIZE USR 12…
  • 42 column text, Sinclair Print Utilities, etcI'm currently developing the next of the ZXIF text adventures - "43 Minutes" and, as a side issue, I'm really interested in 42 column text for this g…
  • Print 'n' Plotter SPRITE MACHINEJust got this from an ebay seller this afternoon. I just TZXd it and sent it to the Steve at the vault, yet it might be a while before it gets put up…
  • print at line 22 and 23I have a faint recollection of POKES to allow print at 22,x and 23,x, anyone know what they are? (rather than using the print #0 #1 stuff..)
  • PRINT AT in assemblerHello everyone,<br /> <br /> I am very new to this forums. Like perhaps many others I had a Spectrum as a child and did pretty much simple BASIC prog…
  • Speed of variables vs. POKE/PEEKGreetings,<br /> <br /> I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone a…
  • Print routine for BASIC (or BASin)For anyone interested there's a crappy binary here to print characters from BASIC at pixel positions. Import the binary at 60000, USR 60000 to initia…

Related Searches

  • print a char in asm
  • rom peek 128k pentagon
  • rom peek 128k pentagon 004c
  • identify pentagon 48k 128k rom peek
  • peek rom identify model
  • peek rom detect model 48k 128k 3 pentagon
  • print variables
  • peek
  • peek 1024mak
  • detect 128k peek
  • detect 16k peek
  • z88dk read address peek
  • z88dk read peek
  • z88 peek
  • z88dk peek
  • print on border
  • print leading zeroes
  • print at 23
  • print through
  • asm text print

Copyright © 2024 World of Spectrum