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.101s
<1…28293031323334>
  • 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,(de)
    ld (hl),a
    inc h
    ld a,(de)
    ld (hl),a ; print the colour
    ld a,b
    sra a
    sra a
    sra a
    add a,88 ...
    Morkin Morkin 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…

    ... :

    ld a,(de)
    ld (hl),a
    inc h
    ld a,(de)
    ld (hl),a ; print the colour
    ld a,b
    sra a
    sra a
    sra a
    add a,88 ...
    alienbanana alienbanana March 2014 Development
  • Questions about Vortex Tracker II exported songsHi, I have been experimenting with Vortex Tracker II lately and have a couple of questions. By exporting the song to TAP format, a file is generated…

    ... e. which lines should I add to it? (Please note that ... #fe00
    ld hl,#fe00
    ld a,h
    ld ... /> im 2
    dec a
    ld (hl),a
    inc l
    inc h
    ld (hl),a
    ;make interrupt executor
    push af,hl,de,bc,af
    ...
    Jerri Jerri March 2014 Development
  • writing incrementally to tape without leadersI want to be able to write intermittently & incrementally to some sequential medium which is supported on any Spectrum (emulator, ie. tape); eg. [cod…

    ... H,0
    ADD HL,DE
    LD (HL),A
    INC L
    LD (OFFSET),HL
    RET ... /> LD DE,15
    ADD HL,DE ; HL=>'P' output address
    HL
    LD (HL),D
    RESET
    XOR A
    LD (OFFSET),A ...
    Jonathan Harston Jonathan Harston March 2014 Development
  • ZX Alien BreedNot sure if this has been mentioned already (I did trawl the threads but couldn't see anything :smile: ), but I've always hankered after a Speccy Ali…

    ... a look :-)


    [CODE]drawsprite:
    ld hl,(sprloc) ;Load HL ... height
    ld a,(sprwide) ;Load counter ... ld a,(de) ;load A with sprite byte
    ld (hl),a ...
    add hl,de ;Add 30 to HL to start ...
    LuMan LuMan March 2014 New game ideas
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... ld b, 0
    add a, (hl)
    ld (hl), a
    cp 10
    ld (hl), a
    dec hl
    ld a, b
    jp ...
    Mr Millside Mr Millside March 2014 Development
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... altered something I found in a game!) about 25 years ... find it I'll plonk a link to the image ... . It just took a value in a 16 bit register and ... added it to a series of bytes (from ... 07 (representing 21087)

    Add HL=001A (26)

    ...
    jamorski jamorski March 2014 Development
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... ld a,(hl) ; current value of digit.
    add a,b ; add points ... to this digit.
    ld (hl),a ; ... subtract 10.
    ld (hl),a ; put new character back ...
    R-Tape R-Tape March 2014 Development
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... A ;find digit
    SBC HL,DE
    JR NC,TypeScoreDigit11
    ADD HL ... ,DE
    DEC A

    ... EXX
    PUSH HL ;store ... CALL TypeNumber
    POP HL
    INC L ;screen ...
    Ralf Ralf March 2014 Development
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... A ;find digit
    SBC HL,DE
    JR NC,TypeScoreDigit11
    ADD HL ... ,DE
    DEC A

    ... EXX
    PUSH HL ;store ... CALL TypeNumber
    POP HL
    INC L ;screen ...
    polomint polomint March 2014 Development
  • Multiply by 48Is there a 'cheat' to multiply by 48 in Z80? I have a table of sprites 48 bytes each entry, and I want to be able to offset my pointer with a simpl…

    ... ;

    [CODE] ld a,number
    add a,a
    ld h,0 ... /> ld l,a
    ld de,table
    add hl,de
    ld ... e,(hl)
    inc hl
    ld ...
    Sokurah Sokurah March 2014 Development
  • Multiply by 48Is there a 'cheat' to multiply by 48 in Z80? I have a table of sprites 48 bytes each entry, and I want to be able to offset my pointer with a simpl…

    catmeows, cool!

    ld a,num sprite
    ld l,a
    ld h,0
    add hl, hl ;x2
    add hl, hl ;x4
    add hl, hl ;x8
    add hl, hl ;x16
    push hl
    add hl, hl ;x32
    pop de
    add hl, de ;x48
    VBI VBI March 2014 Development
  • Multiply by 48Is there a 'cheat' to multiply by 48 in Z80? I have a table of sprites 48 bytes each entry, and I want to be able to offset my pointer with a simpl…

    ... L,A ;put sprite no. into HL
    ld H,$00 ;
    add HL,HL ... ;x 2
    add HL,HL ;x 4
    add HL,HL ;x 8
    add HL,HL ;x ... ;
    add HL,HL ;x 32
    add HL,BC ;add (HL x 16)
    …
    jamorski jamorski March 2014 Development
  • JP (HL) confusionokay.... JP nn will jump to memory address nn. JP (HL) ,I assumed would read the contents of memory address HL and jump to the location and be a gre…

    ... a waste of instruction set space to have both ADD HL, ... SP and LD HL,SP, although you ... and the i8080 only had ADD HL,SP, which it named ' ... DAD SP' (Double-byte ADd Stack Pointer). This does follow ... IY before doing 'ADD IX,SP' or 'ADD IY,SP', ...
    zub zub March 2014 Development
  • Multiply by 48Is there a 'cheat' to multiply by 48 in Z80? I have a table of sprites 48 bytes each entry, and I want to be able to offset my pointer with a simpl…

    [QUOTE=Atari_Jetman;759633]Is there a 'cheat' to multiply by 48 ... /> ADD HL,DE ; *2+1 = *3
    ADD HL,HL ; *6
    ADD HL,HL ; *12
    ADD HL,HL ; *24 ...
    ADD HL,HL ; *48
    Jonathan Harston Jonathan Harston March 2014 Development
  • Multiply by 48Is there a 'cheat' to multiply by 48 in Z80? I have a table of sprites 48 bytes each entry, and I want to be able to offset my pointer with a simpl…

    ... = a
    add hl, hl ; hl = 2a
    add hl, de ; hl = 3a
    add hl, hl ; hl = 6a
    add hl, hl ; hl = 12a
    add hl, hl ; hl ...
    Einar Saukas Einar Saukas March 2014 Development
  • JP (HL) confusionokay.... JP nn will jump to memory address nn. JP (HL) ,I assumed would read the contents of memory address HL and jump to the location and be a gre…

    ... a kind of next value - so have to add 2x INC HL ... correct tile type
    LD A,(HL) ; A store 'L' of jumptable ... /> LD L,A ; flip A to L
    JP (HL) ; do the ...
    bobs bobs March 2014 Development
  • JP (HL) confusionokay.... JP nn will jump to memory address nn. JP (HL) ,I assumed would read the contents of memory address HL and jump to the location and be a gre…

    ... /> LD hl, 0 ;make hl zero
    LD l,a ;hl = a
    ADD hl,hl ;double hl, as ... lookup uses 16-bit values
    ADD hl,de ;hl ...
    LuMan LuMan March 2014 Development
  • 128+2 Help!Today the postie brought me an early Spectrum 128+2, it's a Z70700 Issue 1. Everything seems to be working ok, i.e it boots up and the keyboard work…

    ... L_802A: LD (HL), A ; 32810 119
    ADD HL, DE ; 32811 ...
    ADD HL, DE ; 32896 25
    LD A, 104 ; ... 62 104
    LD (HL), A ; 32899 119
    ...
    Battle Bunny Battle Bunny April 2014 Hardware
  • Clashbasher a new interface to reduce colour clashI've been working on this for a while now. [IMG]http://markamy.uwclub.net/cauldron.JPG[/IMG] Basicly its an add on for a 48k spectrum, which reinte…

    ... and work out where to add more clashbasher instructions.

    HL)-----changed to ----- LD (HL),0
    #B138 LD (HL),A

    a sna file but it should be simple to add it ... to the game with a few pokes ...
    Basher Basher April 2014 Hardware
  • SBC or ADDIs this dangerous/bad practice thing to do..... I want to subtract 64 from a number, but to save a few bytes can I just add (65536-64) 65472 to the…

    ... your question: I use ADD when subtracting a constant

    ... [code]
    ld de, -const
    add hl ... , de
    [/code]

    while subtracting a variable ... ld de, (var)
    or a
    sbc hl, de
    [/code]
    catmeows catmeows April 2014 Development
  • Column and row numbers to attr address?[FONT=Calibri][SIZE=3]Can anyone provide me with a code snippet the will convert the column and row numbers into the screen attribute address. For ex…

    [CODE] ld a,e
    add a,a
    add a,a
    add a,a
    ld hl,22528/4
    ld l,a
    add hl,hl
    add hl,hl
    ld a,l
    or ...
    evilpaul evilpaul April 2014 Development
  • Column and row numbers to attr address?[FONT=Calibri][SIZE=3]Can anyone provide me with a code snippet the will convert the column and row numbers into the screen attribute address. For ex…

    ... Output: HL=attr address
    Modifies: HL,DE,A
    ... [code]ld h,0
    ld l,d
    add hl,hl ...
    add hl,hl
    add hl,hl
    add hl,hl
    add hl,hl
    ... ld e,d
    ld d,58h
    add hl ...
    mcleod_ideafix mcleod_ideafix April 2014 Development
  • Column and row numbers to attr address?[FONT=Calibri][SIZE=3]Can anyone provide me with a code snippet the will convert the column and row numbers into the screen attribute address. For ex…

    ... ][CODE] ld a,e
    add a,a
    add a,a
    add a,a
    ld hl,22528/4 ...
    ld l,a
    add hl,hl
    add hl,hl
    ld a,l
    or ...
    Mr Millside Mr Millside April 2014 Development
  • Spectrum screen layoutSeeing the thread on displacement I was wondering why the spectrum had the stupid screen split into three sections and the addresses for each section…

    ... next pixel line within a character square by adding ... /> LD A,L
    ADD A,32
    LD L,A
    ... RET NC
    LD A, ... I'd really prefer [B]ADD HL,DE[/B] in any case ... practically every game that uses a backbuffer has it organized in ...
    Ralf Ralf May 2014 Sinclair Miscellaneous
  • Spectrum screen layoutSeeing the thread on displacement I was wondering why the spectrum had the stupid screen split into three sections and the addresses for each section…

    ... did easy stuff like typing a letter even more easier ... the non-linear one requires a lot more thought behind ... it was probably quite a good idea if text ... about.

    Even "ADD HL,DE" is not as good ... it seems. You have a register pair dedicated to the ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Sinclair Miscellaneous
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... purposes. You cannot make a copy of the pivot element ... the first division with a largest power of 2 ... ; carry reset

    ; select a random pivot @ address k

    add hl,de ; hl = k - k % size + i< ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... />
    or a
    sbc hl,bc ; hl = j-1
    hl ; hl = array_lo
    push hl

    or a
    sbc hl ...
    pop hl ; hl = i

    add hl,bc
    ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
  • Optimal shifting for set pixel?Hi, I'm optimizing my set pixel code. For speed. But without using partitioned memory (i.e. a table on 256 byte boundary) I have optimal memory addr…

    What kayamon said + table can be at any place ( ld hl, tab \ ld d, 0 \ ld e, entry \ add hl, de \ ld a, (hl))
    Also, this could work:
    ld (jump+1), a \ ld a, 1 \ jump: jr 0 \ rla \ rla \ rla \ rla \ rla \ rla \ rla
    catmeows catmeows May 2014 Development
  • Beautiful codeSome people see beauty or something sublime in maths formulas and equations, can anyone suggest examples of beautiful or sublime programming?

    ... means it was done by a compiler ;)

    HL=HL+A[/B]

    Standard:
    [CODE]ADD A,L
    LD L,A ... CODE]ADD A,L
    LD L,A
    ADC A,H ;A=A0 ... +L+H+carry
    SUB L ;A=A ... )=H+carry
    LD H,A
    [/CODE]
    ...
    Ralf Ralf May 2014 Development
<1…28293031323334>

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