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.029s
<1234567…34>
  • Making a mapI should learn Z80 assembly, but I don't have the time (really busy) and I feel like making a game. I've tried with Colt which gives me enough speed…

    ... read as...

    [code]
    9100 LET DIR=BASE ... MC as

    [code]
    org 50000


    ink =chr for ink
    paper =chr for paper
    bright ... =chr for bright
    22 =chr AT
    [/code]
    < ...
    Dr BEEP Dr BEEP March 2004 Development
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... at the top of your code.
    * If you are ... LET X=10
    5 INK 0: PAPER 7: CLS
    INK 2; CHR$(144): REM UDG A
    code being stored in 23560 (the ... ROM routines in a machine code program.

    * 23613/4 ...
    na_th_an na_th_an April 2005 Development
  • Using INPUT without clearing last two lines of screen?I'm trying to print to the 22nd row of the screen using the ol' print #0 trick. Unfortunately, I require user INPUT which seems to wipe out the botto…

    [QUOTE=Bob Stains;325796][code]
    PRINT #1;AT 1, ... ,6;b$; PAPER 7; INK 7
    [/code]

    The second ... if you poked in the code! [/QUOTE]

    Brilliant! Exactly ...

    2) Nevermind. A chr$ 8 at the end of ...
    Arjun Arjun January 2009 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?

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

    Paste it into ... invalid BCD results and the code tends to change these back ...
    Jimmy Jimmy January 2011 Games
  • 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]10 LET o$=CHR$(16)+CHR$(2)+CHR$(17)+CHR$(6)+"HELLO"+CHR$(16)+CHR$(1)+CHR ... $(17)+CHR$(4)+"WORLD"
    20 PRINT a$[/code]

    CHR ... $ 16 corresponds to INK
    CHR$ 17 corresponds ...
    na_th_an na_th_an February 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... br /> [code]
    10 BORDER 0: PAPER 0: INK 4: CLS ... 10: LET i$(r)=CHR$ (CODE i$(r)-48): NEXT ... * To minimise the INK changes line 10 sets INK to green as ... 1:1 relationship between INK colour and UDG: UDGs ... /> * This enables a UDG INK colour lookup table to be ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • Books that you just can't quit.Much as parts of the presentation,writing style infurates me, there is a book I just keep comming back to again and again. Its like the Yang to the …

    [code]
    1000 DIM R(55): ... /> 1020 BORDER 1: PAPER 7: INK 0
    1030 LET HSC ... long from row R collum CHR$
    1049 REM P is ... I$=CHR$ 18+CHR$ 1+"PRESS ENTER TO START GAME"+CHR$ 18+CHR$ 0 ... lower case.
    4020 IF CODE A$
    wibble wibble August 2013 Sinclair Basic
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... Spectrum BASIC keywords:

    [code]
    char *strings[] = {
    " ... SUB", "GO TO",
    "IF", "INK", "INPUT", "INVERSE", "LET", "LIST", "LLIST ... ", "ACS", "AND", "ASN", "ATN", "ATTR", "CHR$", "CODE", "COS", "EXP", "FN", "INKEY$", "INT ...
    Kweepa Kweepa January 2014 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... add instead.

    [code]
    char *strings[] = {
    "IF", "INK", "INPUT", "INVERSE", "LET", " ... "AND", "ASN", "ATN", "ATTR", "CHR$", "CODE", "COS", "EXP", "FN", "INKEY$", ... rsl;
    }
    [/code]

    Modified perfect ...
    Kweepa Kweepa January 2014 Development
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... the correct ASCII code for the digit.
    [code]
    12 INPUT ...
    Battle Bunny Battle Bunny March 2014 Development
  • Dock's ZX Maze gameI'm hoping to finish a simple maze game in ZX Spectrum BASIC this week, as part of the Ludumdare Retro challenge. I used to dabble in speccy basic on…

    ... commentary follows ...

    [code]
    35 LET j1= 0 ... AT 20,16; BRIGHT 1;CHR$ (CODE i$-11):
    LET ... $(r,k): LET z$=CHR$ 22+CHR$ r+CHR$ k:
    LET ... THEN
    GO SUB CODE y$*2-12
    84 ... r-1,k): PRINT z$;INK 5;x$: POKE 23729, ...
    Battle Bunny Battle Bunny June 2014 Sinclair Basic
  • Dock's ZX Maze gameI'm hoping to finish a simple maze game in ZX Spectrum BASIC this week, as part of the Ludumdare Retro challenge. I used to dabble in speccy basic on…

    ... commentary follows ...

    [code]
    35 LET j1= 0 ... AT 20,16; BRIGHT 1;CHR$ (CODE i$-11):
    LET ... $(r,k): LET z$=CHR$ 22+CHR$ r+CHR$ k:
    LET ... THEN
    GO SUB CODE y$*2-12
    84 ... r-1,k): PRINT z$;INK 5;x$: POKE 23729, ...
    davepierce07 davepierce07 June 2014 Sinclair Basic
  • The 20th comp.sys.sinclair Crap Games Competition thread!Hi all, [SIZE="7"][B][CENTER]ANNOUNCEMENT![/CENTER][/B][/SIZE] The comp.sys.sinclair Crap Games Competition 2015 is now well and truly OPEN! [url]…

    ... ASN AT ATN ATTR BIN CHR$ CODE COS EXP FN IN INKEY ... FOR FORMAT GO_SUB GO_TO IF INK INPUT INVERSE LET LINE LIST ...
    joefish joefish March 2015 Games
  • Better "Hello World"are their any more visually impressive Hello world loops i can do in basic other than the print-goto one.

    [code]
    1 LET a$="Hello World!!"
    2 PRINT INK 9; PAPER INT (RND*8); BRIGHT INT (RND*2);CHR$ CODE a$;: OUT 254,RND*32: POKE 23692,PI: LET a$=a$(2 TO ): GO TO 2-(a$="")
    [/code]
    GReW GReW May 2017 Sinclair Miscellaneous
  • Proportional-width fontsFor reasons that are still not quite clear to me (because I’ve always loved typography and design,) I never bothered to write a proportional-font rou…

    ... text color.

    [code]
    ;Proportional-width font drawing ... /> txt_clr equ %00111001 ;PAPER 7,INK 1

    call ... l,a ;load L with chr code
    add hl,hl ; ... /> add hl,bc ;bitmap (chr code*8+font addr - 256), load ...
    Ast_A_Moore Ast_A_Moore December 2018 Development
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... FN B(b$)=VAL(CHR$ 196+b$)
    [/code]

    [b ... ])
    [code]
    DEF FN C$(n)=CHR$ INT (n/256)+CHR$ (n ... ]posint16[/i])
    [code]
    DEF FN H$(n)=CHR$ (INT (n ... $)=CHR$ (CODE l$)+(32 AND CODE l$>64 AND CODE l$96 AND CODE ...
    chev chev November 2004 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…

    ... DATA line with the correct CHR$ code following and in the main ... ..."len",177,"uln",184...
    [code]
    9990 DATA "fn",168 ... =CODE t$+47: CLS :
    PRINT "Line:";l;" replace:";CHR$ u;" with:";CHR ... ): POKE b,p:
    PRINT CHR$ p;: GO TO 9995-(3 ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • Soundex routineIn an idle 5 minutes I wrote a short routine to calculate Soundex codes using the algorithm described here: [url]http://en.wikipedia.org/wiki/Sounde…

    ... all had the same Soundex code (ie. "tell me words which ... reference a dictionary.

    [code]
    10 REM letter encodings ...
    Battle Bunny Battle Bunny November 2014 Sinclair Basic
  • Peeking the contents on screen? How?You will have to forgive me for growing up on the C64, but I know I can peek the location of a character (1024 is top left from memory) and the peek …

    ... the peek will return the chr$ code of the character in the ...
    gazj82 gazj82 August 2015 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. …

    ... +f2, you're expecting an INK 2 code to be sent - so ... it sends that code to the ROM, which converts ... BASIC, as I couldn't code in z80 assembly back then ...
    Dunny Dunny April 2005 Sinclair Basic
  • Font centering problemA while back today, I started coding a simple Othello/Reversi game in BASIC, with the precious aid of BASin (great tool, hope it eventually becomes b…

    ... , y
    70 LET pos=CODE c$*8+chs
    80 ... 9
    230 LET c$=CHR$ (CODE "0"+n)
    240 LET ...
    NotFound NotFound October 2006 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... br />
    [CODE]
    PAPER 0: INK 7:
    [/CODE]

    with ... this:

    [CODE]

    [CODE]
    LET k=(z=0 ... replacing this:

    [CODE]
    LET b=(1-h ...
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... br />
    [CODE]
    PAPER 0: INK 7:
    [/CODE]

    with ... this:

    [CODE]

    [CODE]
    LET k=(z=0 ... replacing this:

    [CODE]
    LET b=(1-h ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... this:

    [CODE]
    IF 1-(a> ... br /> with this:

    [CODE]
    IF a=1 OR ... this:

    [CODE]
    (1+((w-1)*INT ... (RND*2)))
    [/CODE]

    with this ... :

    [CODE]
    (1+(w-1)*(RND
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... this yesterday, but got the code mixed up somewhere, so just ... positions replacing this:

    [CODE]
    LET o$(a)=(o ... positions replacing this:

    [CODE]
    IF 1-(a> ... positions replacing this:

    [CODE]
    (1+((w-1)*INT ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... /> [CODE]
    INK 4;"?"
    [/CODE]

    with this:

    [CODE]
    INK ... a;"?"
    [/CODE]

    It doesn ...
    Einar Saukas Einar Saukas August 2007 Development
<1234567…34>

Latest Posts

  • Celebrity deaths...
    mel the bell on 5:43PM
  • How we became brainwashed by social media
    dmsmith on 5:39PM
  • 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

HitBox

Word Docs Hits
ink 2.5K 5.8K
chr 1.3K 4.4K
code 41.6K 91.2K

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
  • code chr
  • control code chr
  • chr ink
  • chr code control
  • set ink in machine code

Copyright © 2024 World of Spectrum