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.037s
<1234567…34>
  • CODE instruction in array$ PRINTSo I'm still plugging away at BASIC and have found a line of code (another!) that's really puzzling me. The line is as follows: PRINT A$(P+Q TO P…

    OK, now I understand, it's actually the left arrow control code that is stored in the array. One last question: If I wanted to do the opposite and store the left arrow control code in an array, what would be the instruction? Many thanks.
    LevelUp LevelUp October 2020 BASIC
  • CODE instruction in array$ PRINTSo I'm still plugging away at BASIC and have found a line of code (another!) that's really puzzling me. The line is as follows: PRINT A$(P+Q TO P…

    ... 's actually the left arrow control code that is stored in the ... and store the left arrow control code in an array, what would ...
    Dr BEEP Dr BEEP November 2020 BASIC
  • IF and control flow in machine codeHi everyone, Basic has a nice control flow like if statements. How can these be done in machine code since i cant find anything thanks

    Hi everyone,

    Basic has a nice control flow like if statements.
    How can these be done in machine code since i cant find anything

    thanks
    Robin Robin September 2010 Development
  • XLR-8 Mastering utils: quick heads-upFirstly, only do this using an emulated 48K rubberkey at this stage because that's all it was ever tested on. "LOADER MAKER" - "First decrypter" - p…

    ... fancy CHR$ 22 Alky-style filenames you need to put the control ... (option 1), save the machine code part of the basic only ... it (which puts the machine code part of the basic into ...
    JonNorth JonNorth December 2005 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…

    ... code]

    Besides the normal ASCII characters, only the AT control ... codes are accepted.

    [code]
    ; ... /> ; --------------------------------
    ;
    ; Based on code by Ian Beardsmore from Your ...
    chev chev January 2007 Development
  • Printing UDGs in BASICAfter looking a little through Winer Milly's code, it struck me that I might be able to speed up my Cybernoid editor by replacing: FOR a=0 TO 31: PR…

    ... through Winer Milly's code, it struck me that ... CHR$32, CHR$33, CHR$34, ...etc

    Is there a control ... memory location. I then PRINT CHR$ 32 + x etc ... around, I can replace PRINT CHR$ 32 with PRINT " " ... is faster:
    PRINT CHR$32, CHR$33
    or
    48K 48K March 2007 Sinclair Basic
  • What control methods should I supportAs Bipboi is nearing it's completion, I need to ensure i cater for all control methods required by the users. Currently it just supports: keyboar…

    ... ensure i cater for all control methods required by the users ... where can I see sample code?

    Cheers
    robpearmain robpearmain May 2007 Development
  • BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…

    ... E : SYM + O
    CHR$ : E : U OVER : E ... PI : E : M
    CODE : E : I PLOT : K ... .
    Added unformatted "Control" section, ripped straight from ...
    icabod icabod March 2008 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…

    ... m$=m$+CHR$ 22+CHR$ a+CHR$ 7+" ":
    NEXT a[/CODE]

    control codes plus the spaces. When ... LET a$=CHR$ 17+CHR$ 7+CHR$ 6+CHR$ 6+CHR$ 17+CHR$ 5+CHR$ 6+CHR$ 6 ...
    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 ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in var…

    ... /> 10 PRINT USR id,"val"+CHR$ (a+64),"=",v;
    ... id,v$,"=",v+VAL ("val"+CHR$ (a+64));
    20 ... PRINT cat'dog'rabbit
    [/code]
    This effectively allows any ... CLASS_01: call LET".

    [code]
    SCANNING: equ $24fb ;the ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • storing machine code in BASICA couple of years ago I posted a routine for storing machine code between PROG & VARS, based on an idea in Toni Baker's "Mastering Machine Code". Thi…

    ... Baker's "Mastering Machine Code". This enables any ... code]
    2 DEF FN d$(l$,n)=l$+CHR$ 14+CHR$ 0+CHR ... $ 0+CHR$ FN g(n)+CHR$ FN ... h(n)+CHR$ ...
    REM INSTALL MACHINE CODE... with GO TO 9161
    Battle Bunny Battle Bunny January 2012 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…

    ... not 40.

    [CODE]

    org 32768 ... z,foundcr ; recognises some control codes here 13=carriage return ... ret
    foundat ; chr$22 can be used for ... nextchr
    foundcr ; chr$13 can be used for ...
    uglifruit uglifruit August 2012 Development
  • Machine code RST10 problemHello! After 27 years of playing with Spectrums I'm starting to look into doing assembly language properly. All went swimmingly well until I wrote …

    ... colour alone:

    [CODE]
    ;
    ; Output of ... ,msgctl ; point to message control codes
    .msgpcc ld ... inc hl ; point to next control character
    jr msgpcc ; ... msgfir defm " PRESS FIRE "
    [/CODE]

    On entering the ...
    snigfarp snigfarp November 2012 Development
  • Assembler v Machine CodeHi. I've been looking at a lot of the code examples in the Development section and can see that Assembler is the way to go. However, I was wondering …

    ... at a lot of the code examples in the Development ... actually codes in neat Machine Code?

    I use ... it gives me total control over the actual code, and where various ... to replace a lot of code if I need to ... an example sheet with some code on it, but I ...
    LuMan LuMan March 2013 Development
  • TXT2EMU enhancementI was looking at the encodings supported by BAS2TAP for entering graphics, print controls, etc. as plain text. Basically, there's only one needed, be…

    ... } for an embedded print control. There didn't seem ... in:
    [code]DEF FN j$(s,l)=CHR$ PEEK (s)+ ... gt;1)+("""""" AND l=1))[/code]
    replace the quoted ... thus:
    [code]DEF FN j$(s,l)=CHR$ PEEK (s)+VAL ... gt;1)+("""""" AND l=1))[/code]
    and after TXT2EMU ...
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • BIFROST* example: "Knights & Demons DX" source codeA package containing the source files of our multicolor game "Knights & Demons DX" is now available for download [URL="http://www.mediafire.com/?hbch…

    ... ' timer (multiplied by 100)[/CODE]

    The ...
    BIFROSTstart() ' enable BIFROST*[/CODE]

    This is ... :

    [CODE]'Update control panel and loop until battle ...
    Einar Saukas Einar Saukas August 2013 Development
  • Machine code/Assembly language back in the dayHello. Back in the 80s when I was a kid, I didn't learn Z-80 machine code, but I was always curious about it. Just recently I decided to explore Z-…

    ... little attempt at learning machine code on the Spectrum made me ... the Spectrum go out of control. A single wrong instruction and ... the assembler window. However, writing code on a real Spectrum must ... from crashing in case bad code is executed? Did they somehow ...
    memrah memrah September 2013 Sinclair Miscellaneous
  • MOVE_M Object Movement Manager for BASICAs moving things around on the screen is usually the slowest part of a game written in BASIC, I've been pottering around with this routine to handle …

    ... /> [/code]

    [code]
    ; MOVE_M moving object control for BASIC ... ACTION tables
    ; control keys are defined in the ... Hstep+ATTR+ROW:COL+CHR$+0:1+ROW: ... current
    ; CHR$ = graphic's character code
    ; 0 ... Hs Attr row col chr 0:1 row ...
    Battle Bunny Battle Bunny September 2013 Sinclair Basic
  • Get rid of 'Bytes:' when loading codeHow do you hide the 'Bytes:' when loading code? I've tried saving as CHR$ 22 + CHR$ 6+ CHR$ 0 (a blank part of the loading screen) but it still appe…

    How do you hide the 'Bytes:' when loading code?

    I've tried saving as CHR$ 22 + CHR$ 6+ CHR$ 0 (a blank part of the loading screen) but it still appears at 3,0 and disrupts my screen!
    daveysludge daveysludge December 2013 Sinclair Basic
  • About how z88dk generates code and makes room for variables.When you attempt to code games for the 128K models using z88dk in C you need to somewhat control where variables are stored in memory. I thought tha…

    ... you need to somewhat control where variables are stored ... for example:

    [code] script_result = 6;
    script_something_done = ... = 8;
    script = 9;[/code]

    I can see ... at the generated code:

    [code]ld A, $ ...
    na_th_an na_th_an January 2014 Development
  • BASin + INKEY$ + SymbolShiftHow can I get BASin to recognise SymbolShifted keys with INKEY$ while running a program? The Help tells me that Control = SymbolShift, but I've tried…

    ... ? The Help tells me that Control = SymbolShift, but I've tried ... copying and pasting the key code from the Windows Character Map ... /> Here's the bit of code. The character in "" in lines ... code for the symbol; 201,200,199 respectively. I tried using CHR ...
    Battle Bunny Battle Bunny July 2014 Sinclair Basic
  • Podraz 4 codeHello, it might help to preserve the code required for playing [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0003790"]Podraz 4[/URL] somewh…

    ... might help to preserve the code required for playing [URL="http ... on the game page. The code is "ZSZZZSJVVNSJ" (the 4th direction ... ?id=0006471"]Indiana Jones a Chr?m zk?zy[/URL], but ...
    Patrik Rak Patrik Rak January 2015 Infoseek database
  • Simple bit of machine code not working [SOLVED]ishHi all. It's late and I'm tired and I have no idea why the following piece of code wont display a little smiley face [code]ld hl,udg ld (236…

    ... why the following piece of code wont display a little smiley ... face


    [code]ld hl,udg
    ld ... ,126,126,66,60,24[/code]

    I'm using ... compiles okay as does printing chr$ 144.

    Can one ...
    Tobo Tobo March 2016 Development
  • 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…

    ... adding chr$ control codes (if this works) overwrites or underwrites the code. not ...
    digital digital June 2019 Assembler
  • Help with CHR$ codes 0 to 5Hi, I'm looking a piece of code in a listing similar to: Let a$ = CHR$ 0 Let b$ = CHR$ 1 Let c$ = CHR$ 2 Let d$ = CHR$ 3 Let e$ = CHR$ 4 Let f…

    ... of code in a listing similar to:
    Let a$ = CHR$ 0 ...
    Let b$ = CHR$ 1
    Let ... c$ = CHR$ 2
    Let ...
    Let f$ = CHR$ 5
    As these CHR$ aren't characters ...
    LevelUp LevelUp June 2020 BASIC
  • 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…

    ... at the top of your code.
    * If you are running ... AT 20,20; INK 2; CHR$(144): REM UDG A
    code being stored in 23560 (the ... ROM routines in a machine code program.

    * 23613/4 ...
    na_th_an na_th_an April 2005 Development
  • Printing UDGs in BASICAfter looking a little through Winer Milly's code, it struck me that I might be able to speed up my Cybernoid editor by replacing: FOR a=0 TO 31: PR…

    ... little through Winer Milly's code, it struck me that I ... a=0 TO 31: PRINT CHR$32+a : NEXT a
    [QUOTE]
    Is there a control character # that switches to UDG ... think there is. Just use CHR$ 144 to CHR$ 164.
    Paul van der Laan Paul van der Laan March 2007 Sinclair Basic
<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