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.034s
<1234567…34>
  • 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 ... /> print_string ;ix pointing at string
    ld a,(ix+0 ... control_code
    ...print char in string
    jr print_string
    ... next byte can be another control code. So it means lots of ...
    R-Tape R-Tape August 2015 Development
  • Code optimisation! 16bit number to 5 digit stringJust for interest this one, any thoughts on how to make this as fast as possible? Little optimisations to this routine or a complete reimagining? …

    ... [code]number2string: ;arrive DE number, HL at end of string,assume string ... lp: inc (hl) ;increase string number
    ld a,(hl ... HL back to start of string
    dec de ; ...
    ;
    string:
    db '00000' ;16 bit string number
    ;[/code]
    R-Tape R-Tape December 2016 Development
  • Can't Get My Simple Code To RunHello again, I'm trying to run the following simple code: [code] org 32768 main ld b, 21 ; x coordinate is …

    ... br /> ld de, string ; string to print
    ld ... bc, eostring-string ; length of string
    call drawText ... ld a,22 ; ASCII control code for AT.
    rst ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • Kiwi OS for z80 computerHi everyone, Nearly made my z80 computer with 2K ROM 32K RAM. It has an OS im still writing called Kiwi (apple, blackberry, you get the idea ;D) he…

    ... 1527 ;LOAD HL WITH ADDRESS STRING LOCATION
    CALL ASCII ;PRINT ... 1534 ;LOAD HL WITH DATA STRING LOCATION
    CALL ASCII ; ... A, $A0 ;LOAD A WITH CONTROL CODE 1010
    SRL B ;ROTATE ...
    [/CODE]

    Port 1 is the control data to ...
    Robin Robin August 2011 Announcements
  • why am i getting b integer out of range in this code?ive tried running this in spin but thats what i get [code]main org 40000; ; We want a black screen. ld a,71 ; white ink (7) on black paper (0…

    ... i get

    [code]main
    org 40000;
    mushlp ld a,22 ; control code for AT character.
    rst ... basexy ld a,22 ; AT code.
    rst 16
    ld ... /> ld a,144 ; ASCII code for User Defined Graphic 'A ... ,60,60,60 ; mushroom.[/code]
    digital digital June 2020 Assembler
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... normal circumstances you have no control over where that variable is ... the end of the string. So:

    [code]
    while ((n ... be retrieving the ascii code from the text string using "*s" and ...
    Alcoholics Anonymous Alcoholics Anonymous June 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 ... in an 'AT 0,0' control code just as you're getting ...
    gasman gasman 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…

    ... in an 'AT 0,0' control code just as you're getting ... OTHELLO "AI string", which takes 2 lines of code in the current ... would only show an empty string "".

    Another trivial example ... hidden instead in a single string "" using the same trick (although ...
    Einar Saukas Einar Saukas October 2007 Development
  • speccy games at your school?this will probably only apply to those of us who were at school from say 82 to 92ish (guessing thats the majority of people here?). anyway did your…

    ... because of the INK 8 control code at the start of the ... to auto-load. It would string you along for a bit ...
    joefish joefish May 2009 Games
  • Print text in assemblyHello, a perhaps simple question: I would like to print a text string on the screen and I wonder how to do that in the most easy way? I seem to re…

    ... same as below?

    [CODE]LD A,2
    CALL ... 1601
    [/CODE]

    I picked that ... on) are handled by inserting control codes (bytes with value
    Rickard Rickard October 2010 Development
  • Move objectHi again, I am using paper colors to represent game objects. I have a "paddle" that is 4 pixels wide. I save its position as a 2 byte word in memory…

    ... de, score_string ; start of score string

    ld bc, ... 12 ; length of string in bytes

    call ... /> ld a, 17 ; papper color control code

    RST 16 ; ... /> ld a, 16 ; ink color control code

    RST 16 ; ...
    ooze48k ooze48k July 2011 Development
  • Move objectHi again, I am using paper colors to represent game objects. I have a "paddle" that is 4 pixels wide. I save its position as a 2 byte word in memory…

    ... de, score_string ; start of score string

    ld bc, ... 12 ; length of string in bytes

    call ... /> ld a, 17 ; papper color control code

    RST 16 ; ... /> ld a, 16 ; ink color control code

    RST 16 ; ...
    ooze48k ooze48k July 2011 Development
  • 128K+ Keypad Swapsies.I've been offered a swap, a Spanish 128k keypad, for one of my UK microdrives. Is this a good swap?

    ... br /> * supports entering embedded control codes
    * tokenizer has ...
    * full screen string editor
    * four new ... tester (broken)
    * no string editor
    * tokenizer uses tokens ... keyboard
    * no embedded control code support
    * no ...
    chev chev July 2012 Sinclair Miscellaneous
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... (iy + _flags) ; signal string
    ret ; end of subroutine ... xor a ; signal array string or sliced string

    ... br /> inc hl ; skip control code
    jr l_no_sp ; ... ldir ; move number or string
    pop hl ; ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... /> res 6, (iy + _flags) ; signal string variable
    rst next_char ; next ... , stk_fetch ; call stk-fetch if string
    jp nz, print_fp ; ... /> co_temp_2:
    call co_temp_3 ; embedded control code?
    ret c ; return with ...
    chev chev October 2013 Development
  • dumping protected BASIC loadersI wrote this a few weeks ago but forgot to post it. It will load & list from tape/TAP/TZX any BASIC program which has been saved with SAVE, including…

    ... 2-10: Load the m/code (for reading the tape blocks ... byte is not a print control code, print it in red, skip ... /> [*]Line 27: Print the print control code plus the following 1 (or ... number marker to build the string v$ containing the visible number ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • FZX: a new standard format and driver for proportional fonts[B]FZX[/B] is a very compact and efficient (although extremely flexible and powerful) standard format to create new fonts for the ZX-Spectrum. It sup…

    ... 4 extra bytes in the string", then you can understand why ... . Many spectrum games use this control code trick too (at least many ... can send out a justified string to the screen. In my ... i also used another special control code to "flush the buffer", but ...
    Timmy Timmy January 2015 Brand new software
  • 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, …

    ... call the control code processor directly, with a code in A, ... is jump to the control code processor directly, it ... control code processor jumps back into the appropriate place in the print-string ... be even cleverer, your control code processor PUSHes the address ...
    joefish joefish August 2015 Development
  • Full-screen 32 columns bicolor engine NIRVANA+I'm glad to announce the release of [b]NIRVANA+ ENGINE[/b], providing support for bicolor graphics (multicolor 8x2) in 32 columns for all standard Sp…

    ... printf() and the embedded control code in the printf string. A minimum size ... magic addresses in the interface code and it would be easy ... to replace the top-border code with his own ...
    Alcoholics Anonymous Alcoholics Anonymous December 2015 Brand new software
  • endless runner project..So I'm thinking of writing a small tutorial series on writing games for the speccy in C, and figured that an endless runner would be an easy example …

    ... on in the print string and the same is ... These are not vt100 control sequences and would not work ... 'd then take that string and print it with ... to screen, use the vt100 control code sequence to clear.
    ... you can print a control code to clear or you can ...
    Alcoholics Anonymous Alcoholics Anonymous May 2017 Development
  • Can't Get My Simple Code To RunHello again, I'm trying to run the following simple code: [code] org 32768 main ld b, 21 ; x coordinate is …

    ... de, string ; string to print
    ld bc, eostring-string ; length of string
    setxy ld a,22 ; ASCII control code for AT.
    rst 16 ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • 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…

    ...
    [code]
    [i]hex4$[/i] = 4 digit hex string ("0000"-"FFFF ... [i]string2[/i] = 2 character string
    [/code]

    [b]AND ... [b]BIN[/b]([i]string[/i])
    [code]
    DEF FN B ... [b]LEFT$[/b]([i]string,number[/i])
    [code]
    DEF FN ...
    chev chev November 2004 Sinclair Basic
  • Andromeda Inc.Since there was a thread in the games section about Tarantula, I made a search and found the game [URL="http://www.worldofspectrum.org/infoseekid.cgi…

    ... bit different, but checking the code of both games, I think ... (LEN STR$ Y TO)
    [/code]

    in Aracnidos, and ... (LEN STR$ Y TO)
    [/code]

    in Tarantulas. The ... sense alone without its previous control code, and produces ugly ? signs ...
    Metalbrain Metalbrain January 2013 Infoseek database
  • trying to read keyboardI have the speccy in interrupt mode 1 I used 'IM1' in assembly language then Im printing the contents of memoryu area 23560 to the screen: [quote] l…

    ... />
    ld a,#22 ; ASCII control code for AT.
    rst #16 ...
    slenkar slenkar August 2013 Development
  • z80 assembly helpEver since I was a child I wanted to program my zx81 then my zx spectrum + 2. However, it was such a mystical beast and I only ever used BASIC not kn…

    ... I understand exactly what the code is doing.

    code is as follows
    ... /> ld a,32 ; ASCII code for space.
    rst 16 ... setxy ld a,22 ; ASCII control code for AT.
    rst 16 ...
    antonyjones101 antonyjones101 September 2015 Development
  • CAPS-SHIFT KeyCodeIs there a standard Keycode for CAPS-SHIFT Key ? Looking at the ROM documentation in the Main key table KEYTABLE_A, there is no Entry for CAPS_SHI…

    ... ever be assigned a key code.
    [code]035A BIT 3,(IY ... then return with the 'main code'.[/code]

    I also checked ... /> SYMBOL-SHIFT is mapped to control code 14 = 0x0E, in [b]KEYTABLE_A ...
    RMartins RMartins October 2016 Development
<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
string 2.8K 5.1K
control 9.5K 11.7K
code 41.6K 91.2K

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…
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…
  • 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 optimisation! 16bit number to 5 digit stringJust for interest this one, any thoughts on how to make this as fast as possible? Little optimisations to this routine or a complete reimagining?<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…

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
  • 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
  • control code chr
  • control code
  • chr control codes string
  • control codes string
  • flash string code control
  • chr code control
  • paper control machine code

Copyright © 2024 World of Spectrum