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
<1234567…34>
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code] dec bc ld a, b or c jp nz, loop can be replaced (bc starts >255, short jump) by: dec bc inc b djnz loop [/code] …

    yesterday i saw nice trick:[code]

    dec bc
    ld a, b
    or c
    jp nz, loop

    can be replaced (bc starts >255, short jump) by:

    dec bc
    inc b
    djnz loop
    [/code]
    ..nice
    Fikee Fikee February 2005 Development
  • Jetpac questionHi all, I just bought a copy of Jetpac off of Ebay and I'm having problems. To start, I'm trying to play it on an issue 2 Speccy with Interface 1, 2 …

    ... Next Address

    LD A,H ; Exit loop if we have wrapped ... />
    LD B,NUMPATTERNS ; Loop for each pattern

    LD A,(ENDSCAN) ; Save ... LD A,B
    XOR C
    LD (FailedBits),A
    RET

    BitFadeRoutine
    LD A,( ...
    Digital Prawn Digital Prawn January 2009 Games
  • RCS (Reverse Computer Screen)[B]RCS[/B] ("Reverse Computer Screen", or simply SCR written backwards) is a small utility I'm about to release, that reorders bytes from the ZX-Spec…

    ... /> loop: ld a,b
    xor c
    and $f8
    xor c
    ld d,a
    xor b
    xor c
    Einar Saukas Einar Saukas September 2013 Development
  • RCS (Reverse Computer Screen)[B]RCS[/B] ("Reverse Computer Screen", or simply SCR written backwards) is a small utility I'm about to release, that reorders bytes from the ZX-Spec…

    ... /> loop: ld a,b
    xor c
    and $f8
    xor c
    ld d,a
    xor b
    xor c
    jamorski jamorski September 2013 Development
  • RCS (Reverse Computer Screen)[B]RCS[/B] ("Reverse Computer Screen", or simply SCR written backwards) is a small utility I'm about to release, that reorders bytes from the ZX-Spec…

    ... /> loop ld a,b
    xor c
    and $f8
    xor c
    ld d,a
    xor b
    xor c
    Einar Saukas Einar Saukas September 2013 Development
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... /> ld c,a
    ld b,0
    ret

    DoXOR ld a,b
    xor c
    ld c,a
    ld b ...
    mcleod_ideafix mcleod_ideafix October 2011 Sinclair Basic
  • A fast DRAW routineI was investigating how to speed up the line drawing for the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=20225"]BASIC compiler[/URL]…

    ... xor a ; nop
    ld (__PLOTINVERSE), a
    ld a, 0B6h ; or (hl)
    bit 1, c ... a
    sbc a, a
    ld d, a

    ; BC = DY
    ld c, b
    ld b ... br /> __DRAW5: ; While loop
    exx
    ...
    boriel boriel December 2010 Development
  • Short Z80 QuizQ1) Which program gives different result ? A) XOR A ADD A,A B) XOR A ADC A,A C) SCF ADD A,A D) SCF ADC A,A Q2) What is the equivalent of NEG …

    ... /> A)
    XOR A
    ADD A,A

    B)
    XOR A
    ADC A,A

    C ... )
    SCF
    ADD A,A
    LD A,B
    OR C
    JR NZ,LOOP
    RET

    C)
    LD B ...
    Dr BEEP Dr BEEP July 2002 Games
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... /> - draw our 'road' by using a loop to create two vertical stripes ... we want to loop.
    Insert line 7, 'ld b,24 ;print road ...
    dec bc
    ld a,b
    or c
    jr nz, wait ... posn
    xor a
    ld b,24
    fillscreen
    ld (hl),a
    inc ...
    bigjon bigjon November 2009 Development
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... ld hl, RotateTable
    ld a,c
    and 7
    ld b,0
    ld c,a ... ld (hl),a
    inc l
    ld a,d
    xor (hl)
    ld (hl),a ... br /> _SpriteLoop: DEFW 0 ; sprite loop size.

    ; ...
    robpearmain robpearmain October 2004 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ... ]
    ; and moddified to be a loop
    ;The arrow comments show ...
    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…

    ... bc
    ld a,b
    or c
    jp nz,loop
    pop de ...
    ld a,c
    xor $03
    ld c,a
    ld h,$00
    ld b,$b0
    Tom-Cat Tom-Cat July 2006 Games
  • 'orange' on a spectrumalways wondered why spectrums could never seem to achieve the colour orange? wasn't one of the default colours, and don't remember seeing anything th…

    ...
    dec bc
    ld a,b
    or c
    jr nz, attrfill0 ... /> ld d,a
    ; Invert bit 3, and save in 'e'
    xor ... %00001000
    ld e,a

    ;setup ... 'q' being pressed- loop back if not
    ld a,(23560)
    cp ...
    Digital Prawn Digital Prawn August 2008 Sinclair Miscellaneous
  • Thinking in Assembly (first efforts)The following is one small routine to educate myself on a few concepts (jumps, flow control, routines, CPI): [code]searchmem xor a …

    ... /> Just move XOR A to the first line of the loop.[/quote]
    ld hl, 0 ; start searching at address 0
    search: xor a ; search ... /> jr z, found
    ld a, b
    or c ; flag decoy. BC==0 ...
    rahtgaz rahtgaz January 2009 Development
  • The Goldfinch updates thread([url=http://www.worldofspectrum.org/forums/showthread.php?t=25034]original announcement thread here[/url] - I figured it was worth starting a new to…

    ... re absolutely right! Adding a delay loop has fixed it. What ... 2s
    #0005 LD A,B
    #0006 OR C
    #0007 JR ... br /> DI
    LD BC,#692B
    XOR A
    OUT (#E3) ... data = 2bytes (**)
    LD A,B
    OR C
    JR NZ,ABC ...
    velesoft velesoft September 2009 Development
  • Sprites masterclassHi All, You guys are probably tired of explaining sprites but I'd like to clarify a few things if possible. I've sorted the vertical aspect of scro…

    ... in the table
    loop call sprite ;moves through the ... ld a,(column)
    ld e,a
    add hl,de
    ld a,(hl)
    xor c ... br /> djnz loop ;repeat 8 times
    ld hl,bits ; ... /> xor a
    ld (count),a
    ld b,51
    ld hl,bits
    ld ix ...
    R-Tape R-Tape February 2011 Development
  • Serial protocol, help!Hi, simply trying to find best way to transfer programs from PC to real ZX Spectrum for testing purposes. Under Windows I tried using Spxfr and it w…

    ... 8-N-1. the main loop sends the screen (SCR) ... /> dec bc
    ld a,b
    or c
    jr nz,populate ... to MSB of a | 4 t-states
    xor b ; negate ... to MSB of a | 4 t-states
    xor b ; negate ... to MSB of a | 4 t-states
    xor b ; negate ...
    tstih tstih May 2011 Development
  • Need help transferring a file to a Spectrum .dsk fileHello, I was wondering if anyone can help me transfer a file that I have into a spectrum *.dsk file? The background to this request is that I have r…

    ... /> xor (hl)
    ld e,a
    dec bc
    inc hl
    ld a,b ...
    or c
    jr nz,loop
    push de ...
    Battle Bunny Battle Bunny July 2011 Emulators
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... /> - draw our 'road' by using a loop to create two vertical stripes ... we want to loop.
    Insert line 7, 'ld b,24 ;print road ...
    dec bc
    ld a,b
    or c
    jr nz, wait ... posn
    xor a
    ld b,24
    fillscreen
    ld (hl),a
    inc ...
    buzzy buzzy September 2012 Development
  • Memory diagnostic toolIs there any sort of memory diagnostic tool for examining .Z80 files so I can easily identify large areas of blank memory? Scrolling through ZX Spin…

    ... c),a
    ei
    NEXT48: ld a,e
    ld (BORDCR),a
    LOOP: ld a ... ld a,56
    ld (BORDCR),a
    ret


    CLS24: ld b ... br /> xor a
    rst $10
    xor a
    Battle Bunny Battle Bunny February 2013 Development
  • Buzzer sounds tips'n'tricksSo I have an ARM Cortex M3 with a buzzer connected to its GPIO pin. And because I read this forum I know that there is no need to add a separate buzz…

    ... /> [CODE]
    ld a,(speed)
    ld b,a
    ld c,a ;8 bits are usually ... /> [CODE]
    soundlp
    xor a ;set beeper output mask off ... reached 0, continue sound loop
    pop de
    utz utz May 2013 Development
  • Spike: 48k onlyDoes anyone know what's going on with Spike? [URL=http://s1142.photobucket.com/user/daveyboyhughes/media/spike_zps232a1745.gif.html][IMG]http://i114…

    ... /> loop ld a,(hl)
    ;
    ; encrypt/decrypt
    ;
    dec ix
    xor ... (ix+$00)
    ;
    ld (hl),a
    inc hl ... /> dec bc
    ld a,b
    or c
    jr nz,loop
    ;
    jp jp July 2013 Games
  • Assembly - Loops bigger than 255Hi, It looks like it's a bit difficult to make loops with more than 255 cycles on Z80 machine code, since the 16-bit decrements (DEC) do not alter a…

    ... /> LD C,D ; Load the higher byte into C
    XOR A ; Prepare to test B ...
    OR B ; If B is ... BC
    LD A,B
    OR C
    JR NZ,loop ; If BC not ...
    Einar Saukas Einar Saukas October 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…

    ... BINsize)/3 (loop counter)
    ld hl,$ffff
    ld (hl),0 ... ld b,3 ;move 3 bits at a time (1 octal digit) ...
    xor a ... BINsize bits)
    ld a,b
    or c
    jp z,EndLoop ...
    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…

    ... ;BC=(BINsize)/3 (loop counter)
    ld de,$ffff ;DE=decimal ... ld b,3 ;move 3 bits at a time (1 octal digit) ...
    xor a ... BINsize bits)
    ld a,b
    or c
    jp z, ...
    Battle Bunny Battle Bunny December 2013 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... it's essential to include a delay loop in order to see ... ;align taps 7 (A) & 10 (E)
    xor e
    and ...
    dec bc
    ld a,b
    or c
    jr nz,LOOP10 ...
    Battle Bunny Battle Bunny February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... that it cycles through the loop eight times (FLASH & ... ;align taps 7 (A) & 10 (E)
    xor e
    and ... /> ld a,b
    or c
    jp nz,LOOP10
    ld bc,(CHANGED)
    ld a,b ...
    Battle Bunny Battle Bunny February 2014 Development
<1234567…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