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.019s
<1…18192021222324…34>
  • 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
  • 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 ----------------------…

    ... B(AS)IN users:
    [code]
    10 LET b$="010010 ... "
    20 LET c$=CHR$ (196)+b$
    30 PRINT ... $
    50 PRINT num
    [/code][/QUOTE]

    Thanks Timmy ... />
    [CODE]...
    LET num=VAL (CHR$ 196+b$)
    ...[/CODE]

    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    Nice piece of code to have a look in BASIC

    [code]
    10 FOR F = 23755 TO 4E4
    20 PRINT F;"..."; PEEK F, CHR$ PEEK F AND PEEK F>31
    30 NEXT F
    [/code]

    You will see the markers.
    Dr BEEP Dr BEEP February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    Just saved another 238 bytes by changing...

    [CODE]RANDOMIZE USR 64564[/CODE]
    to...

    [CODE]LET r$=CHR$ 192+"64564"
    ...
    RANDOMIZE VAL r$
    ...[/CODE]

    Great stuff chaps.

    Paddy
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... CODE]RANDOMIZE USR 64564[/CODE]
    to...

    [CODE]LET r$=CHR ... $ 192+"64564"
    ...
    RANDOMIZE VAL r$
    ...[/CODE ... ...
    RANDOMIZE VAL r$[/code]

    Assuming ... something like:
    [code]9999 MERGE "part2": ...
    mcleod_ideafix mcleod_ideafix February 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... remove the REM statements.
    [code]
    10 CLEAR
    ... LET n$(o,n,p)=CHR$ a
    9908 NEXT ... LET n$(o,n,1)=CHR$ 0
    9915 LET ... n$(o,n,2)=CHR$ a
    9916 NEXT ... A)
    9931 SOUND Ac,CODE n$(o,n,1);Af ... ,CODE n$(o,n,2): ...
    chev chev April 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... .asm font.tap

    [code] 10 POKE 23607,248: DIR ... TO 255
    30 PRINT CHR$ x;
    40 NEXT x ... /> 1000 CLEAR 63743: LOAD ""CODE : RUN
    [/code][code]; IBM PC font
    [/code]
    chev chev April 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... includes character masking.
    [code] 10 BORDER 7: FORMAT 56 ... 255
    40 PRINT #4;CHR$ i;
    50 NEXT ... 64999: LOAD "" CODE : RUN
    [/code]

    [code]; Based on Proportional ... /> ld a, (atflg) ; code 22 - the code for AT.
    cp ...
    chev chev April 2011 Sinclair Basic
  • SpecBAS 0.638 available now - NEW STUFF!Actually, there's nothing new in the interpreter - but there [i]is[/i] the beginnings of a new editor. Go get it from: [url]https://sites.google.co…

    ... ;PAPER 10;CHR$ 1+CHR$ 255;INK 12;PAPER 14;CHR$ 1+CHR$ 255 ... ;INK 13;PAPER 12;CHR$ 1+CHR$ 255 ... ;INK 0;PAPER 13;CHR$ 1+CHR$ 255 ... ;PAPER 15;CHR$ 1+CHR$ 250
    110 END PROC
    [/code]
    Dunny Dunny April 2011 Sinclair Miscellaneous
  • SpecBAS 0.638 available now - NEW STUFF!Actually, there's nothing new in the interpreter - but there [i]is[/i] the beginnings of a new editor. Go get it from: [url]https://sites.google.co…

    ... ;PAPER 10;CHR$ 1+CHR$ 255;INK 12;PAPER 14;CHR$ 1+CHR$ 255 ... ;INK 13;PAPER 12;CHR$ 1+CHR$ 255 ... ;INK 0;PAPER 13;CHR$ 1+CHR$ 255 ... +CHR$ 250:
    ENDIF: WINDOW c
    110 END PROC
    [/code ...
    Dunny Dunny April 2011 Sinclair Miscellaneous
  • 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…

    ... 100 LET TabDrv1=CODE INKEY$#4+(256*CODE INKEY$#4)
    120 PRINT CODE INKEY$#4;" There must ... br /> 140 PRINT #4; CHR$14;
    150 CLOSE # ... fact a channel, called 'CODE ', keyword!)
    Line ... ';' to prevent a following CHR$13.
    Line 150: ...
    roko roko April 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
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... a DATA array.
    [code] 10 RESTORE 200
    ... LET n$(o,n,p)=CHR$ a
    50 NEXT ... LET n$(o,n,1)=CHR$ 0
    80 ... LET n$(o,n,2)=CHR$ a
    90 ... with the program:
    [code] 20 CLEAR: LOAD "note ... table" DATA n$()[/code]
    To select the ...
    chev chev April 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…

    ... done with BASIC.

    [code]
    2 DEF FN p ... ,l,m,o)
    =CHR$ (65+o+((CODE a$-1-o) AND ... a$"-"))+f$
    +CHR$ (a-256*b)+CHR ... $ b+CHR$ (l-256*m)+CHR$ m
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... a side panel.

    [code] 10 BORDER 0: PALETTE 64 ... 8; FLASH 8; BRIGHT 8;CHR$ 144
    320 PAUSE 5 ... ;" "
    350 GO TO 240[/code]
    chev chev April 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... the manual you could also code RESTORE USR to run a ... machine code routine. Sounds like a useful ... additional memory overhead. BTW, r$ = CHR$ 192+"64564".

    [B ...
    Paddy Coleman Paddy Coleman May 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…

    [QUOTE=Crisis;541408][code]
    5 CLEAR 26000
    ... $(a,15): PRINT a$
    [/code]the routine seems to work ... the start off the 16 chr BIN shows, with the expected ... . This is lacking in your code.
    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…

    ... />
    [B]BIN$[/B]
    [code]
    1 def fn b ... $ (("str$ d" and d1))
    [/code]
    See
    [URL]http ... />
    [code]
    1 DEF FN b$(d)=VAL$ ((CHR$ 19
    3+"d" AND d1))
    [/code]
    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…

    ... I have:

    [CODE]10 BORDER 1:
    PAPER ... 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:
    PAUSE 0:
    CLS [/CODE]

    The first ...
    Paddy Coleman Paddy Coleman June 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…

    ... at bottle necks in my code using BASin's Profiler and ... slow.

    [CODE]100 LET h=INT (CODE z$(a,4 ... " AND z$(a,o)=CHR$ 10)+STR$ ((CODE z$(a,4)-h ... *16)*65536+CODE z$(a,6)*256+CODE z$(a,5 ... )))[/CODE]

    Does anyone ...
    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…

    ... " AND CODE z$(a,4))+("DP" AND z$(a,o)=CHR$ 10 ...
    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…

    ... " AND CODE z$(a,4))+("DP" AND z$(a,o)=CHR$ 10 ... I have found is that CODE z$(a,o)=10 executes ... faster than z$(a,o)=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…

    ... searching method, so enough code to stare blind at ... />
    As for using CODE, the following program yields:

    [CODE]100 DIM a$(1,1 ... 1)=CHR$ 65 THEN PRINT "Hello"
    130 IF CODE a ... literal but failing that use CODE.

    Hope ...
    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…

    ... br /> As for using CODE, the following program yields:

    [CODE]100 DIM a$(1,1 ... 1)=CHR$ 65 THEN PRINT "Hello"
    130 IF CODE a ... 1)="A" THEN PRINT "Hello"[/CODE]

    The ... strings.
    2. CODE reads a single letter and ...
    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…

    ... ;547777]Thus, storing that CHR$ (10) in a variable ... .[/QUOTE]

    [CODE]100 DIM a$(1,1 ... 1)=CHR$ 65 THEN PRINT "Hello"
    140 IF CODE ... THEN PRINT "Hello"[/CODE]

    130 CHR$ IF takes 29385 ... Ts
    140 CODE IF takes ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
<1…18192021222324…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
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…
  • 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…
  • Best way to codeHi,<br /> <br /> I've been using Zeus Assembler to code MC programs so far. Nothing fancy just the odd scroll left or animation stuff.<br /> <br /> W…

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
  • mastering machine code on your zx spectrum by toni baker
  • mastering machine code on your zx spectrum by toni baker disassembler
  • mastering machine code on your zx spectrum by toni baker pdf
  • identify code 128k pentagon model
  • check code 128k pentagon model
  • load code hide name
  • load code hide name on screen
  • disintegrate code
  • machine code routines
  • zx spectrum games code club
  • random number code
  • control code chr
  • chr code control
  • ink chr code

Copyright © 2024 World of Spectrum