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.030s
<1234567…34>
  • 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 running ... AT 20,20; 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
  • 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): ... 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
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ... down and left two with control codes, then the remaining characters ... />
    Remember that, although CHR$ 10 & CHR$ 11 may be described ... just print a '?'; and although CHR$ 13 does go down a ... print controls has to use CHR$ & CODE as well as doing ...
    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…

    ... limitations in my own code, so I'm going ... 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 ...
    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…

    ... exhaustive commentary follows ...

    [code]
    35 LET j1= 0 ... AT 20,16; BRIGHT 1;CHR$ (CODE i$-11):
    LET c ... $(r,k): LET z$=CHR$ 22+CHR$ r+CHR$ k:
    LET sgo ... ;="1" THEN
    GO SUB CODE y$*2-12
    84 ...
    davepierce07 davepierce07 June 2014 Sinclair Basic
  • 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…

    ... additional control codes: paragraph indent and text color.

    [code]< ... ;is it a printable character (code ≥ 0x20)?
    jp nc ... 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
  • New Tool: CheqEdit[b]CheqEdit[/b] it's a simple and small program that helps you to draw 64x48 graphics on screen in GRAPHICS MODE. Program can output as text in CHR$ …

    ... can output as text in CHR$ format, control codes format, a special ...
    Arda Arda September 2011 Announcements
  • 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
  • Hardware description - DivIDE interface[B][U]DIVIDE interface / DivIDE 2k11[/U][/B] [B][U]The main description[/U][/B] DIVIDE is IDE interface with own external memory. Thanks to very goo…

    ... - write only[/B]
    [CODE]D0-D1 = select divide ram ... /> D7 = conmem mode[/CODE]

    Control port function:

    [CODE][U]ADRESS READ WRITE[/U ... 24-27 LBA 24-27[/CODE]

    Adressation ...
    velesoft velesoft August 2013 Hardware
  • 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
  • SkoolKit'ing errorsI'm in trouble with SkoolKit 7.2 Did so far [code]sna2ctl.py %GAME%.z80 > %GAME%.ctl[/code] control file looks fine [code] @ 16384 start …

    ... %.z80 > %GAME%.ctl[/code]

    control file looks fine

    [code]
    @ 16384 start
    18578 JR 18607 ;
    [/code]

    [code]skool2asm.py %GAME%.skool ...
    Bedazzle Bedazzle August 2019 Assembler
  • 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
  • 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…

    ... , my first version.

    [code]
    1 DEF FN a ... "),3:
    LET c$(x)=CHR$ (CODE c$(x)-40):
    LET ...
    Dr BEEP Dr BEEP March 2008 Development
  • 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…

    [code]
    1 DEF FN a(r,n)=r-INT (r/n)*n:
    READ c$,m,n,v,p:
    LET x=RND*36+10:
    POKE n*(c$(x)>"O"),3:
    LET c$(x)=CHR$ (CODE c$(x)-40):
    LET c=FN a(3+PEEK 23673,256):
    CLS :
    LET x=x+n*(c$(p)
    Dr BEEP Dr BEEP March 2008 Development
  • Computer SpacegamesBook Title: [B][URL="http://www.worldofspectrum.org/infoseekid.cgi?id=2000089"]Computer Spacegames[/URL][/B] Authors: [B]Daniel Isaaman & Jenny Tyler…

    [CODE]
    10 cls
    20 ... "
    220 stop
    [/CODE]
    [CODE]
    10 print "death valley ...
    c1541 c1541 March 2008 MIA/STP/SDP
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    Arjun, the upper$ and lower$ functions only return the first letter of the string capitalized. Something like this will do the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND CODE s$
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND ...
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • 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…

    [QUOTE=aowen;56596]...

    [b]LOWER$[/b]([i]string1[/i])
    [code]
    DEF FN L$(l$)=CHR$ (CODE l$)+(32 AND CODE l$>64 AND CODE l$96 AND CODE u$64 AND CODE l$96 AND CODE u$
    jp jp March 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?

    ... 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
  • 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 ...
    Paddy Coleman Paddy Coleman January 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…

    ... /> =(CHR$ (CODE a$+64) AND a$"-")+(CHR$ (65+o) AND a$="-")+"$"
    +CHR$ 14+CHR ... $ 0+CHR$ FN l(a)+CHR ... $ FN h(a)+CHR$ FN ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Print TextHow do i print text on the bottom left row(memory location in attribute 23295) of the screen in assembly? I understand the parts better on paper and …

    ... colours you wish.

    [code]
    ; CONTROL CHARACTERS
    ;
    ; $16 ...
    ATTBYT DEFB 0
    [/code]
    rich_chandler rich_chandler June 2011 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…

    ... wherever (UDG) is pointing.
    [code]
    org 23296
    UDG256 ... nz,UDGLOOP
    ret
    [/code]
    Normally PRINT_OUT deducts 144 ... routine to be the correct CHR$ code for printing.
    Battle Bunny Battle Bunny March 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 …

    ... and UDGs.
    [code]
    75 IF a$CHR$ 15 AND PEEK ... g(FN g(FN g(CODE a$,32,97),8,65 ... ;=1 AND a=b)
    [/code]
    The key codes for ... sequential list. The "LET a$=CHR$... line" maps a parallel sequence ...
    Battle Bunny Battle Bunny August 2012 Sinclair Basic
<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
chr 1.3K 4.4K
code 41.6K 91.2K
control 9.5K 11.7K

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…
  • IF and control flow in machine codeHi everyone,<br /> <br /> Basic has a nice control flow like if statements.<br /> How can these be done in machine code since i cant find anything<br…
  • 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…

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
  • keyboard control joystick
  • mastering machine code on your zx spectrum by toni baker
  • mastering machine code on your zx spectrum by toni baker disassembler
  • code chr
  • control code
  • chr control
  • control chr
  • string control code
  • chr flash control
  • chr control codes string
  • flash string code control
  • chr code control
  • paper control machine code
  • ink chr code

Copyright © 2024 World of Spectrum