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.141s
<1…567891011…34>
  • Z80 coders compoIf you're interested in Z80 coders compo, visit my page [url="http://mbr.nm.ru/compo.html"]http://mbr.nm.ru/compo.html[/url]

    ... s
    LD D,A ; save rest
    ADD 156 ; count 100 ...
    LD (HL),C ; store 10's
    ADD A,#3A ; compute 1 ... ; to 1's
    LD (HL),A ; store 1's
    RET ...
    Dr BEEP Dr BEEP November 2003 Development
  • Strange layout of Spectrum video memoryHello, does anyone have an idea why the Spectrum's video memory has such a strange layout? I understand that a resolution of 256x192 is an easy mean…

    ... HL,(23606)
    LD DE,512
    ADD HL,DE
    EX DE,HL ... ; DE holds a printable char ...
    LD HL,16384 ; ... B,8
    LOOP LD (HL),A
    INC DE
    ...
    Dr BEEP Dr BEEP August 2004 Sinclair Miscellaneous
  • 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 …

    ...
    ADD HL,BC
    LD A,(HL) ; get pixelpointer
    EX DE,HL ; get ... address
    XOR (HL) ; reset pixel
    LD (HL),A ; put back on ...
    Dr BEEP Dr BEEP August 2004 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 …

    ... /> LD H,LINEPTRS/256
    ADD A,(HL)
    INC H
    LD ... /> ADD A,E
    LD E,A
    LD A,(DE)
    XOR (HL)
    LD (HL),A
    ADD A,E
    LD E,A

    use ...
    dmsmith dmsmith August 2004 Development
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ... ADD A,A
    ADD A,L
    LD L,A
    LD SP,HL ... /> LD HL,JUMPTAB2
    ADD A,A
    ADD A,A
    ADD A,L
    LD L,A
    LD SP,HL ... H,SCRTAB/256
    ADD A,(HL)
    INC H< ...
    dmsmith dmsmith August 2004 Development
  • 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 a, (hl)
    xor 255
    ld (hl), a

    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] ; ***********…

    ... frames
    LD B,A
    ps0:
    ADD HL,DE
    DJNZ ... =FA0Ah

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

    ... =FA0Ah

    ADD A,(HL) ; Add the contents of HL to A
    ; So at ... =FA0Ah

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

    ... /> DEC C ;Will add BC & HL later to point to ... ;as HL has been increased.

    LD A,E ;A now equals ... C ;
    LD A,D ;
    SUB (HL) ;same as above ... is
    ;a collision

    INCPOINTER ADD HL,BC ;no collision ...
    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…

    ... /> DEC C ;Will add BC & HL later to point to ... ;as HL has been increased.

    LD A,E ;A now equals ... C ;
    LD A,D ;
    SUB (HL) ;same as above ... is
    ;a collision

    INCPOINTER ADD HL,BC ;no collision ...
    dmsmith dmsmith 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 …

    ... /> ADD HL,DE
    LD (HL2),HL

    LD A,(COUNT)
    DEC A ... =FA0AH

    ADD A,(HL) ; ADD THE CONTENTS OF HL TO A
    ; SO AT ...
    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 …

    ... /> LD E,A
    LD D,0
    ADD HL,DE ; Add onto GFX ... =FA0AH

    ADD A,(HL) ; ADD THE CONTENTS OF HL TO A
    ; SO AT ...
    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 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 ...
    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 E,A
    LD D,0
    ADD HL,DE ; Add onto GFX ... =FA0AH

    ADD A,(HL) ; ADD THE CONTENTS OF HL TO A
    ; SO AT ...
    robpearmain robpearmain 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…

    ... by inverse gfx
    ld (hl), a ;put down
    inc de ... XOR but OR
    ld (hl), a
    inc de
    inc ... /> and h
    add a, 8
    ld h, a
    ret
    Fikee Fikee October 2004 Development
  • How can I scroll a line of text and wrap perfectlyI know this is easy for most of you but for some reason I am messing it up. In Assembly Language I want to do the following: I have 1 line of text …

    ... of the line) then POP HL, do a RLC H, RLC L ... again, POP HL, LD DE,0, ADC HL,DE, PUSH HL and you should ... okay.

    Then have a look for any optimisations you ...
    cyborg cyborg October 2004 Development
  • Reading the keyboardDoes anyone have a code sample to read the keyboard in machine code ?

    ... br /> ld hl,SPkeytranstbl
    add hl,de

    ld a,$fe ; check ... 40
    add hl,de

    .nocaps
    ld a,f ; ... 80
    add hl,de

    .nosym
    ld a,(hl) ; a = ascii code ...
    Alcoholics Anonymous Alcoholics Anonymous November 2004 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…

    ... /> ADD A,E
    LD E,A
    LD A,(DE)
    NOTDIRTILE LD (HL),A ... HL
    LD (HL),A
    EX AF,AF'
    LD A,31
    ADD A ...
    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…

    ... HL
    LD (HL),A
    EX AF,AF'
    LD A,31
    ADD A ... ,L
    LD L,A
    EX AF,AF'
    LD (HL),A ...
    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…

    ... HL
    LD (HL),A
    EX AF,AF'
    LD A,31
    ADD A ... ,L
    LD L,A
    EX AF,AF'
    LD (HL),A ...
    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…

    ... HL
    LD (HL),A
    EX AF,AF'
    LD A,31
    ADD A ... ,L
    LD L,A
    EX AF,AF'
    LD (HL),A ...
    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…

    ... )
    LD A,(DE)
    NOTDIRTILE LD (HL),A
    INC ... HL),A
    SET 5,L ; in fact Add 32
    LD (HL),A< ... you added 32
    LD (HL),A
    LD L,E ; ...
    Dr BEEP Dr BEEP 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 …

    ... />
    score add a,(hl) ; add to this column.
    ld (hl),a ; new value.
    ld (hl),a
    dec hl ; back one column.
    add 50 to the score simply point HL at the ...
    jonathan jonathan 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 …

    ... g: Add 50

    ld hl,column10
    ld a,5< ... score:
    add a,(hl) ; add to this column.
    ld (hl),a ; new value.
    ld (hl),a
    dec hl ; back one column.
    robpearmain robpearmain February 2005 Development
  • How do I get a random numberHi, I need a simple routine to get a random number from 1 to 4. I don't need nothing very complex or that much random, it just have to produce diffe…

    Random:
    push hl
    ld a,r
    ld hl,RandSeed
    add a,(hl)
    rrc a
    ld (hl),a
    pop hl
    ret

    RandSeed:
    defb 91
    dansauk dansauk May 2005 Development
  • How do I get a random numberHi, I need a simple routine to get a random number from 1 to 4. I don't need nothing very complex or that much random, it just have to produce diffe…

    ... hl,23672
    add a,(hl)
    ld hl,RandSeed
    add a,(hl)
    rrca
    ld (hl),a ...
    pop hl ...
    Dr BEEP Dr BEEP May 2005 Development
  • 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…

    ... (HL),A
    DEC HL
    DEC DE
    LD A,(DE)
    LD (HL),A ... />
    LD HL,4
    ADD HL,DE
    EX DE,HL

    Mr Millside Mr Millside June 2005 Development
  • 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…

    ... (HL),A
    DEC HL
    DEC DE
    LD A,(DE)
    LD (HL),A ... DE,HL
    ADD HL,BC
    EX DE,HL
    LD HL,NEWSCORE
    Dr BEEP Dr BEEP June 2005 Development
  • 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…

    ... (HL),A
    DEC HL
    DEC DE
    LD A,(DE)
    LD (HL),A ... />
    LD HL,4
    ADD HL,DE
    EX DE,HL

    Mr Millside Mr Millside June 2005 Development
<1…567891011…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
adc 362 761
hl 6.2K 48K
a 589.5K 1.7M

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Add quite a lot of items to my site and a Make an Offer Button.Hi everyone, I asked for some feedback on my site a month or so ago ([URL="http://www.worldofspectrum.org/forums/showthread.php?t=33521"]link[/URL]).…
  • Take a game - add a letterBecause all good threads deserve a sequel. Same as before but adding a letter so:<br /> <br /> Beach Head becomes Bleach Head, the adventures of a bl…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on

Related Searches

  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • create a batch file screen
  • change a letter
  • ld hl de
  • is there a system test for the spectrum
  • is there a system test tape for the spectrum
  • how to do a tzx file
  • how to create a tzx file
  • how to make a tzx file
  • add music a g d
  • add ay music to a game
  • add a letter
  • how do i comment add a post
  • how do you add a post
  • how do i add code to a game
  • add hl a
  • how do i add a game
  • add hl

Copyright © 2024 World of Spectrum