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…78910111213…34>
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    ... />
    LD A,L
    ADD A,32
    LD L,A


    LD BC,2048
    ADD HL,BC

    nextLine
    hldswrth hldswrth July 2007 Development
  • Preferred way of determining Y co-ord in assembly?I know of 2 ways of calculating the y-cord of a pixel row for the speccy in assembly. One is to calculate the address by ways of shifting and masking…

    ... next char boundary
    add hl,de ;by adding 32 ... add a, l
    ld l, a
    ld e,(hl)
    inc hl< ...
    addx ld a,l
    add a, c ;get x ...
    Arjun Arjun July 2007 Development
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... = " ";
    char *s1 = "This is a test message that is supposed ... hl
    add hl,de
    push hl
    rl (hl)
    dec hl
    rl (hl ... Temp\s3g_.opt
    z80asm -a -m -Mo -oC:\z88dk\work ... you are trying to convert a pointer to an integer without ...
    wokani wokani July 2007 Development
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... the scrolling message works a lot better in Spectaculator ... in Spectaculator there is a hickup in the scrolling ... and blit() functions when a new character is installed. This ... hl
    add hl,de
    push hl
    rl (hl)
    dec hl
    rl (hl ...
    wokani wokani July 2007 Development
  • Game ideaThinking of a game that could enter the Minigame compo I came to the following idea for a game, although it might not fit 1K or 4K: A mazed snake ga…

    ...

    Anyone willing to add his own defined level???
    xor a
    ld hl,23560 ; LASTKEY
    ld (hl),a ; set impossible ... value
    nokey or (hl ...
    Dr BEEP Dr BEEP July 2007 Games
  • Help hacking Split PersonalitiesI`ve been hacking away at Split Personalities for the purpose of putting new screens and graphics (items). The current screen is at 41187 and is 160…

    ...
    add a,a
    jr nz,n6
    ld a,(hl)
    inc hl
    add hl,de
    ld c,a
    ld b ...
    FrankT FrankT July 2007 Games
  • 48K sound effectsAnybody knows where could I find some small M/C routines to play tiny beeper sounds I could use in the 48K version of a game? I don't want the 48K pl…

    ... /> di
    PlaySFXLoop1
    ld a,(CurrLevelPaperColour) ;flip the speaker
    hl; hold amplitude for hl cycles
    PlaySFXLoop2
    dec hl
    ld a ... nz,PlaySFXLoop3
    pop hl

    add hl,bc ;vary the cycle ...
    Digital Prawn Digital Prawn August 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    Well "sbc hl," and "add hl," come to mind for comparisons ... case of sbc, especially, take a long time.

    It ... turns out that comparisons a byte at a time is faster on ... />
    Anyway you can have a look at what z88dk uses ...
    Alcoholics Anonymous Alcoholics Anonymous September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    If you really need COMPARE (that is, content of the registers should remain unchanged), you can do this:

    or a
    sbc hl,de
    add hl,de
    baze baze September 2007 Development
  • Easy Compare On 2 Byte Register?e.g. HL, BC, DE Has anybody got a really easy way of doing this without comparing each byte seperately? Any maths has no effect on the flags as far a…

    ... :

    or a
    sbc hl,de
    add hl,de[/QUOTE]
    ADD
    and then when condition ... met/not met add again so you need 2 ADD HL,DE
    [code]
    or a
    push hl
    sbc hl,de
    pop ...
    Dr BEEP Dr BEEP September 2007 Development
  • Bubble Bobble EditI thought I might have a go at editing Bubble Bobble myself after reading this... [url]http://www.worldofspectrum.org/forums/showthread.php?t=15452[…

    ...
    ld l,a
    inc a
    cp # ... ,858c
    add hl,de
    ld a,(hl) ;grab our colours ...
    ld hl,#860c ;location ... carry
    rl (hl) ;and shift into 860c ...
    Mr. Anonymous Mr. Anonymous September 2007 Development
  • Delay routineAs some people are aware, I have recently starting writing a [url=http://fuse-emulator.svn.sourceforge.net/viewvc/fuse-emulator/trunk/fusetest/]autom…

    ... hl,-141
    add hl,bc
    ld bc,-23
    .loop add hl,bc ...
    jr c,.loop
    ld a,l
    add a,15 ...
    Patrik Rak Patrik Rak September 2007 Development
  • Wtf??I won this NZ auction earlier this week [url]http://www.trademe.co.nz/Browse/Listing.aspx?id=116509561[/url] and have been to collect the hardware th…

    ... 0f 00 $0ats
    add hl, bc ; fe84 09 $0bts ... 0ats
    [COLOR="Red"]ld a, $81[/COLOR] ; fe89 3e ... /> [COLOR="Red"]out (c), a[/COLOR] ; fe8b ed 79 $ ...
    [COLOR="Red"]ld a, $0f[/COLOR] ; fe8d 3e ... /> [COLOR="Red"]out (c), a[/COLOR] ; fe8f ed 79 $ ...
    jp jp October 2007 Hardware
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ...
    ld a,(hl)
    add hl,bc
    ld (hl),a
    inc hl
    ex ... de,hl
    jr ...
    ld a,(hl)
    add hl,bc
    ld (hl),a
    inc hl
    ex ...
    Metalbrain Metalbrain October 2007 Development
  • Vector drawing routines.Anybody could point me to some sort of vector drawing package of routines, callable from BASIC? With "vector drawing" I mean to draw 2D pictures with…

    ... left
    ld a,b ; within byte
    add a,a
    or c ...
    or b ; a = incoming pixels ... change

    or (hl)
    ld (hl),a ; fill byte on screen ...
    Alcoholics Anonymous Alcoholics Anonymous October 2007 Development
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ...
    ld a,(hl)
    add hl,bc
    ld (hl),a
    inc hl
    ex ... de,hl
    jp ... /> add a,a
    ld ixl,a
    ret nz
    ld a,(hl)
    inc hl ...
    Metalbrain Metalbrain November 2007 Development
  • Duel of the games 4! Super conundrum! Manic Miner vs Jet Set WillyGo on I dares ya, to decide which one is best, it's popped up in many, many previous threads, so do it, decide the better of the 2 :D

    ...
    #8B50: ADD HL,DE
    #8B51: LD A,(#85CC) ; number of ... /> #8B58: NEG
    #8B5A: ADD A,(HL) ; add #1C - lives*4 to pitch ... . Sure, it isn't a correct musical transposition (one could ... implement a tone-chart to transpose each ...
    andrewbroad andrewbroad November 2007 Games
  • Duel of the games 4! Super conundrum! Manic Miner vs Jet Set WillyGo on I dares ya, to decide which one is best, it's popped up in many, many previous threads, so do it, decide the better of the 2 :D

    ...
    #8B50: ADD HL,DE
    #8B51: LD A,(#85CC) ; number of ... /> #8B58: NEG
    #8B5A: ADD A,(HL) ; add #1C - lives*4 to pitch ... . Sure, it isn't a correct musical transposition (one could ... implement a tone-chart to transpose each ...
    zxspecticle zxspecticle November 2007 Games
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ... dest)
    sbc hl,bc
    ld a,(hl)
    add hl,bc
    ex ... de,hl
    ld (de),a
    sbc hl,bc
    ld a,(hl)
    add hl,bc
    ex ...
    Metalbrain Metalbrain December 2007 Development
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ... to next line through a char
    add hl, de ;goto next line ... through a char boundary
    pop ... to
    ld hl,$7e0 ;2016 added . . .
    add hl, de ;to posn ... to be copied
    ex de,hl ;?? ...
    bigjon bigjon February 2008 Development
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ... ]Does anyone have a link to a list of how ... /z80-documented.pdf[/url] has a listing.

    [ ... address one double byte at a time, right? In ... pop ix
    ld hl,-32
    add hl,sp
    ld (source ... code the scroll in a single monolithic code block ...
    Alcoholics Anonymous Alcoholics Anonymous February 2008 Development
  • Interface 1 emulation issuesFor Virtual Spectrum v3.0 I am implementing virtual Interface 1 and Interface 2 options! The I/F2 ROM option works already, and I have got the I/F1 s…

    ... /> ;
    pop hl
    ld (err_sp),hl
    ld a,$ff
    ld ... (err_nr),a
    ret ... /> ld h,a
    ld b,8
    crcbyt add hl,hl
    jr ... nc,crcnxt
    ld a,h
    jp jp April 2008 Emulators
  • IF2 Rom snapshot creationHi, is it possible convert a Speccy 16k snapshot to a Interface 2 Rom file? I've the original Ultimate Pssst, Cookie, Trans-am and Jetpac tapes and …

    ...
    LD H,D
    ADD HL,HL ;x2
    LD C,L ... BC
    ADD HL,HL ;x4
    ADD HL,HL ;x8
    ADD HL,BC ;add BC to make ... L,A
    LD H,$00
    ADD HL,DE ;now add new digit ... +2),A
    LD (reloc4+7),DE ;BC for LDIR
    ADD HL ...
    Jimmy Jimmy April 2008 Emulators
  • Bresenhams circle algorithmI post here my final circle code to replace, if you want, the one in the ROM. It only uses integer math and runs very fast and is very compact. It is…

    ...
    add A,H
    ld c,A
    ld A,E
    add A,L ...
    ld b,A
    add A,L
    ld c,A
    ld A,E
    add A,H ... de,hl
    add hl,de
    ex de,hl

    inc hl ;hl' is ...
    rtunes rtunes September 2008 Development
  • Design Design / Crystal ComputingNice post on [URL="http://groups.google.com/group/comp.sys.sinclair/browse_thread/thread/56e6ebdedc6930ac#"]comp.sys.sinclair[/URL] about [URL="http:…

    ... now and it's choc-a-bloc with some excellent ... br /> ret
    show ld a,(hl) ; fetch alien status.
    ... each alien table entry.
    add hl,de ; point to next alien ... I spent trying to create a bold font version in ...
    Arjun Arjun October 2008 Sinclair Miscellaneous
  • Changing the way SCREEN$ is loadedThe way the speccy loads in a SCREEN$ is interesting - top two-thirds first, then middle and finally the bottom, which is due to the way the speccy d…

    ... ; mask
    ld (hl), a ; poke colour
    inc hl ; next attribute
    drawline: ld a, 0 ; a = screen poke byte
    ld (hl), a ; poke to ... address
    add a, 32 ; add 32
    ld (screenaddress+1), a ; poke result ...
    FrankT FrankT October 2008 Sinclair Miscellaneous
  • Spectrum AssemblyHi All, Thanks for letting me in... lol Over the last couple of days I started playing my spectrum emu again and then I started thinking about lear…

    ... a, (height)
    ld ix, lines
    ld hl, (y_off)
    add hl, hl ...
    ex de, hl
    add ix, de ...
    nextln: push af
    ld a, ... (x_off)
    add a, (ix+2)
    ...
    Matt_B Matt_B October 2008 Sinclair Miscellaneous
  • Spectrum AssemblyHi All, Thanks for letting me in... lol Over the last couple of days I started playing my spectrum emu again and then I started thinking about lear…

    ... a, (height)
    ld ix, lines
    ld hl, (y_off)
    add hl, hl ...
    ex de, hl
    add ix, de ...
    nextln: push af
    ld a, ... (x_off)
    add a, (ix+2)
    ...
    Shadow Maker Shadow Maker October 2008 Sinclair Miscellaneous
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... 3 most lsb
    ADD A,A
    ADD A,A ;multiply result by 4 ... L,A ; add the x-coordinate to the low byte of hl ... HL,STARDATA
    LD B,0
    LD C,A

    ADD HL ... ,BC ; add ofset 0-7 ...
    Digital Prawn Digital Prawn December 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... ex de,hl ;de=dest,hl=offset
    add hl,de ;hl=src,de=dest ... L,A ; add the x-coordinate to the low byte of hl (can ... HL,STARDATA
    LD B,0
    LD C,A

    ADD HL ... ,BC ; add ofset 0-7 to ...
    Digital Prawn Digital Prawn December 2008 Development
<1…78910111213…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