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…17181920212223…34>
  • Mazes and Tremaux's AlgorithmI've done a version of Tremaux's maze solving algorithm which solves my current test maze with 400 junctions and 715 connections in a reasonably quic…

    ... : LET so=go:
    PRINT USR ms,k2,em,"v ... $()",mi;:
    PRINT AT k2,k0;"Back from ... LET sz=k0
    1214 PRINT AT k3,k0;"Depth=";jp ... k1: LET j$(loc)="!":
    PRINT AT k3,k3*k8;sz ... br /> POKE a+bo+k2,PEEK (a+bo+k2)+k1:
    Battle Bunny Battle Bunny November 2011 Development
  • BREAK from GOSUBHere's another one. Just in case you wanted to break out of multiple GOSUB levels with a single command, here's a routine to do it, tested on all mod…

    ... PRINT FN c(): GO TO FN c():
    DEF FN c()=PEEK ... 23621+256*PEEK 23622
    10 GO SUB FN c()+10: PRINT ... GO SUB FN c()+10: PRINT FN c(): RETURN
    ... GO SUB FN c()+10: PRINT FN c(): RETURN
    ... GO SUB FN c()+10: PRINT FN c(): RETURN
    ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    Hi Patrik,

    Sorry to bother you again but I have noticed a "funny" issue. Now I fully accept it might be down to me and the way I altered the machine code or a bug in BASin. When I run the attached program for the first time in BASin the ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ...
    400 POKE 23692,255: PRINT a;TAB 8;b;TAB ...
    440 IF b142 THEN PRINT "142": STOP
    450 REM ...
    530 REM
    540 PRINT : PRINT b101,b142
    550 REM ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Amazonia (BUGFIX)This is a bugfix for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0027280"]Amazonia[/URL], please add the following "known errors" des…

    ... =49474 TO 54557: POKE f,PEEK (f+(f 'ATIRE' 'ON?A ... ?
    b4c9: 01 3c PRINT MSG(60) ; print "@&++.!'?... errei."
    b4cb ... '
    b730: 01 50 PRINT MSG(80) ; print "Grande descoberta..."
    b732 ...
    Einar Saukas Einar Saukas January 2012 Infoseek database
  • Amazonia (BUGFIX)This is a bugfix for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0027280"]Amazonia[/URL], please add the following "known errors" des…

    ... b8c6: 01 60 PRINT MSG(96) ; print "Ela esta toda quebrada ... STEP -1: POKE f,PEEK(f-1): NEXT f: ... 47384 TO 47442: POKE f,PEEK (f+2): NEXT f ... br /> bc92: 01 3c PRINT MSG(60) ; print "@&++.!'?... errei."
    ...
    Einar Saukas Einar Saukas January 2012 Infoseek database
  • Amazonia (BUGFIX)This is a bugfix for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0027280"]Amazonia[/URL], please add the following "known errors" des…

    ... 48304 TO 48443: POKE f,PEEK (f+9): NEXT f: ... 49359 STEP -1: POKE f,PEEK (f-2): NEXT f: ... br /> e31a: 01 93 PRINT MSG(147) ; print "Zap, zup... Nao sobrou ... br /> e31a: 01 93 PRINT MSG(147) ; print "Zap, zup... Nao ...
    Einar Saukas Einar Saukas January 2012 Infoseek database
  • Rubber 48k troublesHi. I've just got a 48k to add my collection, but it seems doesn't working well. The computer starts ups finely, but it doesn't load the games. So fa…

    ... ,255
    30 IF PEEK x255 THEN PRINT "ERROR AT";x
    Spectrum Spectrum January 2012 Hardware
  • DATA vs PRINT and OVERjust messing about and came across this alternative way of drawing a map....now before I start mucking about with my actual program.....is there any …

    ... /> [code]
    1 PRINT AT 1,1;1;OVER ... 1;1
    2 PRINT AT 2,2;1; ... />
    A DATA ... READ ... PRINT loop is always going to ... system variable DATADD (PEEK 23639+256*PEEK 23640) tells you ... using a DEFADD (PEEK 23563+256*PEEK 23564) secondary variable ...
    Battle Bunny Battle Bunny February 2012 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…

    ... ,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 ...
    Paddy Coleman Paddy Coleman February 2012 Sinclair Basic
  • LZ77 en/decodingI've written an LZ77 en/decoding routine as I couldn't find one around for the Spectrum. Initially I'm just doing it in BASIC to get the logic right.…

    ... l=FN p(p):
    PRINT AT VAL "2",NOT PI ... m(a)=FN p(ad): PRINT m(a):
    NEXT a ... (): PRINT 't2-t1:
    DEF FN p(a)=VAL "PEEK a+256*PEEK ... u()=VAL "65536*PEEK 23674+256*PEEK 23673+PEEK 23672"/50:
    DEF ...
    Battle Bunny Battle Bunny March 2012 Development
  • Increasing the number of UDGs...Hi Folks, I know by default the Spectrum can have 21 UDGs (48K) and 19 (128K) and that the address of the bit patterns is pointed to by the UDG syst…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1):
    DEF ... ,FN h(UDG256)
    11 PRINT "a\000 STOP \255z":
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • countdown timer ?just curious if there was a pre-made one about that I could use to count down from 999 to 0. in MC / under interrupt, that returns to basic? but how…

    ... ):
    POKE s,start-PEEK h*24-PEEK m*60:
    LET ... =PEEK m: LET se=PEEK s: LET hms=hr+mi+se:
    PRINT ... +se;" ":
    GO TO (PEEK 23621+256*PEEK 23622+1 AND hms ... hms)
    [/code]
    PEEK 23621+256*PEEK 23622+1 just gives ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... ";"Press ENTER to continue":
    PRINT AT e15,VAL "12"; OVER ... TO 3140
    3141 IF PEEK F1
    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... )=PEEK a+256*PEEK (a+1)
    40 INPUT address
    50 PRINT ... DEF FN p(a)=PEEK a+256*PEEK (a+1)
    12 ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Official Basinc thread - Bug reports and other discussionI just released a new BASin fork, basinc. The first official release was V16r2, and today it's r3. it's uploaded to wos archive and alternatively, h…

    ...
    110 LET a=PEEK 23560: PRINT AT 0,0;a;" "
    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • +3 DOS questionHey all, Is it possible to catalogue a +3 disk to a variable somehow from BASIC? I'm looking at extending my Snapshot to Microdrive utility, so it s…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1)
    21 ... -k1-32)=CHR$ PEEK a: NEXT a:
    PRINT s$
    [/code ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • +3 DOS questionHey all, Is it possible to catalogue a +3 disk to a variable somehow from BASIC? I'm looking at extending my Snapshot to Microdrive utility, so it s…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1)
    20 ... -k1+1)=CHR$ PEEK a: NEXT a:
    PRINT s$(TO a ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Turn UDG to Attrribute blocksI'm trying to enlarge my UDG's to 8 x 8 character blocks per pixel, but struggling, is there any subroutine/program for enlarging UDG's x 8?

    ... 7
    30 LET d = PEEK (USR "e" + i)
    40 ... (d / 2) d / 2 THEN PRINT AT i, 7 - j; PAPER ...
    na_th_an na_th_an May 2012 Development
  • Turn UDG to Attrribute blocksI'm trying to enlarge my UDG's to 8 x 8 character blocks per pixel, but struggling, is there any subroutine/program for enlarging UDG's x 8?

    ... just do:

    [CODE]PRINT AT 0,0;
    LET ... TO 7
    LET p = PEEK (u+b)
    LET h ... l = p-(h*16)
    PRINT b$(h+1) ; b$(l ...
    joefish joefish May 2012 Development
  • What if there was no memory or space limitation?What if there was no memory or space limitation? We've had topics about the limitations of the Speccy's hardware, topics where we discussed how good …

    ... window into the file to peek at only a portion at ... :
    60000:
    print_string:
    ;; print string at address hl
    print a string to screen. The ...
    Alcoholics Anonymous Alcoholics Anonymous May 2012 Sinclair Miscellaneous
  • Dimming the screen...Hi Folks, I was hoping someone on here could help me with a wee machine code routine. I have written the following example in BASIC: [CODE]100 REM…

    ... : FOR x=0 TO 31: PRINT AT y,x; PAPER RND ... *7;" ": NEXT x: NEXT y: PRINT #0;AT 0,0; BRIGHT ... AND PEEK a>64): NEXT a
    160 REM PRINT AT ... REM Dim Screen
    320 PRINT c$
    330 REM SLOW ... load at runtime. The [B]PRINT c$[/B] (line 320) takes ...
    Paddy Coleman Paddy Coleman May 2012 Development
  • 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…

    ... /> 40 PRINT n;" ";PEEK n;TAB 14;CHR$ (PEEK n AND PEEK n> ...
    BloodBaz BloodBaz May 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…

    Here's a little program to list the length (excluding the 4-byte header and the trailing ENTER) of each BASIC line in the selected range.
    [code]
    9990 DEF FN p(a)=256*PEEK ABS a+256*PEEK (ABS a+1)-255*PEEK (ABS a+(a
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... POKE P,ATTR (i2,i0): PRINT AT i2,i0;"\{f0} ";AT ...
    Paddy Coleman Paddy Coleman May 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... POKE P,ATTR (i2,i0): PRINT AT i2,i0;"\{f0} ";AT ...
    Paddy Coleman Paddy Coleman June 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... file address DF_CC after doing: "PRINT AT 0,0;CHR$ 8 ... 420, instead of "LET i6=PEEK k" I'd have "LET ...
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • dungeon crawlerHi. I'm toying with idea of making simple dungeon crawler in spectrum basic and i actually got first version working somehow. [IMG]http://watashi.ic.…

    ... FOR r=4 TO 18: PRINT AT r,8;"abcdefghijklmno": ... FOR r=3 TO 19: PRINT AT r,0;"********************************": NEXT ... :
    DIM b$(15): PRINT PAPER 5;AT 3,7 ... ,23;" ": NEXT r:
    PRINT PAPER 5;AT 19,7 ... c$(15*32): LET a=PEEK 23693:
    FOR c= ...
    Battle Bunny Battle Bunny July 2012 Sinclair Basic
  • What is the best way to detect CAPS LOCK?Hi Folks, Not sure what the correct behaviour is here as I do not have access to a real Spectrum. Under BASin, when you press CAPS LOCK on the PC k…

    ... />
    [CODE]100 PRINT AT 21,0;PEEK 23658,,
    110 PAUSE ... 0
    120 PRINT AT ... /> 130 LET a=PEEK 23560
    140 PRINT AT 0,0;a ...
    Paddy Coleman Paddy Coleman July 2012 Sinclair Basic
  • What is the best way to detect CAPS LOCK?Hi Folks, Not sure what the correct behaviour is here as I do not have access to a real Spectrum. Under BASin, when you press CAPS LOCK on the PC k…

    ... Coleman;638796]Mmm, but a PEEK on FLAGS2 returns 0 for ... RANDOMIZE USR 4317
    30 PRINT a
    40 GOTO 10 ... IF a>31 THEN PRINT CHR$ a;

    It ...
    Encarnado Encarnado July 2012 Sinclair Basic
<1…17181920212223…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