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.034s
<1234567…34>
  • Saving a file and removing the title (Program:)I remember when saving a program how I could construct a string such as: 10 let a$=chr$ 8+ chr$ 8+"name" 20 save a$ In order to remove the "Program…

    ... , the 7 characters following CHR$ 22 + CHR$ 1 + CHR$ 0 are not enough ... the filename with a 'comma' control code (CHR$ 6), which will print space ...
    gasman gasman April 2013 Sinclair Basic
  • Saving a file and removing the title (Program:)I remember when saving a program how I could construct a string such as: 10 let a$=chr$ 8+ chr$ 8+"name" 20 save a$ In order to remove the "Program…

    ... the filename with a 'comma' control code (CHR$ 6), which will print space ... did it - it was CHR$ 22 + CHR$ 1 + CHR$ 0 + CHR$ 32 (space) + filename ... /> CHR$ 22 + CHR$ 1 + CHR$ 0 + CHR$ 18 + CHR$ 1 + CHR$ 219 + CHR$ 239 + CHR$ 8 + CHR$ 69 + CHR$ 82
    leespoons leespoons April 2013 Sinclair Basic
  • BOB the Screen BuilderHere's my first attempt to use that tokenising idea from "more on storing mazes" in a screen designer - "[url=http://www.users.globalnet.co.uk/~jg27p…

    ... ; ASM program listings. The machine code routines & workspace are located ... intended game program. BOB includes code which can be used in ... version with non-readable control codes (CHR$ 16, CHR$ 17, etc.). I'll ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Andromeda Inc.Since there was a thread in the games section about Tarantula, I made a search and found the game [URL="http://www.worldofspectrum.org/infoseekid.cgi…

    ... /> [code]
    DEF FN P$(Y)=CHR$ 0+CHR$ 17+CHR$ 1+CHR$ 16+ CHR 7 ... /> [code]
    DEF FN P$(Y)=CHR$ 19+CHR$ 0+CHR$ 17+CHR$ 1+CHR$ 16+ CHR ... sense alone without its previous control code, and produces ugly ? signs before ...
    Metalbrain Metalbrain January 2013 Infoseek database
  • Code structureHi all, I'd be interested in opinions on the neatest way to do this. I've got a print string routine in which 0-31 are reserved for control codes, …

    ... 0-31 are reserved for control codes, stop, newline, change colour ... /> cp 32 ;0-31 are control codes, >31 printable ASCII ... next byte can be another control code. So it means lots of ...
    R-Tape R-Tape August 2015 Development
  • How do you use CHR$ properly in a string ?So I trawled through the manual and found the bit on the character set. It says CHR$ 17 gives you paper control and CHR$ 16 gives you ink. But how do…

    ... set. It says CHR$ 17 gives you paper control and CHR$ 16 gives ... /> I tried
    a$=CHR$ 17+CHR$ 6 + CHR$ 16 + CHR$ 4
    but ...
    ivanb303 ivanb303 May 2017 BASIC
  • Can't Get My Simple Code To RunHello again, I'm trying to run the following simple code: [code] org 32768 main ld b, 21 ; x coordinate is …

    ... run the following simple code:
    [code]
    org 32768 ... /> ld a,22 ; ASCII control code for AT.
    rst 16 ... /> eostring equ $
    [/code]
    I'm using the ... want to test my code so any assistance in ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • why am i getting b integer out of range in this code?ive tried running this in spin but thats what i get [code]main org 40000; ; We want a black screen. ld a,71 ; white ink (7) on black paper (0…

    ... i get

    [code]main
    org 40000;
    mushlp ld a,22 ; control code for AT character.
    rst ... basexy ld a,22 ; AT code.
    rst 16
    ld ... /> ld a,144 ; ASCII code for User Defined Graphic 'A ... ,60,60,60 ; mushroom.[/code]
    digital digital June 2020 Assembler
  • Writing for MultifaceI was just wondering, is it possible to write a BASIC program, compile it and use the Multiface to run it? I'd like to write a small util to edit te…

    ... about ROM routines, and machine code in general, hence wanting to ... compile the basic.

    [code]

    1 POKE 23658 ...
    mulder mulder November 2005 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…

    ... number may be preceeded by CHR$ 14, so that would account ... . There must be some other control code or similar accounting for the ...
    Digital Prawn Digital Prawn September 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…

    ... number may be preceeded by CHR$ 14, so that would account ... ]There must be some other control code or similar accounting for the ...
    Einar Saukas Einar Saukas September 2007 Development
  • Loading MessagesHi, I've dug out some more unfinished stuff and plan to make up some loaders for it before I submit it to the archive.. Is it possible to create a …

    ... trick is to embed the control codes for AT 1,0 ... the filename, and the 'comma' control code at the end (to obliterate ... :

    SAVE CHR$(22)+CHR$(1)+CHR$(0)+"INDY"+CHR$(16)LINE 1 ...
    gasman gasman October 2007 Development
  • Getting started with asm Speccy codingSomeone on another forum I read has asked for good Speccy coding resources. I thought it would be great to link him to a simple tutorial about how to…

    ... tried and get only rubish Chr$
    so should i ... something like:

    [CODE]
    LD A, 2 ; Select ... br /> LD A, 22 ; AT control code
    RST 16 ; Call the ... 16 ; Call the print routine[/CODE]

    If you ...
    Matt_B Matt_B May 2009 Development
  • border graphics / text tricks ?just curious if it was possible.. I mean in basic, when you scroll a program you have "scroll ?" in the lower border? is there trickery that you can…

    ... example
    [CODE]
    let a$=chr$ 16+chr$ 2 + "RED ... /> [/code]
    or
    [code]
    let a$=chr$ 22+chr$ 15 + chr$ 12 ... + "AT CHAR":save a$
    [/code]< ... the second example uses AT control code to place text at specified ...
    Fikee Fikee December 2009 Development
  • Print text somewhere elseHi guys How do i make text come up somewhere else. For example, instead of this FFFFF GGGG I want this FFFFF GGGGG

    (yup, he has to read the manual as dr.kendal says.)

    and if he is so lazy, he can use PRINT ' ' ' ' ' to insert a line, or use PRINT AT Y,X;"... or he can use corresponding control code with CHR$.
    Arda Arda February 2010 Sinclair Basic
  • 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 …

    ... />
    Unless you add colour control codes to your string, yes ... /> [code]10 LET o$=CHR$(16)+CHR$(2)+CHR$(17)+CHR$(6)+"HELLO"+CHR$(16)+CHR$(1)+CHR ... $(17)+CHR$(4 ...
    na_th_an na_th_an February 2012 Sinclair Basic
  • Printing textThis is probably quite a basic question, or there might be something obvious I'm missing. I'm looking for an economical way of printing formatted te…

    ... line, use this as a control code and not as a hard ... printing routing by checking on chr 13 before (or after is ... also allowed) on chr 13. If so then set ... first column you want by chr 22, row, column and keep ... . This will reduce all chr 22,r,c to just ...
    Dr BEEP Dr BEEP April 2013 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…

    ... 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
  • Brain 8I am glad to present my new "experiment" in Sinclair Spectrum 48K BASIC. https://drive.google.com/file/d/17_wCFWaAl5diIVt3rPLTbKhxDmPmYmOs/view?us…

    I'll admit the control codes are a bit ... to adding cursor and colour control codes into strings then ... you can just use CHR$(0) to CHR$(31) if you ... back-screen, so then the control code ')' copies the back screen ... codes. I also have control codes to skip over a ...
    joefish joefish April 2019 Brand new software
  • Brain 8I am glad to present my new "experiment" in Sinclair Spectrum 48K BASIC. https://drive.google.com/file/d/17_wCFWaAl5diIVt3rPLTbKhxDmPmYmOs/view?us…

    ... as there are 32 non-control chars per line. I'll ... ]

    You can code CHR$22+CHR$ row+CHR$ 0+"blank spaces"+"colored ... CHR$ 17+CHR$ ground color+CHR$ 23+CHR$ tab+CHR$ 0+CHR$ 17+CHR$ sky color+CHR$ 23+CHR ...
    IvanBasic IvanBasic April 2019 Brand new software
  • A tidy loader for minigamesThe minigame competition doesn't permit the use of separate loaders like [code]10 LOAD "": RAND USR 32768[/code] The loader must be included in the b…

    ... better loader:
    [code]2328 PRINT USR a[/code]

    code, and a numeric variable ... PEEK 23635 + 256 * PEEK 23636[/code]

    The program ... others:

    [code]Chr$ Token Asm Ouch 1 2 ...
    ajmoss ajmoss June 2010 Development
  • Kiwi OS for z80 computerHi everyone, Nearly made my z80 computer with 2K ROM 32K RAM. It has an OS im still writing called Kiwi (apple, blackberry, you get the idea ;D) he…

    ... A, $A0 ;LOAD A WITH CONTROL CODE 1010
    SRL B ;ROTATE ... /> CALL WRITE_BYTE ;WRITE THE CONTROL BYTE TO THE SERIAL DEVICE ... /> CALL WRITE_BYTE ;WRITE THE CONTROL BYTE TO THE SERIAL DEVICE ...
    [/CODE]

    Port 1 is the control data to ...
    Robin Robin August 2011 Announcements
  • trying to read keyboardI have the speccy in interrupt mode 1 I used 'IM1' in assembly language then Im printing the contents of memoryu area 23560 to the screen: [quote] l…

    ... />
    ld a,#22 ; ASCII control code for AT.
    rst #16 ...
    slenkar slenkar August 2013 Development
  • z80 assembly helpEver since I was a child I wanted to program my zx81 then my zx spectrum + 2. However, it was such a mystical beast and I only ever used BASIC not kn…

    ... I understand exactly what the code is doing.

    code is as follows
    ... /> ld a,32 ; ASCII code for space.
    rst 16 ... setxy ld a,22 ; ASCII control code for AT.
    rst 16 ...
    antonyjones101 antonyjones101 September 2015 Development
  • CAPS-SHIFT KeyCodeIs there a standard Keycode for CAPS-SHIFT Key ? Looking at the ROM documentation in the Main key table KEYTABLE_A, there is no Entry for CAPS_SHI…

    ... ever be assigned a key code.
    [code]035A BIT 3,(IY ... then return with the 'main code'.[/code]

    I also checked ... /> SYMBOL-SHIFT is mapped to control code 14 = 0x0E, in [b]KEYTABLE_A ...
    RMartins RMartins October 2016 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
control 9.5K 11.7K
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…
  • 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