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.102s
<1234567…34>
  • 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…

    ... BASIC; 26 numeric functions (A-Z) and 26 string ... maximum possible speed (on a standard Spectrum with no ... [code]
    DEF FN A(x,y)=(128 AND INT ... $)=VAL(CHR$ 196+b$)
    [/code]

    [b]BIN$[/b]([ ... /> DEF FN P(a)=PEEK a+256*PEEK (a+1)
    [/code ...
    chev chev November 2004 Sinclair Basic
  • Converting a decimal number to binary...Hi Folks, Been thinking about ways to convert a decimal number to 8 bit binary and came up with the following: [CODE]100 REM ----------------------…

    ... tokenise BIN when it's typed out in full. Timmy's CHR$(196 ... not so much a "feature" of BASin, rather a result of this ...
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • I cant get this listing to run!Ive read this through so many times my eyes are misting up! [url]ftp://ftp.worldofspectrum.org/pub/sinclair/magazines/DUC/Issue08/Pages/DUC0800039.jp…

    ... Battle Bunny;522982]So, a valid Spectrum command line that ... as "LET size=VAL (CHR$ 196+b$(1 TO 2))".[/QUOTE ... you can force enter a token by hitting enter ... SE Basic also features a detokenizer that will convert ... the token into the string 'BIN '.

    Try ...
    chev chev April 2011 Sinclair Basic
  • The curious case of the vanishing zerosRight, I'm back for more help guys This time I think I've figured out the code ok....but still it fails - well it works but only once... Basically …

    ... POKE USR "p"+0,VAL (chr(193) +"00011000")

    ... Wookiee;595850]Sorry to be a pain but what's this ... ? cos I also have a 1 to sort out[/QUOTE ... instead of BIN).

    Try:
    PRINT VAL (CHR$ 196+"10101010")
    BIN bug).
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • The curious case of the vanishing zerosRight, I'm back for more help guys This time I think I've figured out the code ok....but still it fails - well it works but only once... Basically …

    ... $ instead of BIN).

    Try:
    PRINT VAL (CHR$ 196+"10101010")
    CHR$ 196+"00011000")
    180 PRINT VAL (CHR$ 196+"00011000")
    190 PRINT VAL (CHR$ 196 ... /> 670 INK 1: PRINT AT a,s;"\::"
    680 REM the ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • display file addressing; screen slicingWhile working on this Compendium I'm updating or rewriting a lot of stuff. One thing I eventually came to appreciate was the simple & clever way in w…

    ... ;727445][code]LET e=VAL (CHR$ 196+"10000000"( TO 8-x+c ... />
    [code]LET e=VAL ("BIN 000000010000000"( TO 16-x+c ... used - file Plus128.TXT, section "A 128 Routine to Put Tokens ... be discarded which would save a good portion of the time ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • Why no PLOT, etc. on bottom two lines?I was pondering if there was any way to get PLOT, etc. to address the full screen from BASIC without having to write a few lines of assembler to bypa…

    ... of bounds but not by a lot.

    ... bit)="1": POKE loc,VAL (CHR$ 196+p$):
    RETURN
    ... 'b$()' is a 256*8 byte array of BIN strings from " ... the x,y coordinates into a display file address, and ... quicker just to call a tiny assembler routine to ...
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • Interesting VAL featureHi Folks, No doubt most people know this but it is new to me! The following code generates the answer of 10. [code]10 LET A$="X+X" 20 LET X…

    ... remember coming across this in a multiplication tables quiz program at ... , for example for a quick way to convert a string of binary ... to a decimal number.

    [code]
    PRINT VAL ("BIN " + b ...
    [code]
    PRINT VAL (CHR$ 196 + b$)[/code]
    GReW GReW September 2016 Sinclair Basic
  • Finished with my dice rolling programTook me all day but I'm rather proud of it, simple though it is. Its up at Dropbox if anyones interested https://www.dropbox.com/s/qdgtfc0zyy94hxm…

    ... /> to ("10*"+CHR$ 168+"b("+CHR$ 186+"(a/2))+")
    * change "BIN" in line ... 40
    to CHR$ 196 ... w$:
    LET u$=CHR$ (128+VAL ("BIN "+v$+w$)):
    ...
    Battle Bunny Battle Bunny July 2017 BASIC
  • How to improve my program using oversized numbersI'd like my dice program to print out the number four times bigger than normal if possible. Anyone know how to do this? Or I could write a sub rou…

    ... /> to ("10*"+CHR$ 168+"b("+CHR$ 186+"(a/2))+")
    * change "BIN" in line ... 40
    to CHR$ 196 ... w$:
    LET u$=CHR$ (128+VAL ("BIN "+v$+w$)):
    ...
    Battle Bunny Battle Bunny July 2017 BASIC
  • Program to convert .bin to other file format?I'm after a Windows program to convert one disk image file format to another. At the moment I'm have downloaded some Sega Saturn games and they are …

    I'm after a Windows program to convert one ... and they are in .bin format with a .cue file. But SSF ... />
    Any one know of a good, free program?

    HonoredShadow HonoredShadow April 2008 Chit chat
  • A few mods I've done over the years to my Spec 128k+Hello, Was a bit bored and decided to upload a few pics and sound files from my Spectrum 128k+ I've been tinkering around with over the past several …

    ... and decided to upload a few pics and sound ... />
    This is a custom Stainless steel keyboard backing ... throw it in the bin and get a switching voltage regulator. ... remains cold)
    A bit pricey but worth ... ]

    Just a few heatsinks I added over ...
    thomas3120 thomas3120 March 2013 Sinclair Miscellaneous
  • ZX-Wheelie BinAnyone know a good place I can print off some durable ZX based stickers I can put on my wheelie bin? I have a couple of designs in mind (yep trashma…

    Anyone know a good place I can print ... put on my wheelie bin? I have a couple of designs in ... one has to fight like a wild beast to keep the ...
    R-Tape R-Tape May 2016 Sinclair Miscellaneous
  • 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…

    ... on the screen then use a different color than the controlcharacter ... 20,20; INK 2; CHR$(144): REM UDG A
    10 IF ... =X+(XCHR$ 164 THEN LET A$=""

    Incidentally, you should ... . Alternatively, POKE 23608,255 gives a very long buzz which immobilises ...
    na_th_an na_th_an April 2005 Development
  • ONELINER : Finger TwisterFINGER TWISTER Do you all know TWISTER, that crazy game where you had to place your left foot on yellow, your right hand on green etc. etc. Well, n…

    ... been caught out by the BIN - any text-to-BASIC tokenizer ... b$(y,1)="BIN "
    to
    LET b$(y,1)=CHR$ 196
    gasman gasman May 2007 Games
  • BIN shorter than NOT PI?Some time ago I checked many loaders and want to ask why coders are using BIN and not NOT PI? NOT PI is only 2 Bytes, BIN would be better if it would…

    ... the conversion as a six-byte number token (CHR$ 14, followed ... BASIC, [B]BIN[/B] is a horrible instruction.
    A command like:
    [B]POKE USR "a", BIN 10101010[/B]
    is exactly ... />
    That [B]BIN 10101010[/B] will have a six-byte number ...
    ajmoss ajmoss June 2009 Sinclair Basic
  • Converting a decimal number to binary...Hi Folks, Been thinking about ways to convert a decimal number to 8 bit binary and came up with the following: [CODE]100 REM ----------------------…

    Here's a longer example for B(AS)IN users:
    [code]
    10 LET b$="010010"
    20 LET c$=CHR$ (196)+b$
    30 PRINT c$
    40 LET num=VAL c$
    50 PRINT num
    [/code]
    Timmy Timmy February 2011 Sinclair Basic
  • Converting a decimal number to binary...Hi Folks, Been thinking about ways to convert a decimal number to 8 bit binary and came up with the following: [CODE]100 REM ----------------------…

    ... tokenise BIN when it's typed out in full. Timmy's CHR$(196 ...
    gasman gasman February 2011 Sinclair Basic
  • Converting a decimal number to binary...Hi Folks, Been thinking about ways to convert a decimal number to 8 bit binary and came up with the following: [CODE]100 REM ----------------------…

    [QUOTE=Timmy;512632]Here's a longer example for B(AS) ... $="010010"
    20 LET c$=CHR$ (196)+b$
    30 PRINT c ... /> [CODE]...
    LET num=VAL (CHR$ 196+b$)
    ...[/CODE]

    a treat. Also it converts the ...
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • I cant get this listing to run!Ive read this through so many times my eyes are misting up! [url]ftp://ftp.worldofspectrum.org/pub/sinclair/magazines/DUC/Issue08/Pages/DUC0800039.jp…

    So, a valid Spectrum command line that can't be entered in 128k BASIC. Yet another reason for me to dislike the 128k BASIC editor. It would have to be entered as "LET size=VAL (CHR$ 196+b$(1 TO 2))".
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • I cant get this listing to run!Ive read this through so many times my eyes are misting up! [url]ftp://ftp.worldofspectrum.org/pub/sinclair/magazines/DUC/Issue08/Pages/DUC0800039.jp…

    [QUOTE=Battle Bunny;522982]So, a valid Spectrum command line that ... entered as "LET size=VAL (CHR$ 196+b$(1 TO 2))".[/QUOTE ...
    Dunny Dunny April 2011 Sinclair Basic
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 5:39PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Luny on 5:14PM
  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

HitBox

Word Docs Hits
bin 3.7K 6.1K
chr 1.3K 4.4K
196 143 251
a 589.5K 1.7M

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
  • How to separate a character from a number in a string?Hi <br /> I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say…
  • A TZX, a MIA and a previously unknown title from QLSThe Spanish website [url="http://trastero.speccy.org/"]El Trastero del Spectrum[/url] has a TZX of [url="http://www.worldofspectrum.org/infoseekid.cg…

Related Searches

  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • create a batch file screen
  • change a letter
  • bin to turbo
  • is there a system test for the spectrum
  • is there a system test tape for the spectrum
  • how to do a tzx file
  • how to create a tzx file
  • how to make a tzx file
  • composite screen goes yellow after a while
  • screen goes yellow after a while
  • validate input is a number
  • not a number
  • if input is not a number
  • finding a character on screen
  • otherworld is the only show i remember about a family
  • lose a letter
  • copy a file to dsk image

Copyright © 2024 World of Spectrum