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.012s
<1234567…34>
  • rotating HL left through CarryI've tried this several ways, and it works for a while, then a particular value has a bit set in an inconvenient place and it all goes to pot. Eg: "…

    ...
    ld de,temp
    ex hl,de
    ld (hl),d; (hl) = & ... rlca; a = &82, (hl) = &78
    rld; ... a = &81, (hl) = &72
    ld ... hl)
    ld l,a

    Course it does trash DE ...
    AndyC AndyC March 2012 Development
  • rotating HL left through CarryI've tried this several ways, and it works for a while, then a particular value has a bit set in an inconvenient place and it all goes to pot. Eg: "…

    ...
    ld de,temp
    ex hl,de
    ld (hl),d; (hl) = & ... rlca; a = &82, (hl) = &78
    rld; ... a = &81, (hl) = &72
    ld ... hl)
    ld l,a

    Course it does trash DE ...
    Einar Saukas Einar Saukas March 2012 Development
  • rotating HL left through CarryI've tried this several ways, and it works for a while, then a particular value has a bit set in an inconvenient place and it all goes to pot. Eg: "…

    ...
    ld de,temp
    ex hl,de
    ld (hl),d; (hl) = & ... rlca; a = &82, (hl) = &78
    rld; ... a = &81, (hl) = &72
    ld ... hl)
    ld l,a

    Course it does trash DE ...
    Einar Saukas Einar Saukas March 2012 Development
  • Help needed with a bit of code...My minds gone blank again I'm afraid, I'm having trouble with this routine that loads variables into memory then calls the corresponding routine. Th…

    ... get from the table into DE, point HL at your numerical data ... you want to preserve, then EX HL,DE to swap the pointers over ... POP those values again, DE and HL will be back as they ... , freeing up DE and HL for different tasks. And EX DE,HL can come in ...
    joefish joefish October 2014 Development
  • Help needed with a bit of code...My minds gone blank again I'm afraid, I'm having trouble with this routine that loads variables into memory then calls the corresponding routine. Th…

    ... ex hl, de
    ld c,(hl)
    inc hl
    ld b,(hl)
    dec hl ... ; assuming you need to preserve 'DE ... '
    ex hl, de ... (bc),a
    inc hl
    [/code] Although ...
    AndyC AndyC October 2014 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ... no
    LD (IX), HL
    you have to do ... s no LD HL, DE either! I could use EX DE, HL since DE was not ... (and it did not allow EX HL, DE either).
    You need to ... used:
    ld (ix+nn),hl ; ld (ix+nn),l : ... +nn+1),h
    ld hl,de ; ld h,d : ld ...
    Paradigm Shifter Paradigm Shifter June 2022 Development
  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;) But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (ignoring x), I'm…

    ... hl, de
    ld e, c
    add hl, de
    ex de, hl
    pop hl
    swap_word
    pop af
    pop hl ... e
    push hl
    add hl, de
    pop de
    ex de, hl
    swap_word ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Z80: ABS(HL) functionI must be very tired but I cannot get my head around whether this function provides a correct implementation of a ABS function for a signed 16-bit va…

    ... br />
    [code]
    ; Input: HL contains a signed 16-bit ... value
    ; Output: HL = ABS(HL)
    ABSFunc:
    BIT 7 ... perform a SBC HL, DE with HL containing 0 and DE the input value ... require a PUSH, POP, two EX DE, HL and something (OR A) to ...
    BloodBaz BloodBaz January 2014 Development
  • Pixel setting / general speccy codingi just started doing some cross-coding with the [url="http://www.bigfatpanda.fsnet.co.uk/z80.html"]Z80 SNA assembler[/url] and an emulator, and this …

    ... hl, de
    ld e, (hl)
    inc hl
    ld d, (hl)
    ex de, hl
    srl e
    add hl, de
    ex de, hl
    ld hl, pixelmsk
    ld ...
    ld b, (hl)
    ex de, hl
    ld a, (hl)
    xor b ...
    Lambchop Lambchop August 2004 Development
  • 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…

    ... 0
    LD HL,gfx
    ADD HL,DE
    ps01:
    HL,DE
    DJNZ ps0


    ps1:
    EX DE,HL
    LD A,(DE)
    LD (HL),A
    INC DE
    INC ...
    robpearmain robpearmain August 2004 Development
  • 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 Note, for 48k spectrum using TASM [code] ; ***********…

    ... 0
    LD HL,gfx
    ADD HL,DE
    ps01:
    HL,DE
    DJNZ ps0


    ps1:
    EX DE,HL
    LD A,(DE)
    LD (HL),A
    INC DE
    INC ...
    robpearmain robpearmain August 2004 Development
  • Smooth Color Masked Sprites using fast page flip on 48kHere is a quick demo of using char based sprites using the Page flip method: a) Background is copied to buffer b) Sprites drawn on buffer c) Buffer …

    ... +1), SP
    EX DE, HL
    LD SP, HL
    EX DE, HL

    LD ...
    ADD HL,DE ; Add onto GFX
    EX DE,HL ; Let DE now point to ...
    robpearmain robpearmain September 2004 Development
  • Smooth Masked Sprites using fast page flip on 48k Part 2Ok, After all the suggestions in Part 1, which were all excellent (Thankyou), I opted on the following: I have 2 x 6k Offscreen areas (Yes, that's …

    ... /> ADD HL,DE ; Add onto GFX
    EX DE,HL ; Let DE now point ... /> LD HL,0
    LD DE,16
    ADD HL,DE
    ... /> LD HL,0
    LD DE,16
    ADD HL,DE
    ...
    robpearmain robpearmain September 2004 Development
  • Smooth Screen Scrolling RoutineHi everyone, this is a follow up to the thread on smooth screen scrolling. As promised here is the code for the routine. It's pretty long and fairl…

    ... L,E


    EX DE,HL ;DE = SCREEN ADDRESS AGAIN

    SBC HL,BC

    EX DE,HL ;DE = SCREEN ADDR.

    EX AF,AF ... NZ,CLOOPB


    EX DE,HL ;DE = SCREEN ADDR.

    ZERO ...
    dmsmith dmsmith September 2004 Development
  • Mode 2 Tile Editor SourceA Timex Mode 2 Tile Editor incorporating a byte mirror table. The compiled version is available in the CSSCGC 2008 collection from the WoS archive. …

    ... jr nz,cp2b_a ;

    ex de,hl ; used to copy block to ... jr nz,cp2b_b ;

    ex de,hl ; used to copy block to ... br /> ld hl,mirror_tbl ;
    add hl,de ;
    ld a,(hl) ;
    ... ld c,l ;

    ex de,hl ; start of channel data to ...
    chev chev January 2007 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…

    ... /> ; in HL
    ex de,hl ; store the offset in DE

    ld hl,$5c10 ... hl,de ; add the offset

    ex de,hl ; put the result back in DE ...

    ; HL now points ...
    chev chev January 2007 Development
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ... 255 into accum??
    sbc hl,de ;move pointer of line to ... /> ex de, hl ;put 224 into hl, byte to be copied into de
    pop hl ... a char
    add hl, de ;goto next line through a ... . . .
    add hl, de ;to posn to be copied
    ex de,hl ;?? but now ...
    bigjon bigjon February 2008 Development
  • CHANS system variableI modified my original code to incorporate Woody's changes and avoid using the stack: [code] org 60000 save_registers: push hl push de push bc …

    ... br /> save_registers:
    push hl
    push de
    push bc
    sbc hl, de ; calculate how much to add ... br /> ex de, hl ; start of channel data to HL
    dec hl
    ... /> pop bc
    pop de
    pop hl

    ret ...
    chev chev September 2008 Development
  • Common pitfalls and solutionsLet's discuss some of the common problems in Speccy programming, and the methods we use to avoid them. For an example, here is a piece of code that …

    ... /> LD HL,#1BB0
    PUSH HL
    LD HL,(#5C4F)
    LD DE,#000F ...
    ADD HL,DE
    LD DE ... ,#1B5E
    EX DE,HL ...
    Hikaru Hikaru August 2010 Development
  • A fast DRAW routineI was investigating how to speed up the line drawing for the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=20225"]BASIC compiler[/URL]…

    ... H, L
    push hl
    ex de, hl ; D,E = y2, ... y2
    exx
    add hl, de ; error -= dX
    bit ...
    exx
    add hl, de ; error -= dY
    ...
    ld de, (SCREEN_ADDR)
    add hl, de ;; Final screen addr ...
    boriel boriel December 2010 Development
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    ... /> add hl,bc
    ex de,hl
    pop hl
    add hl,bc
    ex de,hl ;HL=address ... of location to change
    ld (hl),e ;DE ...
    Battle Bunny Battle Bunny August 2011 Development
  • Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…

    ... hl,hl ; ASCII code * 8
    add hl,hl
    add hl,hl

    ld de ... , faster!

    add hl,de

    ex de,hl ; Put the result in ... DE for draw routine

    Zoltar Zoltar 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…

    ... br /> sbc hl,de
    inc hl
    ld a,(hl) ;initial ... control
    NOTFOR: ex de,hl
    add hl,bc
    ld ... )+(length of variable)
    ex de,hl ;HL=address of variable
    ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • 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…

    ... /> EX DE,HL ;DE=new cursor position
    LD HL,(23641) ;E_LINE
    SBC HL,DE
    hl
    ex de,hl
    add hl,bc ;HL=joined length
    ex de,hl
    ld (hl),e ...
    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 …

    ... pop bc
    pop hl
    ld de,(WORKSP)
    ld ... workspace
    NOTEXT: ex de,hl
    ld (hl),$0d ;followed by ... ld hl,(STKBOT)
    ld de,(WORKSP)
    scf
    sbc hl,de< ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • 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 …

    ... - prepare to subtract.
    SBC HL,DE ; subtract and add back setting ...
    ADD HL,DE ; carry when back at ... /> [CODE]
    ;; ram-check
    EX DE,HL

    ;; RAM-FILL
    antoniovillena antoniovillena April 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…

    ... /> add hl,bc
    ld a,(hl)
    inc hl
    ... pop bc
    SFXRTl1: add hl,de
    ld a,h
    ex de,hl
    add hl,bc
    ex de,hl
    pop ...
    Shando Shando September 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…

    ...
    add hl, de
    ex de, hl
    inc iy
    pop hl
    djnz ...
    add hl, de
    ex de, hl
    inc iyl
    pop hl
    dec ...
    antoniovillena antoniovillena November 2012 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…

    ... /> ;
    l_0d09: inc hl
    push hl
    ld (iy+$00 ... /> push de
    ld hl, $009f
    ex (sp), hl
    push hl
    ... /> add hl, de
    ld e, (hl)
    inc hl
    ld h, (hl)
    pop de
    jp (hl)

    ;; hook- ...
    jp jp July 2013 Hardware
  • Movin And A Groovin Horizontal Flip improvementOn the left is the flip horizontal portion from Andy Pennell'S excellent Movin' & a Groovin' machine code screen routines from Your Spectrum #19 (Oct…

    ...
    ADD HL,DE ADD HL,DE
    ADD IX,DE ADD IX,DE
    DJNZ ... /> FLATTR LD A,(HL) flattr LD A,(HL)
    EX AF,AF' ; no ...
    MatGubbins MatGubbins August 2013 Development
<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
ex 4.4K 7K
hl 6.2K 48K
de 9.7K 27.3K

Related Threads

  • deus ex and deus ex invisible war ?3 on steam.Just downloading these two games at the mo. I think there are a few fans of these games on here, if you want to grab em there cheap on steam at the m…
  • 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…
  • Deus Ex MachinaAm I the only person who loved Deus Ex Machina on the speccy?<br /> Just wondering.<br /> <br /> I've even got the soundtrack that i downloaded as mp…
  • 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 …
  • An ex-Bloodwych fanatic speaks...I've got a s**t-load of maps that I carefully (and painstakingly) made back in the day, with the intention of sending them into YS, only for the maga…
  • 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 …
  • Anyone here an ex speccy-journalist or programmer?Anyone here used to write for the Spectrum magazines or program the Speccy? Just curious ;)
  • ex-YU homepage updatedThe ex-YU Homepage has been updated, after almost 2 years. Added some really nice new stuff, including some commercial games that were developed by e…
  • 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 …

Related Searches

  • ld hl de
  • return to basic hl
  • de spectrum
  • la diosa de cozumel
  • los amores de brunilda
  • call hl
  • viaje al centro de la tierra
  • loading screen viaje al centro de la tierra
  • viaje al centro de la tierra screen
  • en busca de mortadelo
  • escuela de ladrones
  • deus ex machina
  • caf turco com os ex jugoslavos
  • slt format hl
  • 16 bit hl load
  • jp hl
  • ex af carry
  • sub hl de
  • sjasmplus sub hl de
  • ex sp hl

Copyright © 2024 World of Spectrum