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.099s
<1…26272829303132…34>
  • Idiots Guide......To machine code, or assembler language...whatever the appropriate term is Basically at this stage I want to fiddle about and try and get used to…

    ... The standard C libraries are a combination of common system ... br />
    ld hl,10
    add hl,sp
    ld sp ... loop:

    ld a,(hl)
    or a
    ret z ; basic ... can increase productivity greatly. A C compiler is not possible ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • Pac-Land: can be coloured?All versions of this game are full coloured, but not the Spectrum version. It has large sprites, but maybe the scroll is too fine to make a coloured …

    ... (HL),A ;original code
    LD B,A

    LD A,H
    ADD A ... /> EX AF,AF'
    LD (HL),A ;write attribute
    EX AF ... />
    LD A,B
    LD B,0
    ADD HL,BC
    LD (HL),A ;write attribute
    EX AF ...
    Ralf Ralf January 2014 Games
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... di
    ld hl,$0000
    add hl,sp ;HL=stack pointer
    ... /> ex de,hl
    and a
    sbc hl,de ;(RAMTOP)- ... /> ex de,hl
    and a
    sbc hl,de
    ...
    Speccy_James Speccy_James January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... add a,a
    jr nz,m2
    ld a,(hl)
    inc hl ... add a,a
    jr nz,n6
    ld a,(hl)
    inc hl ... ex af,af'
    add a,b
    ld b ... b
    add hl,de
    ld c,a
    ...
    FrankT FrankT January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... add a,a
    jr nz,m2
    ld a,(hl)
    inc hl ... add a,a
    jr nz,n6
    ld a,(hl)
    inc hl ... ex af,af'
    add a,b
    ld b ... b
    add hl,de
    ld c,a
    ...
    Speccy_James Speccy_James January 2014 Development
  • Math Quiz - MultiplicationThe topic is fast multiplication routines, from 8x8 to 32x32 and all points in between. These functions sit underneath floating point libraries, gen…

    ... if the other operand is a constant. In this case Metalbrain ... ; first
    add hl, hl
    IF data & second
    add hl, de
    IF data = 0
    ld hl, 0
    ELSE
    ld ...
    antoniovillena antoniovillena February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... /> ld l,a
    add hl,hl
    add hl,hl
    add hl,hl
    add hl,de ;HL=start of graphic ...
    Battle Bunny Battle Bunny February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... de,hl
    ld hl,13616
    add hl,de
    ld a,(hl) ... ;get required attribute
    ex de,hl ... de
    pop hl
    add hl,de ;starting column< ...
    Battle Bunny Battle Bunny February 2014 Development
  • Deterministic random number generatorI'm looking for a random number generator in assembly which, given a seed, the generated sequence is always the same. You change the seed, you get a …

    ... bit ints and always returning a positive result). You can ... (void)
    ;
    ; Generates a random number in the range ... /> ; uses : af, de, hl

    ld hl,(__seed)
    ld de ... /> ld h,a

    ld a,d
    srl a
    xor ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... ]
    ld hl,$57ff
    add hl,de
    ld a,h
    cp ... to stored attirbutes
    add hl,de
    ld a,(hl) ;get required attribute ...
    Battle Bunny Battle Bunny February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... /> ld hl,$4000
    ld a,$23 ;A =INC HL
    ld (INCDEC),a
    call LOOPGO1
    dec hl ...
    Battle Bunny Battle Bunny February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... :
    ld hl,$57ff
    add hl,de
    ld a,h
    cp ... /> ld a,8
    add a,(hl) ;increment screen PAPER indirectly
    ld (hl),a ;and ...
    Battle Bunny Battle Bunny February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... a
    and $e0
    add a,l
    ld l,a
    ld a ...
    add a,$58
    ld h,a ; Attribute ... a
    and $e0
    add a,l
    ld l,a
    ld a ... br /> ld (hl),a
    inc hl
    djnz loop0 ...
    Jerri Jerri February 2014 Development
  • IX register wonderings...***noob alert*** I'm doing a lot of these in my program: ld a,(ix+n) cp 0 jp z I know you can do things like this: dec (ix+n) but can you test …

    ... a, (hl) ;read dx
    inc hl
    add a, (hl) ;dx + x
    ld (hl), a ... ;store x
    inc hl ... dx:
    ld a, 2
    x:
    add a, 67
    ld ... (x+1), a
    [/CODE]< ...
    catmeows catmeows February 2014 Development
  • Is ESXDOS flexible enough to incorporate e.g. Spectranet commands?I was just discussing the idea with someone about the wish some people have to be able to combine interfaces such as DivIDE (Plus) / DivMMC EnJOY! wi…

    ... />
    cpi ; hl++, bc--

    ld a,(hl) ; a = next char to ... ; accept plus sign, do not add to buffer

    ... no compromises. I should add those numbers do include some ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Hardware
  • Pac-Land: can be coloured?All versions of this game are full coloured, but not the Spectrum version. It has large sprites, but maybe the scroll is too fine to make a coloured …

    ... A,(HL)
    AND 11000111b ;black paper
    LD (HL),A
    CPI ;INC HL ... HL),A ;original code
    LD B,A

    LD A,H
    ADD A ... AF,AF'
    LD (HL),A ;write attribute
    ... /> LD A,B
    LD B,0
    ADD HL,BC < ...
    Ralf Ralf February 2014 Games
  • Using the stack to blit bufferI was using a ldir to blit my back buffer to the screen RAM, and it was working pretty well if not rather slow. After reading about using the stack …

    ... /> ld (cred_adr_to+1),hl
    ld a,#5f
    ld ... br /> add hl,de

    ld (cred_adr_2+1),hl
    ... /> LD A,L
    ADD A,32
    LD L,A
    ... ret C
    LD A ...
    VBI VBI February 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... TEXTPRINT
    ld a,(ix+0) ;fetch a new character code ... a
    ld h,0
    add hl,hl ;HL=HL*8
    add hl,hl
    add hl,hl
    add hl,bc ;HL ... br /> TPBLP
    ld a,(hl) ;get it on the ... From there on, you can add per-tile color, change ...
    Hikaru Hikaru February 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... ,a
    ld h,0
    add hl,hl ;HL=HL*8
    add hl,hl
    add hl,hl
    add hl,hl
    add hl,hl ;HL=HL ...
    alienbanana alienbanana February 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... tile y)
    call get_screen_location ; HL now contains screen position to ... byte from tile
    ld (hl),a ; put on screen
    inc ... (B = row, C = column)
    add a,64 ; then CALL this routine ... br /> rrca
    add a,c
    ld l,a
    ret
    Morkin Morkin February 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... tile y)
    call get_screen_location ; HL now contains screen position to ... byte from tile
    ld (hl),a ; put on screen
    inc ... (B = row, C = column)
    add a,64 ; then CALL this routine ... br /> rrca
    add a,c
    ld l,a
    ret
    alienbanana alienbanana March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... from tile
    ld (hl),a ; put on screen
    add a,64 ; then CALL this routine ... rrca
    add a,c
    ld l,a
    ret ... ld bc,767
    ld (hl),a
    ldir

    alienbanana alienbanana March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... a tile it always has the same colours then add ... ( instead of 8 bytes add an extra byte ) , ... read colour
    ld (hl),a
    inc de ; point ... br /> call get_screen_location ; HL now contains screen position ... ; read colour
    ld (hl),a
    ; dont forget now ...
    seedy1812 seedy1812 March 2014 Development
  • that "listing variables during runtime" thingWell, I did eventually finish this, but with my meds playing up I don't have much time each day that I can spend at the computer, so it's taken rathe…

    ... feature from DumpVars which assigns a separate variables area for ... using (or not using) in a program, finding redundant names, ... br /> FOR a=1 TO 7: READ v$(a): NEXT a:
    ... br /> FOR a=2 TO 7: PRINT a;" = ";v$(a): NEXT a:
    INPUT ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... /> ld a,b
    sra a
    sra a
    sra a
    add a,88 ... -ordinates
    call get_screen_attr ; returns HL containing attribute co-ordinates on ... of the tile
    ld (hl),a ; stick it in the right ...
    Morkin Morkin March 2014 Development
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... (HL),A
    INC DE
    INC HL
    LD A,(DE)
    LD (HL),A ...
    INC DE

    ADD HL ...
    MatGubbins MatGubbins March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... y)
    call get_screen_location ; HL now contains screen position to ... byte from tile
    ld (hl),a ; put on screen
    inc ... (B = row, C = column)
    add a,64 ; then CALL this routine ... br /> rrca
    add a,c
    ld l,a
    ret[/COLOR ...
    alienbanana alienbanana March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... byte from tile
    ld (hl),a ; put on screen
    ... /> call get_screen_location ; returns HL containing attribute co-ordinates on ... the tile
    ld (hl),a ; stick it in the ... ld a,b
    sra a
    sra a
    sra a
    add a,88 ...
    alienbanana alienbanana March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... byte from tile
    ld (hl),a ; put on screen
    inc ... of the tile
    ld (hl),a ; stick it in the right ... /> ld a,b
    sra a
    sra a
    sra a
    add a,88 ... /> Also, notice the PUSH HL and POP HL. This saves the screen ...
    polomint polomint March 2014 Development
<1…26272829303132…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
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 adc hl a
  • how do i add a game
  • add hl

Copyright © 2024 World of Spectrum