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.015s
<1234567…34>
  • Interrupts details questionSuppose I am writing a game and I want to use interrupts to measure time, draw the screen without flicker, maybe to poll keyboard etc. What kinds of …

    ... /> ld bc, 16384
    add hl, bc ; absolute address again
    ld (label2addr(storePtr)), hl
    jp label2addr(interruptEnd)< ... ld bc, 16384+4096
    add hl, bc
    ld (label2addr(storePtr ... code]

    edited to add: at the end it should ...
    Erlstoned Erlstoned 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] ; ***********…

    ... D,0
    LD HL,gfx
    ADD HL,DE
    ps01:
    ps0:
    ADD HL,DE
    DJNZ ps0
    HL now=FA0Ah

    ADD A,(HL) ; Add the contents of HL to ...
    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] ; ***********…

    ... for different gfx)
    ADD HL,DE ; Add DE, so we now have ... /> LD E,A
    ADD HL,DE ; And add that


    HL now=FA0Ah

    ADD A,(HL) ; Add the contents of HL to ...
    robpearmain robpearmain August 2004 Development
  • Anyone know the address mappings...of the hardware resources on the speccy; From the screen display address range to all the hardware control registers. etc. Where can I get access t…

    ...


    CDETECT LD HL,64010 ;address of first sprite ... /> DEC C ;Will add BC & HL later to point to ... decrease this
    ;as HL has been increased.
    < ... ;a collision

    INCPOINTER ADD HL,BC ;no collision so move ...
    dmsmith dmsmith September 2004 Development
  • Collision DetectionHi everyone, This is my first post on WOS. Like most people here I owned a Spectrum when a teenager. At that time I was quite heavily into programmin…

    ...


    CDETECT LD HL,64010 ;address of first sprite ... /> DEC C ;Will add BC & HL later to point to ... decrease this
    ;as HL has been increased.
    < ... ;a collision

    INCPOINTER ADD HL,BC ;no collision so move ...
    dmsmith dmsmith September 2004 Development
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    ... 32768
    LD HL, (23672)
    LD (_RANDOM_SEED), HL ; Initialize the seed ...
    LD HL, (_RANDOM_SEED)
    LD A, H
    ADD A, A ...
    horace horace September 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 …

    ... /> LD HL,(HL1)
    ADD HL,DE
    LD (HL1),HL
    ... ,16
    LD HL,(HL2)
    ADD HL,DE
    LD ... /> LD HL,(HL1)
    ADD HL,DE
    LD (HL1),HL
    ...
    robpearmain robpearmain September 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 …

    ... /> POP BC
    LD SP,HL
    PUSH BC
    PUSH ... br /> ld de,16
    add hl,de
    EXX
    ex ... br /> ld de,16
    add hl,de

    LD A ...
    Alcoholics Anonymous Alcoholics Anonymous September 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 …

    ... IMPORTANT LINE
    ADD HL,DE
    LD (HL1),HL
    EXX
    LD HL,(HL2)
    ADD HL,DE
    LD (HL2 ... ),HL
    [/code]

    ...
    AndyC AndyC September 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 …

    ... LD D,0
    ADD HL,DE ; Add onto GFX
    EX ... br /> LD DE,16
    ADD HL,DE
    EXX
    LD ... br /> LD DE,16
    ADD HL,DE
    EXX
    LD ...
    robpearmain robpearmain September 2004 Development
  • I would like to write emulatorHi guys, I'm new to this forum but I realise that you must get loads of posts from people asking "how do I write an emulator" so I'll try and be spe…

    ... /> [code]LD A,238
    ADD A,1
    [/code]
    add 20 to a 16 bit ... how[/I] you add to it.

    ADD HL,DE for example ... , will affect the carry flag. However INC HL ... even if the value of HL wraps from $FFFF to $ ...
    AndyC AndyC September 2004 Development
  • I would like to write emulatorHi guys, I'm new to this forum but I realise that you must get loads of posts from people asking "how do I write an emulator" so I'll try and be spe…

    ... upon how you add to it.

    ADD HL,DE for example ... , will affect the carry flag. However INC HL ... , even if the value of HL wraps from $FFFF to $0 ...
    MadDoc MadDoc September 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 …

    ... LD D,0
    ADD HL,DE ; Add onto GFX
    ... LD DE,16
    ADD HL,DE
    LD (hl3 ... LD DE,16
    ADD HL,DE
    LD (hl3a ... LD DE,16
    ADD HL,DE
    LD (hl4a ...
    robpearmain robpearmain September 2004 Development
  • Fast division in machine codeHi Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code. Derek [ This Message was edited by: dmsmith on 2004-0…

    ... , GOC wrote:
    equal to, HL. There is some overhead, but ... :

    [code]
    enter: HL = number < 3072
    exit ... : bits 12..5 of HL = int part of num/24 ... d
    rr e
    add hl,de

    ret
    Alcoholics Anonymous Alcoholics Anonymous September 2004 Development
  • Fast division in machine codeHi Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code. Derek [ This Message was edited by: dmsmith on 2004-0…

    ... ,div3table
    ADD HL,DE
    LD E,(HL)
    INC HL ; or just ... even byte...
    LD D,(HL) ; result is now in DE ...
    gasman gasman September 2004 Development
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... />
    Left4: add hl,hl
    adc a,a
    Left3: add hl,hl
    adc ... a,a
    Left2: add hl,hl
    adc ... a,a
    Left1: add hl,hl
    adc ...
    robpearmain robpearmain October 2004 Development
  • Reading the keyboardDoes anyone have a code sample to read the keyboard in machine code ?

    ... key pressed
    ld hl,SPkeytranstbl
    add hl,de

    ... br /> ld e,40
    add hl,de

    .nocaps ... br /> ld e,80
    add hl,de

    .nosym ...
    ld a,(hl) ; a = ascii code
    scf ...
    Alcoholics Anonymous Alcoholics Anonymous November 2004 Development
  • Key Redefine RoutineAnyone written a nice key redefine code snippet?

    ... E
    SLA E
    ADD A,E
    LD E ... D,0
    LD HL,5
    ADD HL,DE
    LD A ... ,(HL)
    RET
    COUNN PUSH ...
    aprisobal aprisobal December 2004 Development
  • Announce Pasmo 0.5.1Hello. New release 0.5.1 of Pasmo, multiplatform Z80 cross-assmbler. The main news are related to macros: the MACRO parameters now are expanded ins…

    ... I reliaze that to add such support would be tricky ...
    if c
    add hl, bc
    rla
    else ...
    ld hl, ($8765)
    or (hl)
    endif
    ...
    jp nc, _uniqLabel_72ndg1
    add hl, bc
    rla
    jp ...
    Erlstoned Erlstoned January 2005 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... /> LD DE,32 ;+ 10
    ADD HL,DE ;+ 15
    POP DE ... ,32 ;+ 7
    ADD A,L ;+ 4 Add 32 to Low part ...
    ADC A,H ;+ 4 Add carry out to High part ...
    cyborg cyborg February 2005 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... L
    PUSH HL
    LD (HL),A
    EX ... AF,AF'
    LD A,31
    ADD ... /> LD DE,32
    ADD HL,DE

    ...
    cyborg cyborg February 2005 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ...
    PUSH HL
    LD (HL),A
    ... EX AF,AF'
    LD A,31
    ADD ... /> LD DE,32
    ADD HL,DE

    ...
    Dr BEEP Dr BEEP February 2005 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ...
    PUSH HL
    LD (HL),A
    ... EX AF,AF'
    LD A,31
    ADD ... /> LD DE,32
    ADD HL,DE

    ...
    Dr BEEP Dr BEEP February 2005 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ...
    PUSH HL
    LD (HL),A
    ... EX AF,AF'
    LD A,31
    ADD ... /> LD DE,32
    ADD HL,DE

    ...
    Mr Millside Mr Millside February 2005 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... ORG 50000

    LD HL,22528
    LD IX,MAP ... ,L ; in fact Add 32
    LD (HL),A
    DEC ...
    LD DE,32
    ADD HL,DE

    DEC C ...
    Dr BEEP Dr BEEP February 2005 Development
  • About z88dk and autoexecsThis weekend I was playing a little with z88dk C cross Compiler. Amazing tool! I have three questions: 1- Does anybody know how to change the initia…

    ...
    ld hl,2
    add hl,sp
    ld a,(hl)
    out ...
    Alcoholics Anonymous Alcoholics Anonymous February 2005 Development
  • How do I convert score to 00000 formatWhat is the quickest and best way in machine code to display the score formatted in zeros. For example, My score is currently 320, so I want it to …

    ... ld a,"0"
    add a,l
    ld ... getdig1: inc a
    add hl,bc
    jr c, ... getdig1
    sbc hl,bc
    ld (de ...
    Woody Woody February 2005 Development
  • T.I.M. - A New Interlace - Demo for DOWNLOADHere's something that's been in the works for quite a while ( mostly in my head ) and recently I've aquired assistance to help it come to fruition. …

    ... />
    ld hl, 32 ;10
    add hl, sp ;11 next ... />

    ld sp, hl ;6


    ... ld a, 32
    add a, l
    ld ... a, l ;4
    add a, 32 ;7
    ... />
    ld hl, 32 ;10
    add hl, sp ;11 next ...
    Fikee Fikee May 2005 Development
  • JSW - Is this possible?There's an object in the Conservatory Roof which I reckon cannot be collected without losing a life. There's a snapshot taken in the Conservatory …

    ... /> ADD HL,HL ; HL = 2*(256*20 + L)
    ADD HL,HL ; HL = 4*(256*20 + L)
    ADD HL,HL ; HL ... ,0 replaces the middle ADD HL,HL with NOP, so HL only gets doubled ...
    andrewbroad andrewbroad June 2005 Games
  • Hi-Score tableThe score in my game occupies 3 bytes. I want to create a hi-score but I'm not sure of the best way to work out where a new score would fit in the ta…

    ... />
    LD HL,4
    ADD HL,DE
    EX DE,HL

    LD HL,NEWSCORE
    Mr Millside Mr Millside June 2005 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
add 20.8K 30K
hl 6.2K 48K

Related Threads

  • what add-ons did.............what add-ons did people buy in the 80's for their zx spectrums? :)
  • Petition to persuade mobygames.com to add the SpectrumAs you may be aware, the excellent multi-format games documentation site [url="http://www.mobygames.com"]www.mobygames.com[/url] includes 36 differen…
  • The worst spectrum add on?I once had a light pen for my Spectrum that was really bad. I cannot remember what company made it. It was supposed to 'draw' by holding it directl…
  • Security Shelter by Add On ElectronicsHi,<br /> <br /> I have a copy of Security Shelter by Add on Electronics which I notice from the Archive is missing in action. <br /> <br /> I was a…
  • What was in the 'Shadow/Unicorn' add on box?'Shadow of The Unicorn'. What was actually contained in the add on box? Was it just extra memory?
  • CRASH called it "One of the best all-round music add-ons"!and from Sinclair User:<br /> <br /> "Its pedigree is interesting, too. The Music Machine has been developed by a group of ex-Sinclair employees - ca…
  • 3D Star Wars by ADD ON ELECTRONICS for SaleI have a copy of 3D Star Wars by Add On Electronics. As with all my other stuff, it was going on Ebay but I've been told that games from this compan…
  • 3D Star Wars by ADD ON ELECTRONICS for SaleI have a copy of 3D Star Wars by Add On Electronics. As with all my other stuff, it was going on Ebay but I've been told that games from this compan…
  • Add the numbers?Yesterday morning (about 1am) I was flicking through cable to see what was on, and I turned to ITV and that boring space filler "The Mint" was on. An…
  • Bonus materials add-ons?Very first impressions about Andrew's superb book are just started to come in and we are all very happy about it. We all also get a brief note includ…

Related Searches

  • ld hl de
  • how to add picture post
  • return to basic hl
  • shortest add 32
  • how to add 32
  • add video
  • add more ram to 48k spectrum
  • add game to sinclair infoseek
  • add machine code sprite movement to basic
  • add ix
  • add constant value to ix
  • call hl
  • add pictures to post
  • add music a g d
  • add ay music to a game
  • add z80 to start of tap file
  • add bas file to start of tap
  • add a letter
  • add adc hl a
  • add hl

Copyright © 2024 World of Spectrum