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.009s
<1234567…34>
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ...
    loop ld de,string ; address of string
    ld bc,eostr-string ; length of string to print ...
    call 8252 ; print our string ...
    xyzzy xyzzy December 2009 Development
  • Help with Assembly - DEFB, etc.Dear all, I'm going through Jnathan Cauldwell's tutorial and find myself scratching my head at part I can't find a decent explanation of anywhere! E…

    ... channel
    ld de,string ; address of string
    ld bc,eostr-string ; length of string to print ...
    call 8252 ; print our string ...
    Tobo Tobo September 2014 Development
  • How to Write ZX Spectrum Games - Jonathan CauldwellHello, I'm trying to improve my very basic level of assembler by reading the Jonathan Cauldwell guide. I'm fine with the basics LD, CP, and JP,…

    ... /> Can someone explain the 'eostr-string', and the 'eostr equ $'.

    ... 5633
    loop
    ld de,string
    ld bc,eostr-string
    call 8252
    jp loop

    string ...
    jonesypeter jonesypeter October 2015 Development
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ...
    loop ld de,string ; address of string
    ld bc,eostr-string ; length of string to print ...
    call 8252 ; print our string ...
    Dr BEEP Dr BEEP December 2009 Development
  • Help with Assembly - DEFB, etc.Dear all, I'm going through Jnathan Cauldwell's tutorial and find myself scratching my head at part I can't find a decent explanation of anywhere! E…

    ... br />
    [B]string=30000
    eostr=30004 [/B]
    < ... br />
    [B]ld bc,eostr-string ; length of string to print[/B]

    it becomes:

    [B]ld bc ... will find there this "ld bc,4". All mentioned calculations ...
    Ralf Ralf September 2014 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 …

    ... string
    [code]
    loop ld de,string ; address of string
    ld bc,eostr-string ; length of string ... to print
    call 8252 ; print our string ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... /> ; ld bc,6 ;BC contains string length
    loop ld de,dat ; address of string
    ld bc,eostr ... -dat ; length of string to print
    alienbanana alienbanana February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... [/B] ld de,dat ; address of string
    ld bc,eostr-dat ; length of string to ... print
    call 8252 ;PRINTs string ...
    Morkin Morkin February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... string
    ; ld bc,6 ;BC contains string length
    ld de,dat ; address of string
    ld bc,eostr ... -dat ; length of string ...
    alienbanana alienbanana February 2014 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 …

    ... ld de, string ; string to print
    ld bc, eostring-string ; length of string< ... length of string
    ; ***************************************
    drawText
    ld a,2 ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... /> call 5633
    ld de,string ;instructions
    ld bc,theendofthestring-string
    call 8252 ... /> ;
    display_them
    ld de,udgstring
    ld bc,22 ;string length
    call ...
    R-Tape R-Tape December 2011 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 …

    is this line correct?
    ld bc, eostring-string
    also on pasmo you ...
    slenkar slenkar October 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 …

    ...
    ld de, string ; string to print
    ld bc, eostring-string ; length of string
    ... br /> ld hl,string+1
    ld a, b ; x position.
    ld (hl ...
    Ast_A_Moore Ast_A_Moore October 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 …

    ...
    ld de, string ; string to print
    ld bc, eostring-string ; length of string
    ... br /> ld hl,string+1
    ld a, b ; x position.
    ld (hl ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... want the text in a string rather than individual character codes ... lines)
    ld de,dat ; address of string
    ld bc,[B][I]27 ... [/I][/B] ; length of string to ...
    defw 'MORE TESTING'
    eostr equ $

    udg
    Morkin Morkin February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... lines)
    ld de,dat ; address of string
    ld bc,[B][I]27 ... [/I][/B] ; length of string to ... **

    call 8252 ;PRINTs string
    [strike][B][I]cp ...
    defw 'MORE TESTING'
    eostr equ $

    udg
    rich_chandler rich_chandler February 2014 Development
  • RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM : ;print a long string "help me" start .org 32000 ld a,2 call 5633…

    ... :

    ;print a long string "help me"
    start .org ... 5633
    ld de,data
    ld bc,7
    loop ld a,b ...
    or c
    dec bc ...
    ret z
    ld a,(de)
    Steve(spt) Steve(spt) April 2004 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ...
    The string after the USR holds ... LD HL,#1821
    LD BC,(23688)
    SBC HL,BC
    LD ...
    Dr BEEP Dr BEEP December 2008 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... print_message
    ;
    ; prints a string which is terminated with $ff ... cp 255 ; end of the string
    ret z ; so exit ... :)

    ; -----------------------------------------------
    delay: ld bc,32768
    ld a,0
    d_loop ...
    polomint polomint September 2011 Development
  • Undefine functionHere's a routine to selectively remove variables from the VARS area and reclaim the space. This can be done partially from BASIC already by assigning…

    ... for...next control
    NUMBER: ld bc,5 ;length of a number ... a for...next control
    ld bc,18 ;length of a for ... /> inc hl
    ld b,(hl) ;BC=length of string or any array ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • editing strings with INPUT LINEHere's the latest in my unpredictable series of utility routines. This one I needed for the SAGE game editor; it emulates INPUT LINE l$ but with the …

    ... $ contains the name of the string).

    The vertical ...
    ld bc,(CH_ADD)
    push bc
    ld de,LNAME
    ld (CH_ADD),de ... /> res 6,(iy+$37) ;FLAGX: "string result"
    set 5,(iy ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Covering my tracks using OVERI've got myself in a bit of a mess again I'm afraid, the routine I have written is for 4 characters to move across the screen 2 spaces at a time in I…

    ... ret
    reset: ld a,1
    ld (59999),a
    ... ret
    print1: ld a,(59999)
    dec a ... dec a
    ld (cor2),a
    ld a,2
    ... call 5633
    ld de,dat
    ld bc,15
    call ... ,29 as the print string is entering/exiting the ...
    daveysludge daveysludge October 2012 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... ;IX=address of parameter string
    ld a,(ix+2) ;A ...
    ld hl,(STKENDO)
    ld de,STKSTOR
    ld bc,20
    bc
    ld hl,STKSTOR
    ld de,(STKENDO)
    ld bc,20< ...
    Battle Bunny Battle Bunny November 2012 Development
  • SCREEN$ bug fixI've been using the SCREEN$() function recently for reading data off the screen rather than taking up space with an array and I got fed up with the s…

    ... machine stack so that this string
    ;becomes the output from ... /> pop hl
    ld bc,10
    add hl,bc
    call $33b4 ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • z88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…

    ... />
    LD BC,255
    LD DE,04000h
    LD HL,37000
    #asm
    LD BC,37000
    LD L,0

    {
    #asm
    LD BC,37000


    ...
    LD BC,255
    LD DE,04000h
    LD HL,37000
    slenkar slenkar October 2013 Development
  • Troublesome routine, help needed!Having problems with this routine, it basically fires a rocket up the screen, but refuses to detect collisions. I'm using attribute blocks for detect…

    ... /> ld (rx5),a ;load co-ords into print string
    push bc
    pop bc
    djnz loop
    ret
    print ld a,2 ... /> call 5633
    ld de,rktdat
    ld bc,33
    call 8252 ...
    daveysludge daveysludge November 2013 Development
  • Simple text scrolling routine...I'm having trouble writing a very simple text scroller, the idea is to use the ROM printer routine to print 32 characters each time the routine is ca…

    ... is called, updating the de string start address by 1 every ... )
    inc a ;increase
    ld (counter),a ;update counter with ... 5633
    point ld de,dat
    ld bc,32
    call 8525 ...
    ret

    attr
    ld ...
    daveysludge daveysludge September 2014 Development
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

    ...
    [code]
    MAIN LD HL,50213 ; MAP START ADD ...

    LOOP1 LD BC,8 ; SET THE COUNTER FOR ... COUNTER

    LD BC,32 ; SET THE COUNTER FOR ... TO NEXT LINE
    LD BC,32 ; 32 TO ADD ... on screen, after popping BC the DJNZ doesn't ...
    mulder mulder January 2016 Development
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... this:
    [code]
    LD bc,(SEED)
    call $2d2b ;STACK_BC ... stack the number in BC
    rst $28
    LD A,(HL) ;Fetch the exponent ... slightly trickier trick allows string pointers to be returned ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
ld 6.3K 67.3K
bc 3.6K 14K
eostr 21 38
string 2.8K 5.1K

Related Threads

  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • BC 's Quest For Tireswhen playing this game you can only use keyboard right?.WRONG.if you press the letter "p" while the game has started(paused and waiting for input)a c…
  • BC Bill does this game work with a emulator?Can anyone get this game running with a emulator. I get as far as the main screen but can't start the game
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum.<br /> There was a command in speccy basic that would let you scroll a string …
  • BC BillThis is embarrassing but here goes...<br /> <br /> I'm playing BC Bill using ZX32. On the control menu I press 2 to select 'Kempston'. What do I need…
  • String slicing for UDG definitionHey everyone.<br /> <br /> Got a bit of a string slicing/string to variable conversion problem.<br /> <br /> 10 let a$="01100110"<br /> 20 let pokeva…
  • Method to read byte as binary string rather than dec?Hi all<br /> <br /> Am fiddling around with the screen buffer and have written a routine to scan the screenbuffer into upper ram and then write it ba…
  • Problems with BC bill gameI have loaded this game with several emulators and game files with the same result:<br /> you can choose the input -&gt; sinclair, kempston, etc but …
  • Insane string of bad luckWhat a horrendous past 3 months. :cry:<br /> All my computers died (including WoS), 2 of my guinea pigs died, my holidays got canceled and tonight my…
  • BASIC: Fast way of filling a string?Recently I decided to use string slicing to extract random numbers from a sequence in the one-liner Lottery picker:<br /> <br /> [quote]<br /> 20 RAN…

Related Searches

  • ld ix
  • ld bytes
  • eostr
  • ld hl de
  • ld am
  • ld a r
  • reorder a string
  • change characters in string
  • ld r a
  • call address in bc
  • ld a b xor c loop
  • ld a b or c loop
  • inputting to a string array
  • print usr bc
  • detect a word string on the screen
  • bc bill
  • ld bc hl
  • ld bc 65533 a 254 out c
  • ld bc 65533
  • screen buffer pop bc ld sp hl

Copyright © 2024 World of Spectrum