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.017s
<1234567…34>
  • joining lines of BASICDue to overwhelming demand - well, one demand - well, more of a suggestion, really - here's a routine to join together lines of BASIC. The vertical c…

    ... hl
    inc hl
    push hl
    ld e,(hl)
    inc hl
    ld d,(hl) ;DE ...
    Battle Bunny Battle Bunny February 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 …

    ... de,hl
    ld (hl),$0d ;followed by ENTER
    ld (K_CUR),hl
    ld de,LNAME
    ld ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • AZIMUT / Frecuency spectrum[code]start DI LD HL,#7F40 LD D,#58 loop LD B,#00 bucle1 LD A,H IN A,[#FE] XOR A,C AND A,L J…

    ... DI
    LD HL,#7F40
    LD D,#58
    loop LD B,#00 ... /> AND A,H
    LD [DE],A
    LD C,#FF
    bucle2 ... ,H
    LD [DE],A
    LD C,#00
    LD A,H
    Z80user Z80user February 2012 Development
  • Routine for clearing screenI was looking for a 'nice' way of clearing a screen of graphics in Z80. After a ridiculous amount of time mucking around, this is the best and most …

    ... /> START
    ld hl,16384
    ld bc,6144
    ld de,(PRT_CHR)

    SCREEN_CLEAR_LOOP
    ld a,(hl)
    and e
    ld (hl ...
    Morkin Morkin March 2012 Development
  • 28-character wide multicolour(ish) on 48k SpectrumLong-time lurker here... I've always been interested in rainbow effects on the 48k Spectrum, mainly from a perspective of "Just what [I]would [/I]ha…

    ... /> push de
    push hl
    PUSH AF
    LD (VALSP),SP ... data
    ld de,3344H ; Some more attribute data
    ld hl,5566H ; ... LD SP,(VALSP)
    POP AF
    POP HL
    POP DE
    LD L,C
    LD D,A
    LD E,B
    LD (HL),0FDH ...
    AMW AMW April 2012 Development
  • Inefficient code in ROM, from ram-check to RAM-DONEHere is the inefficient code: [CODE] ;; ram-check L11DA: LD H,D ; Transfer the top value to the HL register LD L,E …

    ... br /> ;; RAM-FILL
    L11DC: LD (HL),$02 ; Load memory with $02 ... prepare to subtract.
    SBC HL,DE ; subtract and add back ... /> EX DE,HL

    ;; RAM-FILL
    L11DA: LD (HL),$01 ; ...
    antoniovillena antoniovillena April 2012 Development
  • Help pleeease "Proving Emulator OpCode flags are correct"So I had a cunning plan... I wanted to write a test harness for Emulators that could "prove" that all opcode flags were correct. I wanted something m…

    ... :

    LD HL,0x7000 //mcAddr, lAddr
    LD IX,0x8000 //xAddr ...
    LD B,0 //aAddr
    LD C,0 //fAddr ...
    LD D,0 //dAddr ... AF
    POP DE
    LD (HL),D
    LD (IX+0),E
    Korinel Korinel April 2012 Emulators
  • Byte-order backbufferThis is a tool for Z80 coders who wish the Spectrum screen had a serial layout. It runs as an interrupt mode 2 service routine and uses POP and PUSH …

    ... byte of the screen
    ld hl, $ + 9 ; set ... chunk * 2048)
    ld hl, $ + 9
    ld (endcall), hl
    jp blit< ... pop de
    pop hl

    ld sp, iy
    push hl ... ; write 16 bytes
    push de ...
    chev chev April 2012 Development
  • Moving a line down the display in assembler?...It's not a "[I]how can I do it[/I]" question, it's more a "am I missing something in trying to do it a new way" kinda question. What I've been doing…

    ... /> ld b,16 ;
    ld de,(xpos)

    loop1: ld a,d
    ld ... ,(hl)
    inc h
    ld h,(hl)
    ld l,a

    ld (hl ...
    Sokurah Sokurah June 2012 Development
  • CMWC random number generator for Z80Seeing the interest regarding the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]Xor-Shift random number generator for Z80[/URL]…

    ...
    ret

    rnd ld de,0 ; c,i

    ld c,e
    ld hl,table
    add hl,bc

    ld c,(hl ... / 256

    ld (rnd+1),de

    ld a,l ; x ...
    Patrik Rak Patrik Rak June 2012 Development
  • Jelly-Vision!As threatened in the "'Spectrum Play' Error" thread, here's a ruff'n'reddy interrupt driven full screen wobbling routine which has no practical use w…

    ... ,MOVEUP
    MOVEDOWN: ld hl,16384+256
    ld de,16384
    ldir
    MOVEUP: ld de,16384+6143
    ld hl,16384+6143-256
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • assembly optimization: times tenDecimal numbers are not computer friendly :) Anyway, short of saying "sod it - I'll multiply by 8" - and another part of the program does indeed div…

    ... /> LD D,0
    ADD HL,HL
    ADD HL,HL
    ADD HL,HL
    ADD HL,DE ...
    ADD HL,DE
    LD D,H
    ADD HL,HL
    ADD HL,HL
    ADD HL,DE
    Gedlion Gedlion August 2012 Development
  • Hep needed with a bit of code...I've written a bit of code to make a character move across the screen, but the counter stops at 29 when the 3 lines to delete the characters trail ar…

    ... ; ????

    ld hl, 63289
    dec (hl)
    dec (hl)
    ld a,(63289 ... /> call 5633
    ld bc, 10
    ld de, 63290
    call 8252 ...
    ret
    prb: ld a ...
    daveysludge daveysludge August 2012 Development
  • 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…

    ... /> ld (hl),a
    inc hl
    inc de
    ld a,(de)
    and (hl)
    ld (hl ...
    uglifruit uglifruit August 2012 Development
  • merging bytesPicturing three bytes with their bits identified by letters to make the visualisation easier, what's the best way to perform this transformation? [co…

    ... pop de ;D=ABCDEFGH
    ld e,0
    ld B ... ld (hl),a
    inc hl
    [color=red] ld a,(hl) ;ld a ... d ;A=FGHlmnop
    ld (hl),a
    ret
    ...
    Battle Bunny Battle Bunny August 2012 Development
  • next pixelI searched the "Discussions" groups for the phrase "next pixel" and got no matches - and removing the quotes it discards the "next" and just searches…

    ... ld hl,$4000
    ld de,$4000
    ld bc,0

    pixrow: ld (hl),$ ... jr z,set_hl
    ld d,%01000000
    inc c ... b ;B =segment
    ld a,b
    cp 3 ...
    Battle Bunny Battle Bunny September 2012 Development
  • Any ideas on speeding up this assembler segment?It copies a pixel column of a rectangle which may be anywhere in the display file to a pixel column in d$. The source column may start at any bit pos…

    ... 1->8
    ld a,(hl) ; 7
    rotbit0 ... br /> ex de,hl ; 4
    or (hl) ; 7
    ld (hl),a ; 7 ... set selected bit in d$()
    ex de,hl ; ...
    Battle Bunny Battle Bunny September 2012 Development
  • BeepFX ProblemHi All, I'm currently trying to integrate the BeepFX engine in my 100% Assembler Game and it plays the sound fine, but then plays the sound again, a…

    ... bc
    SFXRTl1: add hl,de
    ld a,h
    SFXRTDUTY: cp ... /> ld b,(ix+8)
    ex de,hl
    add hl,bc
    ex de,hl ...
    Shando Shando September 2012 Development
  • multi-scroll m/c subroutine for BASICArising from recent posts, here's a scrolling routine that will manage multiple left/right scrollings for any (sensible) line width or step; (ie. whe…

    Arising from recent posts, here's a scrolling routine that will manage multiple left/right scrollings for any (sensible) line width or step; (ie. where width is
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • Graph Plothi! please, help with code: [PHP]For x=-100 To 100 For y=-100 To 100 If (x/2-25)*(x/2-25)+(y-50)*(y-50)<200 Or (x/2+25)*(x/2+25)+(y-50)*(y-50)<200 th…

    hi! please, help with code:
    [PHP]For x=-100 To 100
    For y=-100 To 100
    If (x/2-25)*(x/2-25)+(y-50)*(y-50)
    g0blinish g0blinish November 2012 Development
  • Optimisations in Exomizer Z80 decrunch codeThis is the 163 bytes old code (simple and optimized): [CODE] ld iy, exo_mapbasebits ld a, 128 ld b, 52 push de exo…

    ... /> ld (iy+104), d ;base[i]=b2
    add hl, de
    ex de, hl ... /> ld (iy+104), d ;base[i]=b2
    add hl, de
    ex de, hl ...
    antoniovillena antoniovillena November 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 …

    ...
    ld hl,(STKENDO)
    ld de,STKSTOR
    ld bc,20< ... br /> ld hl,STKSTOR
    ld de,(STKENDO)
    ld bc,20< ... calculator stack
    ld (23653),de ;STKEND
    call ...
    Battle Bunny Battle Bunny November 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 …

    ... ex de,hl ; remember HL as it points to the message
    ld hl,msgctl ... ld b,$10 ; messages are always 16 characters long
    ex de,hl ... ; recall hl pointing to message
    .msgpch ld a,(hl) ; load ...
    snigfarp snigfarp November 2012 Development
  • "Chronos": how fast should it really be?I was reading [URL="http://timfollin.pwp.blueyonder.co.uk/Archive.htm"]Tim Follin's webpage[/URL] the other day and came across a curious remark abou…

    ... /> 58426: ld hl, 64484
    58429: ld de, 3
    58432: ld b, 128 ...

    58552: sbc hl, de
    58554: djnz 58434
    hl, de, if one thinks carefully, ... :
    [CODE]
    ld hl, 64484
    ld b, 128

    introspec introspec May 2013 Development
  • Chronos (BUGFIX)Please add the following "known errors" entry to [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0000951"]Chronos[/URL]: [QUOTE]Bugfix provid…

    ... : ld hl, 64484 ; off-screen buffer
    ld de, 3
    ld b ...
    rld
    sbc hl,de ; next pixel line address
    [CODE]58426: ld hl, 64484 ; off-screen buffer ...
    Einar Saukas Einar Saukas May 2013 Infoseek database
  • Works in Fuse & SpecEmu, not ZXSpinI decided that I wanted to change the scroll routine which I was using for compiling the Trailblazer maps, as I'd just copied it out of Andrew Hewson…

    ... /> call CHARSCROLL
    ld hl,23296
    ld de,16394 ;HL=(DF_CC) for line 0 ...
    call PATTERN
    ld de,16426 ;HL=(DF_CC) for line 1,column ...
    Battle Bunny Battle Bunny June 2013 Emulators
  • Some thoughs about fast scrolling on 128 modelPlease, consider this article as technically interesting concept not a proven algorithm. ONE The fastest scrollers use long sequence of PUSH inst…

    ...
    [CODE]
    ld hl, (register_x)
    push hl
    [/CODE]
    ... generates
    [CODE]
    ; ld hl, (register_x) - it is same pattern ... we skip loading
    push hl
    [/CODE]
    Do ... registers to common patterns like DE for empty tile and ...
    catmeows catmeows June 2013 Development
  • Idk>le me browsing through some game's code >..... [code]61A8 F5 push af 61A9 3EFF ld a,FF 61AB D37F out (7F),a 61AD D33F ou…

    ... ld (62FA),hl
    61CA 31F862 ld sp,62F8
    61CD D5 push de ... 22BE62 ld (62BE),hl
    620F 2100CD ld hl,CD00
    6212 22BC62 ld (62BC),hl ... D1 pop de
    62B7 E1 pop hl
    62B8 ED7BFC62 ld sp ...
    Hikaru Hikaru June 2013 Development
  • Rotronics Wafadrive v.1.80 ROM - Corrupt or purposely broken?I've been digging around the Wafadrive v1.80 ROM (from [URL="http://zxspectrum.it.omegahg.com/_RO.htm"]here[/URL]) and can't decide if the ROM is cor…

    ... /> push de
    ld hl, $009f
    ex (sp), hl
    push hl
    ld e ... /> ld hl, $0cf7 ; address the hook-code table!? WTF?
    add hl, de
    ld ... e, (hl)
    inc hl
    ld h, (hl)
    ld l, e ...
    jp jp July 2013 Hardware
<1234567…34>

Latest Posts

  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    harriusherbartio on 11:40AM
  • 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
  • Frankie's ZX Spectrum Digouts
    Zup on April 8
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8
  • 1992 Spectrum Software
    harriusherbartio on April 7

HitBox

Word Docs Hits
ld 6.3K 67.3K
hl 6.2K 48K
de 9.7K 27.3K

Related Threads

  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;)<br /> <br /> But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (igno…
  • Music on Tour de Force (Gremlin)Has this game really a music somewhere ?<br /> Perhaps the 48K bzz-bzz at the beginning of any level and/or for game over is considered "music" ?<br …
  • Scrabble De-luxe dsk image and SpinAnyone else tries loading the disc file of Scrabble De-Luxe into Spin?<br /> All I get is the loading screen keep appearing and disappearing - as if …
  • Viaje al Centro de la Tierra - questionsI would like to know the following informations about this game:<br /> <br /> 1) What does the title mean in English? I guess that the game is based …
  • 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…
  • How many T-states takes PUSH DE ?Hi.<br /> <br /> Just a quick one.<br /> According to z80.info docs, a PUSH DE should take 11 T-States to be executed.<br /> <br /> But WHAT if SP is…
  • Spectrum and other vintage 8bitters on Ebay.deI'm going to give away several historic machines (Sinclair, Commodore, Robotron, Amstrad). I'm starting tonight with a spectrum with extra Joystick i…
  • Tour de FranceThe opening ceremony for the Tour takes place in Trafalgar Square at 6 p.m. this evening and Sir Clive should have a pigeon's eye view from his penth…
  • My rubber 'stick needs to be de-squeaked ... but how?I've got a still-functional Logitech Wingman Extreme (Digital) and love it ... but the rubber casing between the 'stick and the base is a bit squeaky…

Related Searches

  • ld ix
  • ld bytes
  • return to basic hl
  • ld bc eostr string
  • ld am
  • ld a r
  • ld r a
  • de spectrum
  • la diosa de cozumel
  • los amores de brunilda
  • call hl
  • ld bc hl
  • sub hl de
  • sjasmplus sub hl de
  • ld hl 5678
  • 33 ld hl xxxx
  • screen buffer pop bc ld sp hl
  • ld de 11
  • ld 23641 hl
  • ex hl de

Copyright © 2024 World of Spectrum