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.003s
<1…17181920212223…34>
  • numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…

    ... the start off the 16 chr BIN shows, with the expected ...
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • 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…

    ... DEF FN b$(d)=VAL$ ((CHR$ 19
    3+"d" AND ...
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…

    [code]
    1 DEF FN b$(d)=VAL$ ((CHR$ 19
    3+"d" AND d1))
    [/code]
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • 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…

    You could replace the 18 spaces with CHR$ 23+CHR$ 25+CHR$ 0 which reduces the length of m$ from 359 bytes to 104 bytes.
    Battle Bunny Battle Bunny June 2011 Sinclair Basic
  • 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…

    ... the 18 spaces with CHR$ 23+CHR$ 25+CHR$ 0 which reduces ... br /> LET m$=m$+CHR$ 22+CHR$ a+CHR$ 7+" ":
    NEXT ... br /> LET m$=m$+CHR$ 22+CHR$ a+CHR$ 7+CHR$ 6+" ":
    ... m$=m$+CHR$ 22+CHR$ a+CHR$ 7+CHR$ 6+CHR$ 23+CHR$ 25+CHR$ 0:< ...
    Paddy Coleman Paddy Coleman June 2011 Sinclair Basic
  • (part of) screen to UDGHere is a routine to copy a Y,X-position on screen to a UDG. 0<=y<=23 0<=x<=31 144<=udg<=165 (UDG "A" to UDG "U") [code] ; start code with ; PRINT …

    ... program to cut up each chr square of that screen to ...
    kgmcneil kgmcneil June 2011 Development
  • 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…

    ... in your string. The CHR$ 23+CHR$ 25+CHR$ 0 TAB control puts ... of the window, so the CHR$ 6 are not needed.
    Battle Bunny Battle Bunny June 2011 Sinclair Basic
  • 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…

    ... in your string. The CHR$ 23+CHR$ 25+CHR$ 0 TAB control puts ... of the window, so the CHR$ 6 are not needed.[/QUOTE ...
    Paddy Coleman Paddy Coleman June 2011 Sinclair Basic
  • (part of) screen to UDGHere is a routine to copy a Y,X-position on screen to a UDG. 0<=y<=23 0<=x<=31 144<=udg<=165 (UDG "A" to UDG "U") [code] ; start code with ; PRINT …

    ... program to cut up each chr square of that screen to ...
    Dr BEEP Dr BEEP June 2011 Development
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... )+("DP" AND z$(a,o)=CHR$ 10)+STR$ ((CODE z$(a ...
    Dr BEEP Dr BEEP July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... ))+("DP" AND z$(a,o)=CHR$ 10)+STR$ z(a)
    Battle Bunny Battle Bunny July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... ))+("DP" AND z$(a,o)=CHR$ 10)+STR$ z(a)
    CHR$ 10 by 14%!

    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... /> 120 IF a$(1,1)=CHR$ 65 THEN PRINT "Hello"
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... /> 120 IF a$(1,1)=CHR$ 65 THEN PRINT "Hello"

    1. CHR$ reads a number and then ...
    Dunny Dunny July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    Thus, storing that CHR$ (10) in a variable would come up handy.
    na_th_an na_th_an July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... =na_th_an;547777]Thus, storing that CHR$ (10) in a variable would ... /> 130 IF a$(1,1)=CHR$ 65 THEN PRINT "Hello"

    130 CHR$ IF takes 29385 Ts
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... ]But in this case,with CHR$ 10, you can not make ... printable character available, so for CHR$ 10 you should use line ... CODE
    4) Finally use CHR$

    Paddy
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    Alternatively, here's an example of using a recursive function to do the duplicate number check, avoiding any extra use of GO TO, FOR...NEXT or IF...THEN. Line 80 does the looping within itself via the FN call.

    [code]
    2 DEF FN a()=FN ...
    Battle Bunny Battle Bunny July 2011 Sinclair Basic
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... =32 TO 127: PRINT #4;CHR$ f;: NEXT f
    [/CODE ...
    Einar Saukas Einar Saukas July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... =32 TO 255: PRINT #4;CHR$ f;: NEXT f
    [/CODE ...
    Einar Saukas Einar Saukas July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... =32 TO 127: PRINT #4;CHR$ g;: NEXT g: NEXT f ...
    Einar Saukas Einar Saukas August 2011 Development
  • 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. …

    Hi Folks,

    Well I have almost finished my Model Railway Timetable program and thoughts are starting to move on to project #2. A requirement is likely to be a full screen input routine and to this end I have rewritten my XINPUT code from a few ...
    Paddy Coleman Paddy Coleman August 2011 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. …

    ... as the ROM still inserts chr$ 14 and five zeros after ...
    Geoff Geoff August 2011 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. …

    ... as the ROM still inserts chr$ 14 and five zeros after ...
    Einar Saukas Einar Saukas August 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
chr 1.3K 4.4K

Related Threads

  • ZX Spectrum CHR$ sets (fonts)I'm satisfied enough with my _ZX Spectrum CHR$ sets (fonts)_ web page and I published it at [url="http://mstancevic.tripod.com/SpectrumCHRs/ZX_Spectr…
  • The Great CHR$(27)It's not Christmas without the Great Escape on at least once.<br /> <br /> That is all.
  • unreadable CHR$ in Titan Quest, help, plstried demo and full version of titan quest,<br /> <br /> but both versions of the game have been making fun of me, I guess,<br /> there's just wrong …
  • .chr to .binSo here goes another stupid question. What's the best way to convert .chr files created with ZX-Paintbrush to binary or asm format? I know ZX-Blocked…
  • 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$ = …

Related Searches

  • chr
  • chr 22
  • chr 21
  • chr attributes
  • chr codes
  • coding chr
  • code chr
  • control code chr
  • chr color codes
  • chr asm
  • 64 chr basic
  • chr 12
  • poke big chr channel
  • poke chr 8 over 1
  • bin chr 196 a
  • zx spectrum chr
  • chr ink
  • chr controls
  • chr control
  • chr nathan

Copyright © 2024 World of Spectrum