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.018s
<1…17181920212223…34>
  • 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…

    ... ]"Quixo+ PvP"[/B]:

    [CODE]
    1 LET p=3 ... AT y*3-2,23;CHR$ (64+y)," ";y;AT 0 ... ,y*3;CHR$ (71+y);AT 21,y ... *3+1;CHR$ (78+y); PAPER 1; AT ... ):
    BEEP 1,9
    [/CODE]

    This time, the ...
    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…

    A quicksort implementation...
    [code] 1 DEF FN t()=(PEEK ... nelem: LET
    p$(n)=CHR$ (RND*25+65): NEXT n ... /> 000
    4040 RETURN
    [/code]

    Time spent depends ...
    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…

    ... ;481285]A quicksort implementation...
    [code] 1 DEF FN t()=(PEEK ... nelem: LET
    p$(n)=CHR$ (RND*25+65): NEXT n ... /> 000
    4040 RETURN
    [/code]

    Hi McLeod Ideafix ...
    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…

    ... /speed up the following code.

    [CODE]100 GO SUB 250 ...
    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…

    ... should look like this.
    [CODE]110 REM COMB SORT V2 ...
    ...[/CODE][/QUOTE]

    Hi James ... the updated program:

    [CODE]100 GO SUB 280
    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…

    ... , tried the following:

    [CODE]100 GO SUB 240
    LET a$(a)=CHR$ (65+RND*25):
    NEXT ... a:
    RETURN[/CODE]

    The above code gives an average ...
    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…

    ... the following program:

    [CODE]
    1000 GO TO 9000 ... n: LET p$(i)=
    CHR$ (RND*25+65): NEXT i ... time: ";t2-t1;" sec."
    [/CODE]

    The program above ...
    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…

    ... the following program:

    [CODE]
    1000 GO TO 9000 ... TO n: LET p$(i)=CHR$ (RND*25+65): NEXT i ... time: ";t2-t1;" sec."
    [/CODE]

    The program above ...
    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…

    ... by the following pseudo-code:

    [CODE]
    QUICKSORT(a,b ...
    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…

    ... implemented as follows:

    [CODE]
    1000 GO TO 9000 ... TO n: LET p$(i)=CHR$ (RND*25+65): NEXT i ... time: ";t2-t1;" sec."
    [/CODE]

    The implementation above ...
    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…

    ... looks like this:

    [CODE]100 GO SUB 230
    LET a$(a)=CHR$ (65+RND*25):
    NEXT ... ):
    NEXT a:
    RETURN [/CODE]

    Have I missed ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    ... than individual variables.

    [CODE]100 DIM i$(2,100 ... br /> 120 LET i$(1)=CHR$ LEN a$+a$
    ... br /> 140 LET i$(2)=CHR$ LEN a$+a$
    ... 1)=";i$(1,2 TO CODE i$(1,1)+1):< ... :
    LET i(2)=CODE i$(2,1)+1:
    LET i(3)=CODE i$(1,1)-i(2 ...
    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…

    ... [/COLOR][/B] seconds.

    [CODE]100 GO SUB 200
    LET a$(a)=CHR$ (65+RND*25):
    NEXT ... ):
    NEXT a:
    RETURN [/CODE]

    Changes made are ... element b$ array - watching the code execute in BASin shows that ...
    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…

    ... b$ array - watching the code execute in BASin shows that ... ] for comparison):

    [CODE]
    100 GO SUB 200 ... b:
    LET a$(a)=CHR$ (65+RND*25):
    ... /> NEXT a:
    RETURN
    [/CODE]

    However notice I ...
    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…

    ... are defined as:

    [CODE]230 RANDOMIZE 100:
    LET ... b:
    LET a$(a)=CHR$ (65+RND*25):
    NEXT ... Contents...":
    GO SUB 260[/CODE]

    This reduces the ...
    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…

    ... the variable definitions:

    [CODE]230 RANDOMIZE 100:
    LET ... b:
    LET a$(a)=CHR$ (65+RND*25):
    NEXT ... =0:
    LET n=b:[/CODE]

    Paddy
    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…

    ... shouldn't be random.
    [CODE] FOR a=1 TO b ... :
    LET a$(a)=CHR$ (b-a):[/CODE]

    Then you ... /> [CODE] FOR a=1 TO b:
    LET a$(a)=CHR$ (a ... ):
    [/CODE]

    This way ...
    JamesD JamesD October 2010 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 …

    ... a few improvements.

    [Code]100 REM *---------------------*
    110 REM ... 2:
    LET I(6)=CODE INKEY$:
    IF I(6 ...
    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. …

    ... />
    [CODE]100 FOR a=0 TO 31: PRINT CHR$ 8;: NEXT ... $
    120 INPUT ;: PRINT '"*";a$[/CODE]

    [Edit] Also tried ...
    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

    ... ). This is it:

    [CODE] 10 DATA 221,33,94 ... TO 50024:PRINT FLASH 1;CHR$ PEEK n;:NEXT n
    140 GOTO 30
    [/CODE]

    I then loaded ... -NEXT loop printing the CODE (and maybe even CHR$) of the BYTE ...
    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

    ... might be based on some code from a magazine.) I have ... 4E4: PRINT F;"..."; PEEK F, CHR$ PEEK F AND PEEK F ...
    Dr BEEP Dr BEEP November 2010 Sinclair Basic
  • LCD interfacingHas anybody interfaced [url=http://mdfs.net/Info/Comp/LCD]an LCD[/url] to a Spectrum? I'm toying with putting together an interface, a small 32x8 dis…

    ... unknown author:

    [CODE]; Some basic code for driving LCD alphanumeric ... byte
    OUT (WRDATA),A ; chr out to display
    INC ... HL ; point to next chr
    DJNZ WRITE2 ; loop until ...
    MSGEND:

    END[/CODE]
    roko roko November 2010 Hardware
  • 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?

    ... might prove useful!

    [CODE]5 BORDER 2: PAPER 2 ... ;95 THEN LET n$(i)=CHR$ (CODE n$(i)-32)
    ... TO 20: LET b=b+CODE n$(i): NEXT i< ... br /> 9110 DATA -1
    [/CODE]

    Paste it into ... invalid BCD results and the code tends to change these back ...
    Jimmy Jimmy January 2011 Games
  • Spanner seeks helpHello, and HNY, all. I am presently writing a game in BASIC. It's a bit - a lot - crap, but I'm enjoying it! Anyway, a couple of questions, if you …

    ... capitals like this:

    [code]
    10 INPUT A$ : REM ...
    Dr BEEP Dr BEEP January 2011 Sinclair Basic
<1…17181920212223…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Goodbye Z80
    i love the z80s on 6:28PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 6:04PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • 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
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
code 41.6K 91.2K
chr 1.3K 4.4K

Related Threads

  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it<br /> <br /> Note, for 48k spectrum using TASM<br /> <br /…
  • Saving BASIC code as CODE... can't start programHi guys!<br /> <br /> I'm trying to create an adventure game for the Speccy in BASIC, called The Legend Of The Red Dragon.<br /> <br /> I'm using the…
  • Converting Basic code into machine codeIm just interested to know if I can converter a game I've written in basic into Machine code, Is their a program that can do this??
  • LOAD "" CODE in machine code/store 128 bank dataHow do you LOAD "" CODE from machine code?<br /> <br /> I have written the following MC routine that fits into a REM statement in a basic program.<br…
  • Code Masters' adventures: where are they?Please help to find Dizzy and Seymour sequels. Why their distribution is denied ?
  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding.<br /> <br /> I think that there might be more of these routines out there (where-eve…
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code?<br /> <br /> ORG 60000<br /> LOAD 60000<br /> <br …
  • machine code basicsWondered if anyone can help me out. I have been playing round with some disassemblers (Zeus). And Machine code loaders.<br /> <br /> All I want to do…
  • Best way to codeHi,<br /> <br /> I've been using Zeus Assembler to code MC programs so far. Nothing fancy just the odd scroll left or animation stuff.<br /> <br /> W…

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • code 16384
  • mastering machine code on your zx spectrum by toni baker
  • mastering machine code on your zx spectrum by toni baker disassembler
  • mastering machine code on your zx spectrum by toni baker pdf
  • identify code 128k pentagon model
  • check code 128k pentagon model
  • load code hide name
  • load code hide name on screen
  • disintegrate code
  • machine code routines
  • zx spectrum games code club
  • random number code
  • control code chr
  • chr code control
  • ink chr code

Copyright © 2024 World of Spectrum