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
<1…14151617181920…34>
  • Delay routineAs some people are aware, I have recently starting writing a [url=http://fuse-emulator.svn.sourceforge.net/viewvc/fuse-emulator/trunk/fusetest/]autom…

    ...
    wait1 ld de,-d3 ; 10
    add hl,de ; 11
    ... solution using 16 bit ADD HL,DE loop would use 2 more ...
    wait1 ld de,-d3 ; 10
    add hl,de ; 11
    ...
    Patrik Rak Patrik Rak May 2007 Development
  • Delay routineAs some people are aware, I have recently starting writing a [url=http://fuse-emulator.svn.sourceforge.net/viewvc/fuse-emulator/trunk/fusetest/]autom…

    ... ,skip2 ; 12/7
    cp (hl) ; 7 16/18
    skip2 ...
    wait1 ld de,-d3 ; 10
    add hl,de ; 11
    jr ...
    Patrik Rak Patrik Rak June 2007 Development
  • 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…

    ... hl
    push de
    ld de,33
    add hl,de
    pop de
    push hl
    rl (hl)
    dec hl
    rl (hl ...
    wokani wokani July 2007 Development
  • A few questions about machine codeOh no... another noob. I'm giving my first steps in assembler (finally, after 20 years stuck in BASIC). I read a SU article explaining that if I wan…

    ... ]di
    ld de,23296
    ld hl,24785
    ld bc ... to move BC bytes, FROM HL to DE. It's a block ... location pointed at by HL, increments both HL and DE, Decrements BC and ... - Increment - Repeat. Imagine the registers HL DE etc as variable names.
    DEATH DEATH August 2007 Sinclair Miscellaneous
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    XOR A ; Clear Carry flag and zero A
    SBC HL,DE ; Compare HL and DE
    OR H
    OR L
    JP Z,match ; Zero flag will be set if HL=DE
    AndyC AndyC September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    ... zero A
    SBC HL,DE ; Compare HL and DE
    OR H
    HL=DE[/QUOTE]



    AND A
    SBC HL,DE
    JP Z,MATCH
    Dr BEEP Dr BEEP September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    [QUOTE=Dr BEEP;213122]AND A
    SBC HL,DE
    JP Z,MATCH
    [/QUOTE]

    That's what happens when I try to write code *before* coffee!

    Neat answer. :)
    AndyC AndyC September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    [quote=Dr BEEP;213122]AND A
    SBC HL,DE
    JP Z,MATCH


    is enough!
    AND A used to save the value of A and only reset the carryflag[/quote]
    Yeah, I was gonna say that...
    rich_chandler rich_chandler September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    If you really need COMPARE (that is, content of the registers should remain unchanged), you can do this:

    or a
    sbc hl,de
    add hl,de
    baze baze September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    ... /> or a
    sbc hl,de
    add hl,de[/QUOTE]


    HL,DE
    In that case I ... a
    push hl
    sbc hl,de
    pop hl
    jr z ... assume that the value in HL/DE run from 0 to 65535 ...
    Dr BEEP Dr BEEP September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    ... ]
    or a
    sbc hl,de
    jp z, match
    Alcoholics Anonymous Alcoholics Anonymous September 2007 Development
  • Bubble Bobble EditI thought I might have a go at editing Bubble Bobble myself after reading this... [url]http://www.worldofspectrum.org/forums/showthread.php?t=15452[…

    ... /> ld de,858c
    add hl,de
    ld a,(hl) ;grab ... our colours
    ld hl,# ... 1=big
    ld (hl),0
    rla ; ... carry
    rl (hl) ;and shift into 860c ...
    Mr. Anonymous Mr. Anonymous September 2007 Development
  • IY RegisterIve got a really bizarre bug, and I have only just started using the IY register. I seem to remember reading somewhere in a programming book, to neve…

    [QUOTE=carlinski;213020]Also, is there an easy way of checking a double register (HL, DE, BC) for zero?[/QUOTE]

    LD A,H
    OR L
    Metalbrain Metalbrain September 2007 Development
  • Duel of the games 4! Super conundrum! Manic Miner vs Jet Set WillyGo on I dares ya, to decide which one is best, it's popped up in many, many previous threads, so do it, decide the better of the 2 :D

    ... -game tune
    #8B50: ADD HL,DE
    #8B51: LD A,(#85CC ... : NEG
    #8B5A: ADD A,(HL) ; add #1C - lives*4 to ...
    andrewbroad andrewbroad November 2007 Games
  • Duel of the games 4! Super conundrum! Manic Miner vs Jet Set WillyGo on I dares ya, to decide which one is best, it's popped up in many, many previous threads, so do it, decide the better of the 2 :D

    ... -game tune
    #8B50: ADD HL,DE
    #8B51: LD A,(#85CC ... : NEG
    #8B5A: ADD A,(HL) ; add #1C - lives*4 to ...
    zxspecticle zxspecticle November 2007 Games
  • Game EditorsWell as the title says, this is a query about game editors, specifically the ones for Gremlin games... Many moons ago, Your Sinclair published (I th…

    ... 0ats
    l_f4a9: ld a, (hl) ; f4a9 7e $07ts
    ... 27 $0ats
    sbc hl, de ; f4bc ed 52 $0fts ... f4c8 a7 $04ts
    sbc hl, de ; f4c9 ed 52 $0fts< ... 19 $0ats
    sbc hl, de ; f4bc ed 52 $0fts ... f4c8 a7 $04ts
    sbc hl, de ; f4c9 ed 52 $0fts< ...
    jp jp January 2008 Games
  • 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…

    ... scrolldown

    ld hl,$56e0 ; display file address for ... br /> ld l,e ; hl = de = destination address for pixel row ... /> .enter

    push hl
    ldi x 32 ; repeat ... row
    pop de ; address of pixel ...
    Alcoholics Anonymous Alcoholics Anonymous February 2008 Development
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ...

    ; uses hl, de, a
    RandomBit: ld hl,(RandomSeed)
    ld ... /> rr l
    ld (RandomSeed),hl
    ld a,0
    Woody Woody March 2008 Sinclair Basic
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... minor. If I used BC, HL or DE instead (with, as you ... D registers and "read from" HL DE or BC every loop.
    BloodBaz BloodBaz April 2008 Sinclair Basic
  • If you've got a real working MF128,IF1, and MDR combo can I ask a favour?So, if you do have a real Multiface 128, Interface 1, Microdrive and, oh yeah, a Spectrum (48k or 128k) that are all working, can I ask a favour...? …

    ... current error return
    push hl ; and preserve
    ;
    ... call routine ;
    ;
    pop hl ; restore error return
    ld ... in de pair
    ; and if1 hook-31 address in hl pair ... ; clear carry flag
    sbc hl,de ; subtract
    jr z,quit ...
    jp jp April 2008 Hardware
  • A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …

    ... HL, return values are returned in HL for pointers or ints, or HL DE ...
    Winston Winston April 2008 Development
  • A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …

    ... HL, return values are returned in HL for pointers or ints, or HL DE ... /> - For 16 bits operands : HL as parameter; HL , DE for two parameters
    HL, HLDE, C EDLH are used ...
    boriel boriel April 2008 Development
  • Bit 3 And Bit 5 Of The Flag RegisterHi, I know that bits 3 and 5 are "undocumented" but does anyone know where I can find data on how they are handled? For instance, it would seem th…

    ... /> For instance, in the ADD HL, DE instruction (using Phil's test ... adding to the 16-bit HL register pair. Do I use ...
    MadDoc MadDoc June 2008 Emulators
  • VIC 20 emulation on the SpectrumI'm sure most people are aware of the my attempt at bringing the full Commodore experience to Sinclair users with the "Twenty Commodes" program. It e…

    ...
    hl'= S
    iyl= X
    iyh= Y
    de = PC ... D I B flag
    hl, de', af = free registers for multiple ...

    INC DE
    LD A,(DE)
    LD L,A ... H,B
    LD H,(HL)
    JP (HL)
    [/code]
    Dr BEEP Dr BEEP August 2008 Sinclair Miscellaneous
  • BASin r14c - maintenance releaseAfter the recent discussions, BASin has been released as version 14c. It's only a maintenance release, and some of the really big new features are un…

    ... Seed
    LD HL,$D0D0
    LD (SEED),HL
    DI ... />

    RAND16 LD DE,0 ; Seed is usually 0 ... /> SBC HL,DE
    SBC A,0
    SBC HL,DE
    ... LD E,A
    SBC HL,DE
    JR NC,RAND
    INC HL
    RAND LD (RAND16+1 ...
    Digital Prawn Digital Prawn September 2008 Emulators
  • Design Design / Crystal ComputingNice post on [URL="http://groups.google.com/group/comp.sys.sinclair/browse_thread/thread/56e6ebdedc6930ac#"]comp.sys.sinclair[/URL] about [URL="http:…

    [quote=Marko;305953]Is that so? You'd think he'd know that there's no such instruction as LD A, (IX) then.[/quote]

    really?? I always thought there was a ld a,(hl+de+bc) instruction.... lol
    polomint polomint October 2008 Sinclair Miscellaneous
  • Design Design / Crystal ComputingNice post on [URL="http://groups.google.com/group/comp.sys.sinclair/browse_thread/thread/56e6ebdedc6930ac#"]comp.sys.sinclair[/URL] about [URL="http:…

    ... /> ret
    show ld a,(hl) ; fetch alien status.
    cp ... .
    ld d,(hl) ; get coord.
    inc hl ; point to y ... alien table entry.
    add hl,de ; point to next alien.
    Arjun Arjun October 2008 Sinclair Miscellaneous
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... into a

    POP HL ; retrieve pointer screen byte

    OR (HL) ; merge with current star byte ...
    SBC HL,DE
    SBC A,0
    SBC HL,DE
    LD ... /> LD E,A
    SBC HL,DE
    JR NC,RAND
    Digital Prawn Digital Prawn December 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... HL,STARPOS_X
    ADD HL,BC
    LD E,(HL)

    LD HL ... ,STARPOS_Y
    ADD HL,BC
    LD D,(HL ...
    SBC HL,DE
    SBC A,0
    SBC HL,DE
    LD ... /> LD E,A
    SBC HL,DE
    JR NC,RAND
    Digital Prawn Digital Prawn December 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... HL,STARPOS_X
    ADD HL,BC
    LD E,(HL)

    LD HL ... ,STARPOS_Y
    ADD HL,BC
    LD D,(HL ...
    SBC HL,DE
    SBC A,0
    SBC HL,DE
    LD ... /> LD E,A
    SBC HL,DE
    JR NC,RAND
    Digital Prawn Digital Prawn December 2008 Development
<1…14151617181920…34>

Latest Posts

  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 9:55PM
  • Goodbye Z80
    moggy on 9:07PM
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

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