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.163s
<1…10111213141516…34>
  • Textured Scanline Flood Fill for ZX Spectrum 48KPity that it's quite hard to contribute code to WoS in a straightforward manner. Recently, I have created a textured/hatched fill M/C routine for the…

    ... have created a textured/hatched fill M/C routine for the ... ZX Spectrum 48K. It was for a ... Unfortunately, I can't attach a ZIP archive here, so ... /> 9010 LET a=63488
    9020 READ a$: PRINT "{AT ...
    9060 POKE a,v: LET a=a+1
    9070 ...
    Volker Volker February 2021 Software
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... /> ld a,d
    sub 8
    ld d,a
    ld a,e
    add a ... ,#20
    ld e,a
    jr nz,filltab
    ld a,d ...
    add a,8
    ld d,a
    cp ...
    Mikie Mikie November 2001 Sinclair Miscellaneous
  • Machine Code ChallengeHere's a challenge for all you Z80 programmers. Points to be awarded for elegance and brevity. (I haven't got the solution either) HL addresses the …

    ... for the next iteration
    ......ld a,c
    ......or (hl) ;now change ...
    ......ld (hl),a
    nextbyte: dec b ;here starts the main loop
    ......rra
    ......ld c,a
    ......ex af,af'
    ......ld a,c
    ......or (hl ...
    Mikie Mikie July 2002 Sinclair Miscellaneous
  • Machine Code ChallengeHere's a challenge for all you Z80 programmers. Points to be awarded for elegance and brevity. (I haven't got the solution either) HL addresses the …

    ... number in E.
    LD A,B
    OR A ; Load zero flag.
    EXX
    LD C,B ; Set LSB of BC to B.
    XOR A ; Set MSB ... of BC to 0.
    LD B,A
    CPL ; Set A ...
    Fraser Fraser July 2002 Sinclair Miscellaneous
  • Machine Code ChallengeHere's a challenge for all you Z80 programmers. Points to be awarded for elegance and brevity. (I haven't got the solution either) HL addresses the …

    ... .
    8005 78 4 LD A,B
    8006 B7 4 ... LD C,B ; Set LSB of BC to B.
    800D AF 4 XOR A ... ; Set MSB of BC to 0.
    800E 47 4 LD B,A ...
    Fraser Fraser July 2002 Sinclair Miscellaneous
  • ZX81 and ZX80 emulator on Spectrum 128KA couple of weeks ago we were talking about a new ZX81 emulator for the 128K. Someone beat me. More details at [url="http://www.fruitcake.plus.com/S…

    ... /> ;; TRAILER
    L0388: LD B,$1A ; counter to twenty six ... br /> LD A,E ;
    JR C,L0388 ; loop back with ... carry flag
    RL C ;
    JR NC,L034E ...
    Tom-Cat Tom-Cat September 2003 Emulators
  • help in byte mirroring.I need some help. What is the best way to mirror the byte? (for ex. 10010011 -> 11001001) I mean, if there is a simple way to do it (may be with OR, …

    ... if b6 != b1 { reg=reg xor 66 }

    etc..., ... />
    LD B,normalbyte ; gonna mirror this
    LD A,B
    AND 129 ... XOR 129 ; swap bits
    LD C,A ; storing it here
    nxt0 LD A,B
    XOR 66 ; swap bits
    OR C
    LD C,A
    ...
    cyborg cyborg October 2003 Development
  • 16k/48k Sound FXI am now moving on from graphiocs to trying to build up a library of sound fx to be used with a 16k/48k Spectrum. Does anyone have any example m/cod…

    ... br />
    WhiteNoise: ld b,0
    ld c,15
    noise1: call ... ld e,a

    ld a,l
    xor d
    xor e
    srl a ...
    Woody Woody May 2004 Development
  • Pixel setting / general speccy codingi just started doing some cross-coding with the [url="http://www.bigfatpanda.fsnet.co.uk/z80.html"]Z80 SNA assembler[/url] and an emulator, and this …

    ... [code]
    LD B,Y-coor
    LD C,X-coor
    LD A,B
    CALL ... LD A,(HL) ; get pixelpointer
    EX DE,HL ; get address
    XOR ... (HL) ; reset pixel
    LD (HL),A ; put back ...
    Dr BEEP Dr BEEP August 2004 Development
  • Pixel setting / general speccy codingi just started doing some cross-coding with the [url="http://www.bigfatpanda.fsnet.co.uk/z80.html"]Z80 SNA assembler[/url] and an emulator, and this …

    ... /> So if c contains your x coord and b holds the y ... H
    LD H,(HL)
    LD L,A

    LD A,C
    AND ... 7
    LD DE,PIXELTAB ... A,E
    LD E,A
    LD A,(DE)
    XOR (HL)
    LD (HL),A
    dmsmith dmsmith August 2004 Development
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ... pairs
    LD IXH,A ;IXh is the loop counter
    LD A,(SPRXLEN) ;get ... width of sprite
    DEC A
    LD ... retriving
    LD L,C ;sprite data: C - Mask, B - Sprite
    LD A,(HL) ;left ...
    dmsmith dmsmith August 2004 Development
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ... in pairs
    LD IXH,A ; IXH is loop counter for height of ... /> LD B,0

    SHIFTLOOP1 PUSH BC
    LD C,8
    LD A,B
    LD B ... ,0

    SHIFTLOOP2 LD (HL),A
    dmsmith dmsmith August 2004 Development
  • Interrupts details questionSuppose I am writing a game and I want to use interrupts to measure time, draw the screen without flicker, maybe to poll keyboard etc. What kinds of …

    ... /> loop:
    ld a, (hl)
    xor 255 ; mark this screen location
    ld (hl), a ... a
    srl a
    ld b, a
    ld a, h
    sla a
    sla a
    sla a
    sla a ...
    Erlstoned Erlstoned August 2004 Development
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it Note, for 48k spectrum using TASM [code] ; ***********…

    ... to sprite data
    LD B,TOTALSPRITES ; And loop for the total number ... /> LD A,(IX+1)
    LD B,A
    LD C,(IX+0)
    INC C
    LD A,C
    robpearmain robpearmain August 2004 Development
  • Smooth Screen ScrollingHi Everyone, Any suggestions on what is the best way to do horizontal scrolling ie. in Zynaps fashion. I am working on a routine at the moment, whi…

    ... be with a routine like this:

    ld hl,winend ... bc ; loop counter.
    ld a,b ; high byte of counter.
    or c ; ... "rolling" out the loop would achieve a huge speed increase, but ...
    jonathan jonathan September 2004 Development
  • the happiest days of your life-pt2hello,again i have come up with 2 solutions to the problem of solving this game:- 1.the more people that try to solve this game (by combining diffe…

    ... /> #DB6D LD B, (IX+#00) ; First held item
    #DB70 LD C, (IX+#02 ... CP #60
    #DB92 JR C, #DB82
    #DB94 JR NZ ... Z, #DBBE

    #DBBE LD A, B ; Look at our first carried ... Lines
    #DBC7 ADD A, C
    #DBC8 XOR #9A ; Check we have ...
    Mr. Anonymous Mr. Anonymous September 2004 Games
  • Key Redefine RoutineAnyone written a nice key redefine code snippet?

    ... ,A
    LD A,H
    XOR 255
    CALL COUNN
    LD D,A
    LD A ... /> JR C,COU_E
    INC B
    JR COU_L
    COU_E LD A,B
    aprisobal aprisobal December 2004 Development
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    ... ld hl,(y1x1)
    ld de,(y2x2)
    ld bc,(yx)

    ld a,b ...
    cp h
    ret c
    loop, otherwise you won't elimate ...
    Dr BEEP Dr BEEP March 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…

    ... a,(hl)
    jr c loop
    jmp loop1
    loop ld a,0
    ld (hl),a ...
    jr loop2
    loop1 ld(hl),a
    ld a,0 should be xor a
    as it is a byte less then ld a ...
    mestor mestor August 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…

    ... /> add a,(hl)
    ld c,a
    inc l
    ld a,b
    adc a,(hl ... )
    jr nc,inrange
    xor a
    ld c,a

    inrange:
    ld (hl),a
    dec ...
    dmsmith dmsmith August 2005 Development
  • After roughly 22 years can you help?Hi, A long one this but here goes. Roughly 22 years ago (i was 14 if i remember right) i got a 48K speccy for christmas of my dad it was awesome an…

    ... exercise was to enter a program to display each ... LD C,26
    LD A,65
    LOOP: LD B,A
    RST 16
    LD A,B
    INC A ...
    DEC C ...
    JR NZ,LOOP:
    Ian Hamilton Ian Hamilton November 2005 Sinclair Miscellaneous
  • After roughly 22 years can you help?Hi, A long one this but here goes. Roughly 22 years ago (i was 14 if i remember right) i got a 48K speccy for christmas of my dad it was awesome an…

    ... exercise was to enter a program to display each ... LD C,26
    LD A,65
    LOOP: LD B,A
    RST 16
    LD A,B
    INC A ...
    DEC C ...
    JR NZ,LOOP:
    chop983 chop983 November 2005 Sinclair Miscellaneous
  • Timex 80 column display driverI subsequently wrote an 80 column font driver for 512x192 mode.

    ...
    xor a
    ld (xcoord),a
    ld a,(ycoord)
    inc a
    cp ... 24
    jr c, yok
    xor a ... = destination dfile address
    ld b,8 ; char height counter used ...
    Alcoholics Anonymous Alcoholics Anonymous March 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…

    ... , a
    ld a, b
    and 7
    add a, h
    ld h, a
    ld a, c ... .
    Draw the sprite using XOR in the NEW position, then ... draw the sprite using XOR in the old positiion to ...
    Kiwi Kiwi May 2006 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ... the most significant byte.
    ld a,(hl) ; Load it into ... ; Decrement the counter.
    ld a,b ; Check to see if we ... c
    jr nz, checksumsub ; If there's more to do, loop ...
    Matt_B Matt_B May 2006 Development
<1…10111213141516…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
ld 6.3K 67.3K
a 589.5K 1.7M
b 55.2K 190K
xor 1.9K 4.8K
c 20.3K 48.8K
loop 4.8K 8.5K

Related Threads

  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • 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…
  • can someone make manic miner in b.a.s.i.c (oh, the horrors!)can someone make manic miner (or it's first level) in b.a.s.i.c . yes i know this is stupid, but i would like to know what would happen! from matthew
  • jet set willy in b.a.s.i.c (oh, even more horrors!!!!!!!!)what about jet set willy in b.a.s.i.c ? is anyone doing that? i think it's a really bad idea, but it's sure is a funny one! oh yes, i do know a littl…
  • ant attack in b.a.s.i.ccan someone make ant attack in b.a.s.i.c . it may be impossible!<br /> from a 14 year old kid.
  • who do you use 1 key b.a.s.i.c?well how do you. is there a web site about it. i do not have the original instruction book.<br /> from a 14 year old kid (named matthew.......)<br />…
  • 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…
  • Arrays in C and C++ from a Java Programmer.I have been looking arround the web and found many conflicting answers to this question so I thaught I'd ask you folkes.<br /> <br /> What is the C a…
  • Adventure A,B,C,D,E,etcDoes anyone have any info on how this whole "Adventure A,B,etc" series came about?<br /> <br /> One of the first games I ever played on the ol' specc…

Related Searches

  • ld a r
  • d a w b
  • ld r a
  • xor c
  • xor c loop
  • ld a b or c loop
  • play a b c
  • b c bill
  • a m c
  • t a c
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • spectrum 2 a b rgb cables
  • out c a
  • ay out c a
  • screen address c b l
  • ld a 5b5c
  • ld bc 65533 a 254 out c
  • cpi ld a b or c

Copyright © 2024 World of Spectrum