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
<1234567…34>
  • Artillery - projectile motion gameI started writing this around 25 years ago and abandoned it due to performance issues, and a lack of physics knowledge. Bandersnatch on Netflix fille…

    ... change effect using a single string variable per castle and embedding ... position and attribute data as CHR$ control codes (taking inspiration from IvanBasic's ...
    patters patters April 2019 Brand new software
  • how do i change the text and colour of the boot message and error messages?i kind of know how to do this with the boot message but shortening or lengthening the text and adding chr$ control codes (if this works) overwrites o…

    ... lengthening the text and adding chr$ control codes (if this works) overwrites or ...
    digital digital June 2019 Assembler
  • Drawing a "window"...Hi Folks, I want to display a blank window over an existing screen. It then draws a border around it but that is not the point of my question. Ini…

    ... br /> LET m$=m$+CHR$ 22+CHR$ a+CHR$ 7+" ":
    NEXT ... see the string contains the PAPER and AT control codes plus the ... a$=CHR$ 17+CHR$ 7+CHR$ 6+CHR$ 6+CHR$ 17+CHR$ 5+CHR$ 6+CHR$ 6 ... NEXT a:
    LET c$=CHR$ 19+CHR$ 1+c$
    140 ...
    Paddy Coleman Paddy Coleman June 2011 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…

    ... encoded as a single DATA string with a mixture of printable ... decoded version with non-readable control codes (CHR$ 16, CHR$ 17, etc.). I'll ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    ... to poke a string of characters including colour control codes to memory, I ... do it by poking a string such as A$?
    daveysludge daveysludge March 2012 Sinclair Basic
  • Protection against MERGEI remember using a routine to protect against using MERGE to break into a BASIC listing. It was along the lines of :- 1. Enter a random line e.g. 1 …

    ... .

    You can embed control codes in the program to tinker ... a REM line with a string of CHR$ 8 (cursor left) characters ... stored in two forms, the string of digits that you can ... , so you can poke the string of digits to read something ...
    gasman gasman April 2005 Sinclair Basic
  • 'Hello World' in ASM ?Can someone show how to make the classic 'Hello World' print with ASM code ? I cant figure at this moment how to insert and handle strings with the s…

    ... the token keywords, the printing control codes are those with a value ... CHR$21;CHR$n; will select OVER n
    PRINT CHR$22;CHR$y;CHR ... y,x
    PRINT CHR$23;CHR$y;CHR$x; will select TAB ... /> Similarly for AT, an embedded string such as:
    [code]text ...
    Jonathan Harston Jonathan Harston June 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.

    CHR$(16)+CHR$(2)+CHR$(17)+CHR$(6)+"HELLO"+CHR$(16)+CHR$(1)+CHR$(17)+CHR ... code]

    CHR$ 16 corresponds to INK
    CHR$ 20 corresponds to INVERSE
    CHR$ 21 corresponds ...
    na_th_an na_th_an February 2012 Sinclair Basic
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... Yes Yes Yes
    Control codes? No No ignored ignored ignored ... CHR$32-127
    [/code]

    Benchmark 1: string ... br /> [code] LD IX,string ; Use IX so don' ... br /> JR loop
    string: DEFM "the quick brown ...
    Jonathan Harston Jonathan Harston June 2012 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... 6 command
    defb 32 ;CHR$ 'space'[/code]
    The 6 ... would I set the other control codes 17-21 for the text ... change the length of the string?
    * ok I tried that ...
    Speccy_James Speccy_James February 2014 Development
  • 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. …

    ... 772388](b) Generating a string that draws the first two ... control codes, then the remaining characters.[/QUOTE]

    Remember that, although CHR ... $ 10 & CHR$ 11 may be described ... to look up the string and PRINT it. I ...
    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…

    ... string with embedded colour control codes before printing it. You can use CHR ... $ to generate the codes ... delete him with the same string.

    Or ... you could have a string with two identical characters ...
    joefish joefish June 2014 Sinclair Basic
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... font routine.
    No control codes, no basic extensions.
    ...
    push de ; save string address
    push bc ; ... de, hl ; de = font chr gfx
    push de ; ...
    Kiwi Kiwi September 2015 Development
  • 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…

    ... now and accommodates two additional control codes: paragraph indent and text color ... br />
    call prop_printer
    string
    defb $c,txt_clr
    chr code
    add hl,hl ... br /> add hl,bc ;bitmap (chr code*8+font addr - 256 ...
    Ast_A_Moore Ast_A_Moore December 2018 Development
  • Brain 8I am glad to present my new "experiment" in Sinclair Spectrum 48K BASIC. https://drive.google.com/file/d/17_wCFWaAl5diIVt3rPLTbKhxDmPmYmOs/view?us…

    ... /> . Is LET i$( TO )="string" semantically any different from LET ... )? Is it via inline CHR$ control characters? I had unsuccessfully ... landscape as a multidimensional string array as opposed to ... TAB and PAPER and INK control codes, these count as characters ...
    patters patters 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…

    ... Is LET i$( TO )="string" semantically any different from LET ... data)? Is it via inline CHR$ control characters? I had unsuccessfully ... landscape as a multidimensional string array as opposed to ... TAB and PAPER and INK control codes, these count as characters ...
    IvanBasic IvanBasic April 2019 Brand new software
  • 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 compressed ...
    Arda Arda September 2011 Announcements
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... /> jr z,foundat ; recognises some control codes here 22= print at, (followed ... hl
    ret
    foundat ; chr$22 can be used for ...
    jr nextchr
    foundcr ; chr$13 can be used for ...
    uglifruit uglifruit August 2012 Development
  • 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, …

    ... print string routine in which 0-31 are reserved for control codes, ... cp 32 ;0-31 are control codes, >31 printable ASCII
    ...print char in string
    jr print_string
    ... next byte can be another control code. So it means ...
    R-Tape R-Tape August 2015 Development
  • Game: the GEM machineHi all, I'm moving this game discussion from the Wanted: Game Ideas! thread to here, so we can concentrate on just the game. Any comments/suggestio…

    ... using a string with a generous set of embedded control codes.

    Alcoholics Anonymous Alcoholics Anonymous March 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…

    ... a string of arbritary length containing game data hidden in control codes. As ...
    Digital Prawn Digital Prawn October 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…

    ... a string of arbritary length containing game data hidden in control codes.[/QUOTE ... in an 'AT 0,0' control code just as you're ...
    gasman gasman October 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 at ... the filename, and the 'comma' control code at the end (to ... :

    SAVE CHR$(22)+CHR$(1)+CHR$(0)+"INDY"+CHR$(16)LINE 1 ...
    gasman gasman October 2007 Development
  • Russian Translations...As i have once again been reminded (by the "Homebrew games" thread), there are some funky looking Russian games that I can't play due to not understa…

    ... of the "PRINT AT" control codes in the game and also ... in the adjacent string, before the "PRINT AT" control codes and therefore ... introduced into the following string often get printed outside ... so introduces effectively an extra string into the game, causing ...
    Digital Prawn Digital Prawn June 2009 Games
  • Bak 2 SkoolI'm wondering where the alias "Bak 2 Skool" came from, considering the game is called "[URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0000362…

    ... use a similar trick with CHR$ and some backspaces, or perhaps ... do this using the Basic control codes. My memory is very, very ...
    XTM of TMG XTM of TMG August 2009 Games
  • Bak 2 SkoolI'm wondering where the alias "Bak 2 Skool" came from, considering the game is called "[URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0000362…

    ... do this using the Basic control codes. My memory is very, very ... as keyword. Even a TAB (chr 6) might work here.
    Dr BEEP Dr BEEP August 2009 Games
  • Printing in 64 columns, from Basic?Not strictly a Sinclair Basic question but... Is there any known machine code utility that allows something similar to PRINT AT that can be called fr…

    ... the text & control codes to be in a string variable or POKEd ...
    Battle Bunny Battle Bunny October 2009 Sinclair Miscellaneous
  • Printing in 64 columns, from Basic?Not strictly a Sinclair Basic question but... Is there any known machine code utility that allows something similar to PRINT AT that can be called fr…

    ... characters and control codes to be either built up in a string variable ...
    Battle Bunny Battle Bunny October 2009 Sinclair Miscellaneous
<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
control 9.5K 11.7K
codes 2.1K 2.5K
string 2.8K 5.1K

Related Threads

  • How do I use colour control codes in 128 basic?Just started using a toast rack in 128 basic and I am struggling to understand how to easily create coloured characters and graphics in a print state…
  • 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…
  • Help with CHR$ codes 0 to 5Hi,<br /> I'm looking a piece of code in a listing similar to:<br /> Let a$ = CHR$ 0<br /> Let b$ = CHR$ 1<br /> Let c$ = CHR$ 2<br /> Let d$ = …
  • Hook CodesIf you've dug into the Interface 1 this should be an easy question.<br /> I last had 'em circa 1990 while I can remember the things they did<br /> S…
  • Avalon codesIt's always the same: you find out about a game, you want to play it, so you load it up and... it's got a code entry at the start. Anyone have the co…
  • Elite joystick controlWhich versions have joystick control and what interfaces are used? The Keys/Joystick toggle key K does not seem to work with the Joystick Club 128k v…
  • Security codes for Operation Berlin and Operation Stallion kindly requestedHas anyone the security codes for these adventures? It is impossible to start playing without the codes, since the player is requested to input them …
  • Air Traffic Control - manualHi all !<br /> <br /> Anyone with manual for this 'obscure' Mikro-Gen's game ?<br /> <br /> If it's a large document, short explanation (in few lines…
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum.<br /> There was a command in speccy basic that would let you scroll a string …
  • USB control padI recently bought a cheapo USB pad, and I've found that it makes the likes of Cookie, Knight Lore, Sabre Wulf etc. much easier to control than if I w…

Related Searches

  • keyboard control joystick
  • key codes
  • key codes qaop
  • use a joystick to control esxdos
  • ld bc eostr string
  • reorder a string
  • chr codes
  • control code chr
  • chr color codes
  • chr control
  • control codes
  • control codes slicing
  • control chr
  • chr string
  • string control code
  • chr flash control
  • control codes flash
  • control codes string
  • flash string code control
  • chr code control

Copyright © 2024 World of Spectrum