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.022s
<1…3456789…34>
  • 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

    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…

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

    LD HL,NEWSCORE
    Mr Millside Mr Millside June 2005 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

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

    ld ...
    ld e,40
    add hl,de

    .nocaps< ...
    ld e,80
    add hl,de

    .nosym< ... entry

    .SPtbllookup
    add a,e
    ld e ...
    Alcoholics Anonymous Alcoholics Anonymous July 2005 Development
  • Programming MC challengeIn the 80-ies I got the following assignment for a programming course. 2 16-bit values stored in #8000 and #8002 must be added together and stored i…

    ... /> LD DE,(&8002)
    ADD HL,DE
    JR NC,skip ... /> .skip
    LD (&8002),HL

    edit: Oh, ... />
    Ok...
    LD HL,(&8000)
    LD DE ... )
    LD A,L:ADD E:LD L,A
    .skip
    LD (&8002),HL



    -- ...
    Jonathan Harston Jonathan Harston August 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... hl,2
    add hl,sp
    ld a,(hl) ; a = N
    inc hl ...
    inc hl ... ,(hl)
    inc hl
    ld b,(hl) ; bc = colours
    ex de,hl ; hl ...
    Alcoholics Anonymous Alcoholics Anonymous September 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... a pucrunched file.
    ;## In : HL = source address
    ;## DE = destination ... /> inc hl
    inc hl
    inc hl

    ld a, (hl) ; starting ... escape
    inc hl ...
    na_th_an na_th_an October 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... ', hl'

    .SPHuffEncode
    ld b,0
    add hl,bc
    add hl ... ,bc ; hl = &encoder[c ... on stack
    ld hl,-3
    add hl,de ; hl = parent
    jp ...
    Alcoholics Anonymous Alcoholics Anonymous October 2005 Development
  • Machine Code: quicksort optimisationI came across this z80 quicksort implementation when going through the wikipedia article on the same. It's 44 bytes long. I was wondering if any of …

    ... HL = last item in array

    .Lqsort
    dec hl
    add hl,hl ...
    add hl,bc
    ; bc = left, hl = right< ... ; de = right

    add hl,bc
    rr h
    Alcoholics Anonymous Alcoholics Anonymous January 2006 Development
  • Timex 80 column display driverI subsequently wrote an 80 column font driver for 512x192 mode.

    ... /> add hl,hl
    add hl,hl
    add hl,hl
    ld de,font-100
    add hl,de ...
    ex de,hl ... print routine
    ld hl,(nextdfile) ; hl = destination dfile address
    Alcoholics Anonymous Alcoholics Anonymous March 2006 Development
  • Timex 80 column display driverI subsequently wrote an 80 column font driver for 512x192 mode.

    You can still save a few cycles in all instances of ADD HL,BC where C is loaded with zero by using 8 bit additions via A.

    LD BC,xx00 : ADD HL,BC = 21 cycles.

    LD A,H : ADD A,xx : LD H,A = 15 cycles.
    Woody Woody March 2006 Development
  • MEMPTR finally crackedThis post is mainly for emulator developers. As you may be well know there is a misterious internal register in Z80 CPU (MEMPTR) which value is set …

    ... . This includes the instructions ADC, ADD, SBC, INC, DEC but not ... . I have been using the ADD HL,DE instruction to test. The ...
    Vladimir Kladov Vladimir Kladov April 2006 Emulators
  • Shoot-em-up Development UpdateHi Folks, I am still working away at my horizontal scroller. Here is a link to let you see progress. I have re-written the scrolling routine to make…

    ...
    ADD A,A
    ADD A,A
    ADD A,B ... New] ADD A,A
    ADD A,A
    ADD A,A ... /> [FONT=Courier New]NEXTROW EXX: ADD HL,BC: EXX[/FONT]
    [FONT ...
    dmsmith dmsmith April 2006 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

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

    ld e,40
    add hl,de

    NoCaps ... /> ld e,80
    add hl,de

    NoSym ...
    Mr Millside Mr Millside May 2006 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ...
    ld e,80
    add hl,de
    [/code]
    [/QUOTE ...
    ld e,80
    add hl,de
    [/code]

    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ...
    ld hl,(int_seed)
    ld a,h
    add a,a ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ... =number of bytes
    ;Outputs: hl=CRC16
    push bc ;
    jp jp June 2006 Development
  • Loading schemes18 years ago I hated loading schemes like Alcatraz and Speedlock because they were a b*tch to copy and became unreliable when the tape got older. Now…

    ... I have been trying to add some great loaders that ... hl,23296
    ld (hil),hl
    ld hl,20704
    ld (dil),hl ... /> add hl,hl
    add hl,hl
    add hl,hl
    ld de,39744
    add hl,de< ...
    Tom-Cat Tom-Cat July 2006 Games
  • Self Relocating CodeOn page 47 of [url]http://www.tim-mann.org/trs80/doc/ldosq1-3.txt[/url] is an article about relocating code. The documented routine that performs the…

    ... Speccy

    LD HL,RELTAB
    ADD HL,BC ; BC is start ... D,0
    EX DE,HL
    ADD HL,BC
    LOOP LD ... A,C
    ADD A,(HL)
    LD (HL ...
    piters piters August 2006 Development
  • Pixel Explosion CodeJust a little snippet to cause explosive effects. It uses table lookups for the screen address, and can handle up to 32 pixel particles. A particle…

    ... /> inc hl
    ld b,(hl)
    inc hl
    ld c,(hl) ; bc ... ; a = old x coord
    add hl,bc
    sub h ; subtract ... /> ld l,(hl)
    ld h,a ; hl = dy
    add hl,bc
    Alcoholics Anonymous Alcoholics Anonymous September 2006 Development
  • Spectrum Screen Memory MapWhat's the advantage (mistery?) behind ULA's spectrum screen memory interpretation? 6144 bytes divided into 3 blocks, 2048 bytes long. if you want t…

    ... we could just use INC HL in the 32nd increment to ... (compare famous DOWNHL with simple ADD HL,BC) or using lookup tables ...
    baze baze October 2006 Development
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... ld iy,0
    add iy,sp
    ... de,1
    add hl,de
    ld de ... /> sbc hl,de
    add hl,de
    push hl
    ...
    Woody Woody November 2006 Development
  • Urgent Help needed to fix this: calling all machine code gurusI am currently trying to write tutorials on the amazing Orfeus music composer by Proxima which allows you to do multi channel music through the beepe…

    ...
    add a,(hl)
    add a,(hl)
    add a,(hl)
    add a,(hl)
    add a ...
    add a,(hl)
    add a,(hl)
    add a,(hl)
    add a,(hl)
    add a ...
    robpearmain robpearmain November 2006 Development
  • ZXSpin 0.61 Available nowHi all! Well, after a lengthy few testing cycles, I'm taking the plunge and uploading the latest version of ZXSpin, to replace the rather aged old 0…

    According to the [URL=http://www.mdfs.net/Software/Z80/Exerciser/Spectrum/]Z80 Exerciser[/URL], some flags are wrong.

    The failed tests are:
    hl,
    add hl,
    add ix,
    add iy,
    bit n,
    Metalbrain Metalbrain December 2006 Emulators
  • ZXSpin 0.61 Available nowHi all! Well, after a lengthy few testing cycles, I'm taking the plunge and uploading the latest version of ZXSpin, to replace the rather aged old 0…

    ... tests are:
    hl,
    add hl,
    add ix,
    add iy,
    bit ...
    Dunny Dunny December 2006 Emulators
  • Help understanding some z80 asmI'm trying to work out how to represent the structure of a "sprite" in the SAM as "Grabbed" by SmallC. I can see the assembler implementation but I …

    ... ld hl,4
    add hl,sp
    ld c,(hl)
    inc hl
    ld b,(hl)< ... is then loaded into HL before leaving the function. ... values are received in the HL register.

    ... is much quicker if HL is used to step ...
    Alcoholics Anonymous Alcoholics Anonymous January 2007 Development
  • Wanted: z80 asm routines...for the Sam. This call goes out to Colin and others who know how it should be done. If you look on the Sam C disk you can see the implementation…

    ... hl,4
    add hl,sp
    ld a,(hl)
    dec hl ...
    ld d,(hl ... )
    dec hl
    ld e,(hl ... /> ; put return value into HL (perhaps success/fail)
    < ...
    Alcoholics Anonymous Alcoholics Anonymous January 2007 Development
  • Cybernoid editorSo, my long tern goal is to make my own Cybernoid or Rex like game (see an ancient thread about Sprite advice)...but my skills are somewhat lacking..…

    ... $6ec6
    ex de,hl
    pop hl
    ld a,(de ... 3
    ld (hl),c
    $3: inc hl
    inc de ... 4
    ld (hl),c
    $4: inc hl
    inc de ... /> $5: ld de,30
    add hl,de
    djnz $2
    pop hl
    pop de
    pop ...
    FrankT FrankT March 2007 Development
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... push de
    push hl

    ld ... />
    ex de,hl
    ld bc,32 ... ex de,hl
    add hl,bc
    ex de,hl
    ... ex de,hl; add hl,bc; ex de,hl". Edit: ...
    Alcoholics Anonymous Alcoholics Anonymous April 2007 Development
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... 8 cycles when the equivalent "add a,a" only takes 4 ... -bit shifts, keep in mind "add hl,hl" which does it in 11 ... the much less attractive "adc hl,hl" which does it using the ... 15 cycles. "adc hl,rp", like "sbc hl,rp", are a couple ...
    Alcoholics Anonymous Alcoholics Anonymous April 2007 Development
  • Disassemblers and RSTsI think this is a longshot, but... is anybody aware of a disassembler that handles the Interface One RSTs? e.g. RST $10 DEFW $0020. Cheers

    ... 11 2c 00 $0ats
    add hl, de ; f98d 19 $0bts ... f9fe e6 1f $07ts
    add a, $60 ; fa00 c6 ... $11ts
    l_fa4a: inc hl ; fa4a 23 $06ts
    ... $0ats
    l_fa4e: push hl ; fa4e e5 $0bts
    ... fa5b c1 $0ats
    pop hl ; fa5c e1 $0ats
    ...
    jp jp April 2007 Development
<1…3456789…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