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…15161718192021…34>
  • 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…

    ... POKE 16384,n
    30 PRINT AT 1,0;: FOR i ... =0 TO 7: PRINT POINT (i,175);: NEXT i ... POKE 16384,PEEK 23671: POKE 16385,PEEK 23670
    40 PRINT AT 1 ... ;: FOR i=0 TO 15: PRINT POINT (i,175);: NEXT i ...
    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…

    [QUOTE=JamesD;482918]If you can use ELSE it should look like this.
    [CODE]110 REM COMB SORT V2
    ...[/CODE][/QUOTE]

    Hi James,

    Coded up your V2 Comb Sort and got the following results:

    Paddy's original V1 Comb ...
    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…

    ... PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK 23673+PEEK ... 0:
    CLS :
    PRINT AT 0,0;"COMB SORT ... /> NEXT a:
    PRINT AT 9,0;"Array Contents ... /> RETURN
    300 REM Print Array Contents
    310 FOR ...
    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…

    ... : PRINT p$(i);" ";: NEXT i: PRINT : RETURN
    9000 DEF FN t()=(PEEK ... 23672+256*PEEK 23673+65536*PEEK ... GO SUB 5000
    9045 PRINT "Elapsed time: ";t2-t1;" sec ...
    Einar Saukas Einar Saukas 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…

    ... : PRINT p$(i);" ";: NEXT i: PRINT : RETURN
    9000 DEF FN t()=(PEEK ... 23672+256*PEEK 23673+65536*PEEK ... GO SUB 5000
    9045 PRINT "Elapsed time: ";t2-t1;" sec ...
    Einar Saukas Einar Saukas 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…

    [B]STEP 3 -[/B] Now let's take a look at the quicksort algorithm, since we will need to properly understand it in order to find further improvements.

    The basic idea behind the quicksort algorithm can be represented by the following pseudo-code ...
    Einar Saukas Einar Saukas 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…

    ... : PRINT p$(i);" ";: NEXT i: PRINT : RETURN
    9000 DEF FN t()=(PEEK ... 23672+256*PEEK 23673+65536*PEEK ... GO SUB 5000
    9045 PRINT "Elapsed time: ";t2-t1;" sec ...
    Einar Saukas Einar Saukas 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…

    ... PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK 23673+PEEK ... 0:
    CLS :
    PRINT AT 0,0;"COMB SORT ... /> NEXT a:
    PRINT AT 9,0;"Array Contents ... /> RETURN
    290 REM Print Array Contents
    300 FOR ...
    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…

    ... /> LET f=a:
    PRINT AT 5,0;"Finish : ";f ... PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK 23673+PEEK ... BORDER 0:
    CLS :
    PRINT AT 0,0;"COMB SORT ... /> RETURN
    260 REM Print Array Contents
    270 FOR ...
    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…

    ... LET f=a:
    PRINT AT 5,0;"Finish : ";f ... PEEK 23673+PEEK 23672)/50:
    LET b=(65536*PEEK 23674+256*PEEK 23673+PEEK ... 0:
    CLS :
    PRINT AT 0,0;"COMB SORT ... RETURN
    260 REM Print Array Contents
    270 FOR ...
    Einar Saukas Einar Saukas October 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. …

    ... C=PEEK 23606+256*PEEK 23607+CODE "0"*8:
    PRINT AT 5 ... ;:
    LET D=PEEK 23684+256*PEEK 23685:
    PRINT PAPER 7;"0 ... STEP 256:
    POKE A,PEEK (B+(A-D)/256):
    Paddy Coleman Paddy Coleman October 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. …

    ... C=PEEK 23606+256*PEEK 23607+CODE "0"*8:
    PRINT AT 5 ... ;:
    LET D=PEEK 23684+256*PEEK 23685:
    PRINT PAPER 7;"0 ... STEP 256:
    POKE A,PEEK (B+(A-D)/256):
    30 print at 10,0;0
    Dr BEEP Dr BEEP October 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. …

    ... /> LET D=0
    140 PRINT AT 5,5; PAPER 7 ...
    Paddy Coleman Paddy Coleman October 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. …

    ... : POKE 23606,f
    140 PRINT AT 5,5; PAPER 7 ... *------------------------*
    260 LET CHARS=(PEEK 23606+256*PEEK 23607)+(CODE "0"*8 ... TO 79: POKE NUMS+A,PEEK (CHARS+A): IF A
    Dr BEEP Dr BEEP October 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. …

    ... :
    POKE 23606,B:
    PRINT AT 5,5;" ":
    NEXT ... *------------------------*
    200 LET CHARS=(PEEK 23606+256*PEEK 23607)+CODE "0"*8 ... 79:
    POKE NUMS+A,PEEK (CHARS+A):
    IF A
    Paddy Coleman Paddy Coleman October 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. …

    ... 31: PRINT CHR$ 8;: NEXT a
    110 INPUT AT PEEK 23689 ... ;"*"; LINE a$
    120 INPUT ;: PRINT '"*";a$[/CODE]

    [Edit ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Override AUTOLINE start?Hi there, Is there a poke that prevents a BASIC program from auto running, when it was previously saved with the LINE command? Cheers, Steve

    ... CLS
    30 PRINT #0;" Desculador de cabeceras ... start=(PEEK 50027+256*PEEK 50028)
    90 PRINT AT ... PRINT FLASH 1;CHR$ PEEK n;:NEXT n
    110 PRINT ... AT 7,0;("Start address:"AND PEEK 50014 ... cby=PEEK 50025+256*PEEK 50026
    130 PRINT AT ...
    Marcelo Marcelo November 2010 Sinclair Basic
  • Override AUTOLINE start?Hi there, Is there a poke that prevents a BASIC program from auto running, when it was previously saved with the LINE command? Cheers, Steve

    ... = 23755 TO 4E4: PRINT F;"..."; PEEK F, CHR$ PEEK F AND PEEK F > ...
    Dr BEEP Dr BEEP November 2010 Sinclair Basic
  • Stopping the loading messages...Hi Folks, As you know, the ZX BASIC kindly reports the program, bytes or data that you have loaded on the screen. To stop these appearing I was thi…

    ... so:

    POKE (PEEK 23631+256*PEEK 23632)+5, 111 - to ... hide the messages and
    POKE (PEEK ... 23631+256*PEEK 23632)+5, 244 - to restore PRINT

    Marko Marko November 2010 Sinclair Basic
  • Stopping the loading messages...Hi Folks, As you know, the ZX BASIC kindly reports the program, bytes or data that you have loaded on the screen. To stop these appearing I was thi…

    ... so:

    POKE (PEEK 23631+256*PEEK 23632)+5, 111 - to ... hide the messages and
    POKE (PEEK ... 23631+256*PEEK 23632)+5, 244 - to restore PRINT

    Paddy Coleman Paddy Coleman December 2010 Sinclair Basic
  • Activision's Ghostbusters (1984 version)Did anyone ever manage to work out (or hack) the account numbers? If so, are they the same for the 1986 rehash?

    ... GO SUB 9000
    15 PRINT " Ghostbusters account lookup"
    ... Ireland edition"
    17 PRINT
    20 DIM n ... 32 NEXT i
    35 PRINT n$
    40 INPUT " ...
    140 LET answer=PEEK 49152
    200 LET ... 330 NEXT i
    340 PRINT "Account number:";s$
    ...
    Jimmy Jimmy January 2011 Games
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... $(x TO y)
    110 PRINT FN a(3,4,"Paddy ... causes BASin to crash
    [*]PEEK 23556 always returns 255
    Paddy Coleman Paddy Coleman January 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    Nice piece of code to have a look in BASIC

    [code]
    10 FOR F = 23755 TO 4E4
    20 PRINT F;"..."; PEEK F, CHR$ PEEK F AND PEEK F>31
    30 NEXT F
    [/code]

    You will see the markers.
    Dr BEEP Dr BEEP February 2011 Sinclair Basic
  • +2: 128k enhanced games no longer loading (but OK in 48k mode) :-/Having a spot of bother with my +2, a couple of my favourite games are now refusing to work in standard "Tape Loader" based 128k mode - Marauder (Hew…

    ... POKE x,0:IF PEEK x0 THEN PRINT x:GO TO 50 ...
    40 POKE x,255:IF PEEK ... x255 THEN PRINT x
    50 OUT ... for a while. It will print out each address that does ...
    Jmk Jmk March 2011 Sinclair Miscellaneous
  • 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…

    ... ,0,27,41
    20 PRINT "THIS IS MY SCREEN"; AT ... SUB 60
    40 CLS : PRINT "PRESS A KEY": PAUSE 0 ... />
    60 POKE 23563,PEEK 23675: POKE 23564,PEEK 23676:
    IF ...
    Dr BEEP Dr BEEP April 2011 Sinclair Basic
  • Load! Screen$ questionI've got a basic program listing in BASIN which among other things recalls a screen via Load! (I've Save!'ed a screen into memory before hand). How d…

    ... stkend+300: GO SUB 20: PRINT ramtop: PAUSE 0:
    LOAD ... stkend=PEEK 23653+256*PEEK 23654:
    LET ramtop=PEEK 23730+256*PEEK 23731 ... TO 30
    40 CLS : PRINT "I'm back!": STOP
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • 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…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1):
    DEF ... POKE nl+5,FN d(PEEK da): POKE nl+27,FN ... d(PEEK (da+9)): LET dm=da ... +29 STEP 22:
    IF PEEK dm
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Amperage drastic reduction in a rubber 48KWell, I am now with the approach of a drastic reduction ZXSpectrum amperage. As a first step would change the Z80 processor for other (Z80C). Unfortu…

    ... calculating: LET N=PEEK 23732 + PEEK 23733*256: PRINT N show me 32767 ...
    Mobutu Mobutu April 2011 Hardware
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... />
    [CODE]100 RANDOMIZE PEEK 23672+256*PEEK 23672
    110 FOR ... +INT (RND*100)
    130 PRINT b
    140 NEXT a ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... ="Courier New"]xx10 RANDOMIZE PEEK 23672+256*PEEK 23672[/FONT]

    PEEK 23672 will always be zero ... />
    [CODE]100 RANDOMIZE PEEK 23672+256*PEEK 23672
    110 FOR ... +INT (RND*100)
    130 PRINT b
    140 NEXT a ...
    Alcoholics Anonymous Alcoholics Anonymous May 2011 Sinclair Basic
<1…15161718192021…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