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…25262728293031…34>
  • Map compressor based on ZX7Hi I have release a map compressor for "La Churrera" game engine, but can be adapted to any other game. Source code is here (Download TmxCompress.0.…

    ... /> add a, e
    desc8: inc a
    ld e, a
    desc9: ld a ...
    ex de, hl ; HL = destination + offset + 1
    add hl, de ; DE = destination ...
    antoniovillena antoniovillena November 2013 Development
  • Troublesome routine, help needed!Having problems with this routine, it basically fires a rocket up the screen, but refuses to detect collisions. I'm using attribute blocks for detect…

    ... A, (av1)
    LD H, 0
    LD L, A
    ADD HL, HL
    ADD HL, HL ...
    ADD HL, HL
    ADD HL, HL
    ADD HL, HL
    LD DE, 22528
    ADD HL ...
    Jerri Jerri November 2013 Development
  • Sinclairscene, thank you all........ but I will be going on low level for long time with possibility of leaving the scene. Nothing your fault, but I am low in spirit of developping…

    ... de,16384
    plp ld a,(ix+0)
    cp 255 ... )
    add hl,hl
    add hl,hl
    add hl,hl
    ld bc,15616-256
    add hl,bc ... ld a,(hl)
    ld (de),a
    inc d
    inc hl
    R-Tape R-Tape November 2013 Sinclair Miscellaneous
  • That painter thing..I'm struggling to think of a non clunky way of detecting when a 'box' has been surrounded and can be highlighted, like in the pic: [IMG]http://i1142…

    ... /> ld (hl),a ;draw a red box border
    ld (de),a
    add hl,bc ...
    ex de,hl
    add hl,bc
    ex de,hl ...
    Battle Bunny Battle Bunny November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    ...
    [CODE] ld a,(level)
    ld h, ... a ;multiply level by 32
    add hl,hl ;x2
    add hl,hl ;x4
    add hl,hl ... ;x8
    add hl,hl ;x16
    add hl,hl ... 32)
    add hl,de ;hl now pointing at ...
    R-Tape R-Tape November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    ... now

    [CODE] ld a,($CB16) ;level no.
    ld ... de,$0020 ;
    ld hl,udg-32 ;
    push de ... in BC
    lp add hl,de ;
    dec a ;
    jr nz ...
    jamorski jamorski November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    Faster; :smile:

    [CODE] ld a,($CB16) ;level no.
    ld de,$0020 ;
    ld hl,udg-32 ;
    ld b,d ;
    ld c,e ;
    lp add hl,de ;
    dec a ;
    jr nz,lp ;
    ld de,$D767 ;
    ldir
    ret[/CODE]
    jamorski jamorski November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    ... br /> (17 bytes and a lot less T)
    ... 51990
    GetUDG: ld hl,UDGdata-32
    ld de ... ld a,(LEVEL)
    ld b,a
    GetLoop:add hl,de
    djnz GetLoop
    ld (UDG),hl ...
    Battle Bunny Battle Bunny November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    ... br /> (17 bytes and a lot less T)
    ... 51990
    GetUDG: ld hl,UDGdata-32
    ld de ... ld a,(LEVEL)
    ld b,a
    GetLoop:add hl,de
    djnz GetLoop
    ld (UDG),hl ...
    jamorski jamorski November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    19 bytes

    [CODE] ld a,($CB16) ;level no.
    ld bc,$0020 ;
    ld hl,udg-32 ;
    lp add hl,bc ;
    dec a ;
    jr nz,lp ;
    ld de,$D767 ;
    ldir ;
    ret ;[/CODE]
    jamorski jamorski November 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ...
    Loop5: ld a,(hl)
    add a,a
    add a,a
    add a,a
    call Marker ;reached ... /> add a,48
    ld (hl),a
    dec hl
    inc bc
    ld a,(hl ...
    Battle Bunny Battle Bunny November 2013 Development
  • bit manipulation conundrumWhat's a neat way to change this bit pattern in registers BCDE: [code]Loop0: ;change B:00000000 C:abcdefgh D:ijklmnop E:qrstuvwx[/code] to this bit …

    ... /> .lp0
    ld a,1
    .lp1
    add a ;add an extra zero ... bit to A each 3 shifts ...
    ld b,3
    .lp2
    add hl,hl ... ;shift 3 leftmost bits off the initial values into A
    Hikaru Hikaru November 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... code]
    Carry10:ld hl,65535 ;carry all 10s ... push bc
    Loop4: add a,(hl) ;adding an extra digit ... zero
    ld (hl),a ;extend the number 1 ... /> dec hl
    ld (hl),255
    inc hl
    ...
    Battle Bunny Battle Bunny December 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... a,(hl) ;.... multiply cumulative decimal total by 8
    add a,a
    add a,a
    add a,a
    add a ... z,EndProg
    add a,48
    ld (hl),a
    dec hl
    inc ...
    Battle Bunny Battle Bunny December 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... faster as well:[code]Carry10:add a,(hl) ;carry all 10s overflows ... Loop7
    Next6: add 10
    ld (hl),a ;update current digit
    dec hl ;then check ...
    Hikaru Hikaru December 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... ) )*8 ... +o(n) )
    ;first, add in the next octal digit ... a,(hl)
    daa
    ld (hl),a
    CarryOn:dec hl
    ld a,(hl)
    ld d,$ff
    add a,48
    rst $10
    Battle Bunny Battle Bunny December 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... /> ld l,a
    add hl,hl
    add hl,hl
    add hl,hl
    add hl,de ;HL=start of char ... nz,PRINTEX
    ld a,d
    add a,8
    ld d ...
    Battle Bunny Battle Bunny December 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... Carry
    add a,a
    daa
    rl c
    add a,a
    daa ... /> add a,b ;add b/fwd carry
    daa
    ld (hl),a
    ld a ...
    Battle Bunny Battle Bunny December 2013 Development
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ... /> write1s:

    ld a,l
    add a,'0'

    ld ... /> divloop:

    inc a
    add hl,bc
    jp c, divloop ...

    sbc hl,bc
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • Small demo to show my sprite engine for ZX Spectrum 48KThis demo shows 13 sprites moving at 50fps totally flicker free: 12 enemies bouncing in edges and the main character, controllable with OPSA (note S …

    I found a small optimization in the mult8x8 ...
    ld l, d
    add hl, hl
    [/code]

    with ... br />
    [code]
    ld hl, 0
    ld d, l ... an instance of "ld de, hl", wich doesn't exist in ...
    Metalbrain Metalbrain December 2013 Development
  • Small demo to show my sprite engine for ZX Spectrum 48KThis demo shows 13 sprites moving at 50fps totally flicker free: 12 enemies bouncing in edges and the main character, controllable with OPSA (note S …

    ... =Metalbrain;739183]I found a small optimization in the mult8x8 ... br /> ld l, d
    add hl, hl
    [/code]

    ...
    [code]
    ld hl, 0
    ld d, l ... right about ld de, hl. Fixed and also the ...
    antoniovillena antoniovillena December 2013 Development
  • Small demo to show my sprite engine for ZX Spectrum 48KThis demo shows 13 sprites moving at 50fps totally flicker free: 12 enemies bouncing in edges and the main character, controllable with OPSA (note S …

    ...
    [code]
    ld hl, 0
    ld d, l ... IF data & %10000000
    add hl, de
    ENDIF
    ...
    ELSE
    ld hl, 0
    ENDIF
    ... 'm working on a better macro right now...
    Metalbrain Metalbrain December 2013 Development
  • Small demo to show my sprite engine for ZX Spectrum 48KThis demo shows 13 sprites moving at 50fps totally flicker free: 12 enemies bouncing in edges and the main character, controllable with OPSA (note S …

    ... , you should never start loading HL with zero. It should always ... /> Also if there's only a single bit set in [B ... never need to execute [B]ADD HL,DE[/B].
    Einar Saukas Einar Saukas December 2013 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    ... code -- it will lead to a larger code footprint, which is ... modify the macro to call a function to compute the index ... cost more but will be a bit faster. EDIT: inlining might ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • Andromeda and MCoderI came across "Andromeda" by PSS written "in BASIC for MCODER" by A. Tobias 1983. Unfortunately the ANDROMED.TAP file always failed with R Tape Loadi…

    ... LD BC,100
    60006 ADD HL,BC
    60007 LD (nnnnn ... ),HL
    60010 CALL 63720[/CODE]< ... 2.B appears to be a beta of MCODER2. (Would also ... can do such as LET a$(3)="z" and READ x ...
    Jimmy Jimmy January 2014 MIA/STP/SDP
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... /> ld de,12
    add hl,de ;HL=data pointer
    NextStep:
    ld b,a
    inc b
    ... /> or b
    ld (hl),a
    pop hl
    pop bc
    Battle Bunny Battle Bunny January 2014 Development
  • Clearing 22 lines of the screenHow do I go about clearing the top 22 lines of the screen and leave the bottom #0 area untouched? I have a routine to reset the attributes, but cant…

    ... line
    loop1: ld (hl),a ;put a zero on screen
    inc ... a,l ;check low byte
    add a,32 ;next row down within a ... segment
    ld l,a
    ld a,h ;a overspun, so move down a segment too
    add a,8 ...
    R-Tape R-Tape January 2014 Development
  • mirroring bitsIf I have a string of 1408 bytes, each of which has one bit 'b' set, what's the shortest way of mirroring that string, so that each bit set at positi…

    ... />
    [code]InPlace
    ld hl,StringAddress
    ld bc,StringLength ...
    ld a,#01
    .lp1
    rr (hl)
    rla< ... /> jr nc,.lp1
    ld (hl),a
    cpi
    jp pe ... hl,MirrorTable-1
    ld a,(de)
    .lp1
    inc hl
    add a ...
    Hikaru Hikaru January 2014 Development
  • mirroring bitsIf I have a string of 1408 bytes, each of which has one bit 'b' set, what's the shortest way of mirroring that string, so that each bit set at positi…

    ... [CODE]
    loop ld a, (hl)
    add a, a
    jp c, is80< ... jp write
    is01 rrc (hl) ; $01->$80
    ... br /> write ld (hl), a
    next inc hl
    djnz loop ...
    antoniovillena antoniovillena January 2014 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... /> inc hl
    ld a,(SetBit+1)
    ld (hl),a
    inc hl
    ld (23680),hl[/code]

    Add:
    Battle Bunny Battle Bunny January 2014 Development
<1…25262728293031…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