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.005s
<1234567…34>
  • finding largest value (z80 assembly)suppose we have to write z80 program which requires to find the biggest value in a block of memory starts from the address 101h until address stored …

    ... block to search
    load bc with the length of the ...
    Kiwi Kiwi April 2006 Development
  • finding largest value (z80 assembly)suppose we have to write z80 program which requires to find the biggest value in a block of memory starts from the address 101h until address stored …

    ... block to search
    load bc with the length of the ...
    4electros 4electros April 2006 Development
  • playing sound samples from Boriel's zxbasic-compilerfirst of all, sorry if it sounds confusing if i'm posting this thread here instead instead of at Discussions:SinclarBasic it's because this is more …

    ... /> ld hl,sample
    ld bc,length

    exx

    16 cpi ; hl++, bc--, p/v flag set if ... bc==0
    10 jp po, ...
    Alcoholics Anonymous Alcoholics Anonymous October 2011 Development
  • Is ESXDOS flexible enough to incorporate e.g. Spectranet commands?I was just discussing the idea with someone about the wish some people have to be able to combine interfaces such as DivIDE (Plus) / DivMMC EnJOY! wi…

    ... position

    cpi ; hl++, bc--

    ld a ... ; de = void *buffer
    ; bc = uint buffer_len
    ;
    ; ... byte written)
    ; bc = remaining space in buffer< ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Hardware
  • BC BillThis is embarrassing but here goes... I'm playing BC Bill using ZX32. On the control menu I press 2 to select 'Kempston'. What do I need to do then …

    ... ...

    I'm playing BC Bill using ZX32. On the ...
    Steve B Steve B May 2004 Games
  • 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
  • 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 …

    ... concepts (jumps, flow control, routines, CPI):

    [code]searchmem
    [COLOR=DimGray]; ... test for bc==0 here[/COLOR]
    jr ...
    push hl
    pop bc ; retrieve address
    ret
    rahtgaz rahtgaz January 2009 Development
  • CPI emulationI'm currently writing Sinclairean's emulation assembly for the CPI/CPD/CPIR/CPDR instruction group. Does anybody know what exactly the behavior of th…

    ... 's emulation assembly for the CPI/CPD/CPIR/CPDR instruction group ...
    Madonna Mk 2 Madonna Mk 2 March 2010 Emulators
  • BC's Quest for Tires code sheet missingSpeaking of [URL="http://www.worldofspectrum.org/forums/showthread.php?t=35314"]missing code sheets[/URL], it appears the sheet for [URL="http://www.…

    ... .org/infoseekid.cgi?id=0000477"]BC's Quest for Tires[/URL ...
    mheide mheide August 2011 Support files
  • SBC IX,DE/BCAlways wondered why there wasn't a SBC IX, DE/BC command.... so have to use PUSH HL ; save original HL PUSH IX ; IX on stack POP HL ; IX …

    ... 't a SBC IX, DE/BC command....

    so have ... is the value to subtract, BC is the counter. Another note ...
    MatGubbins MatGubbins April 2014 Development
  • Fuse tests - INC BC causes contention delayHi all, In the FUSE test suite it has the following for the output of opCode 0x3 (INC BC): 0 MC 0000 4 MR 0000 03 4 MC 0001 …

    ... output of opCode 0x3 (INC BC):

    0 MC 0000 ... understand is why incrementing the BC pair should introduce two contentions ...
    garethadams garethadams July 2015 Emulators
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

    ... />
    LOOP1 LD BC,8 ; SET THE COUNTER FOR ... LINES
    LOOP2 PUSH BC ; STORE THE LINE COUNTER ...

    LD BC,32 ; SET THE COUNTER FOR ... NEXT LINE
    POP BC ; RETRIEVE THE LINE COUNTER ... on screen, after popping BC the DJNZ doesn't ...
    mulder mulder January 2016 Development
  • 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 …

    ... C,B ; Set LSB of BC to B.
    XOR A ... ; Set MSB of BC to 0.
    LD B ... no reset bits.
    Skip CPI ; Zero flag reset when 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 …

    ... C,B ; Set LSB of BC to B.
    800D AF ... XOR A ; Set MSB of BC to 0.
    800E 47 ... .
    8013 EDA1 16 Skip CPI ; Zero flag reset when a ...
    Fraser Fraser July 2002 Sinclair Miscellaneous
  • 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…

    ... Spectaculator 5.3 fails in cpi, cpd and the group ( I ... ,(+1)
    bit n,
    cpi


    And I ...
    Metalbrain Metalbrain December 2006 Emulators
  • Machine code help pls: LDI example[deleted]

    ... Found code also execute if BC=0? After all this ... quote]

    Nope, a CPI instruction only sets/resets the ... comparison - the value of BC doesn't enter into it ... can think of CPI as internally doing a DEC BC instruction, which ... that's the way CPI works...)
    gasman gasman December 2008 Development
  • Machine code help pls: LDI example[deleted]

    ... , this time regarding CPI ...

    CPI compares A with ... (HL), incs HL and decs BC (the ... long:

    Search CPI
    JR Z, Found< ...
    By heart,
    CPI set Z if A=(HL ... this

    CPI
    JR Z,AISHL
    Dr BEEP Dr BEEP December 2008 Development
  • Machine code help pls: LDI example[deleted]

    ... BEEP;320895]By heart,
    CPI set Z if A=(HL ... ) and sets P-vlag when BC=0

    You can ... do this

    CPI
    JR Z,AISHL
    yup,
    LDI/LDD
    CPI/CPD

    are same ... /V flag to zero when BC==0

    JP PO ...
    Fikee Fikee December 2008 Development
  • 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 …

    ... concepts (jumps, flow control, routines, CPI):

    [code]searchmem
    [COLOR=DimGray]; ... test for bc==0 here[/COLOR]
    jr ...
    push hl
    pop bc ; retrieve address
    ret
    rich_chandler rich_chandler January 2009 Development
  • 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 …

    ... a = 0
    ld bc, 0ffffh ; search the entire ... address 0
    search: cpi ; a-(HL)
    ... or c ; flag decoy. BC==0
    ld a, ... push hl
    pop bc ; retrieve address
    ...
    rahtgaz rahtgaz January 2009 Development
  • 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 …

    ... a = 0
    ld bc, 0ffffh ; search the entire ... address 0
    search: cpi ; a-(HL)
    ... or c ; flag decoy. BC==0
    jr nz, ... push hl
    pop bc ; retrieve address
    ...
    rich_chandler rich_chandler January 2009 Development
  • 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 …

    ... />
    [code]searchmem
    ld bc, 0ffffh ; search the entire memory ... for 0. reset flags
    cpi ; a-(HL)
    jr z ...
    push hl
    pop bc ; retrieve address
    ret
    rahtgaz rahtgaz January 2009 Development
  • 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 …

    CPI and friends affect the parity ... based on the value of BC. Whilst BC > 0, the parity ... .

    [code]
    search: cpi ; a-(HL)
    jr z ...
    [COLOR=DimGray]; ... test for bc==0 here[/COLOR]
    jp ...
    Bob Stains Bob Stains January 2009 Development
  • 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 …

    ... for 0. reset flags
    cpi ; a-(HL)
    jr z ... found
    jp pe, search ; BC!=0
    ret ; not found ... br /> push hl
    pop bc ; retrieve address
    ret[/ ...
    rahtgaz rahtgaz January 2009 Development
  • 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 …

    ... for 0. reset flags
    cpi ; a-(HL)
    jr z ... found
    jp pe, search ; BC!=0
    ret ; not found ... br /> push hl
    pop bc ; retrieve address
    ret
    rahtgaz rahtgaz January 2009 Development
  • 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 …

    ... for 0. reset flags
    cpi ; a-(HL)
    jr z ... .found
    jp pe, .search ; BC!=0
    ret ; not found ... br /> push hl
    pop bc ; retrieve address
    ret< ...
    rahtgaz rahtgaz January 2009 Development
  • 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 …

    ... for 0. reset flags
    cpi ; a-(HL)
    jr z ... .found
    jp pe, .search ; BC!=0
    ret ; not found ... br /> push hl
    pop bc ; retrieve address
    ret< ...
    rich_chandler rich_chandler January 2009 Development
  • 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 …

    ... ret po
    jr .search ; BC!=0
    ret ; not found ... the entire memory
    .search cpi ; a-(HL)
    jr ... ret po
    jr .search ; BC!=0
    ret ; not found ...
    Dr BEEP Dr BEEP January 2009 Development
  • 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 …

    ... s worth mentioning that CPI doesn't have to ... HL = HL + 1
    dec bc ;BC = BC - 1

    ld ... !

    cpi ;HL = HL + 1, BC = BC -1
    ;And ... the second routine the CPI isn't being used ...
    Chris Pile Chris Pile 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…

    ...
    cpi ; inc hl, dec bc, set PO=true if BC=0
    CPI trick[/url] :-)
    gasman gasman September 2009 Development
<1234567…34>

Latest Posts

  • Frankie's ZX Spectrum Digouts
    Zup on 1:58PM
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on 1:02PM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 12:42AM
  • 1992 Spectrum Software
    harriusherbartio on April 7
  • Celebrity deaths...
    mel the bell on April 7
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 7
  • spectrum in netflix bomb and the cold war documentary
    zxbruno on April 7
  • Are there any decent Speccy Flight Sims?
    harriusherbartio on April 7
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 6
  • Tradtional games that were not programmed on the ZX Spectrum
    harriusherbartio on April 6

HitBox

Word Docs Hits
cpi 101 164
ldecrement 0 0
bc 3.6K 14K

Related Threads

  • BC 's Quest For Tireswhen playing this game you can only use keyboard right?.WRONG.if you press the letter "p" while the game has started(paused and waiting for input)a c…
  • BC Bill does this game work with a emulator?Can anyone get this game running with a emulator. I get as far as the main screen but can't start the game
  • BC BillThis is embarrassing but here goes...<br /> <br /> I'm playing BC Bill using ZX32. On the control menu I press 2 to select 'Kempston'. What do I need…
  • 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…
  • Problems with BC bill gameI have loaded this game with several emulators and game files with the same result:<br /> you can choose the input -&gt; sinclair, kempston, etc but …
  • CPI emulationI'm currently writing Sinclairean's emulation assembly for the CPI/CPD/CPIR/CPDR instruction group. Does anybody know what exactly the behavior of th…
  • BC's Quest for Tires code sheet missingSpeaking of [URL="http://www.worldofspectrum.org/forums/showthread.php?t=35314"]missing code sheets[/URL], it appears the sheet for [URL="http://www.…
  • SBC IX,DE/BCAlways wondered why there wasn't a SBC IX, DE/BC command....<br /> <br /> so have to use<br /> <br /> PUSH HL ; save original HL<br /> PUSH IX ; …
  • Fuse tests - INC BC causes contention delayHi all,<br /> <br /> In the FUSE test suite it has the following for the output of opCode 0x3 (INC BC):<br /> <br /> 0 MC 0000<br /> 4 M…
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

Related Searches

  • ld bc eostr string
  • call address in bc
  • print usr bc
  • bc bill
  • bc ill brown
  • bc bill brown
  • bc kid
  • usr bc register
  • usr bc register address
  • 14 bc b9
  • cpi
  • print bc assembler
  • ld bc hl
  • cpi copy
  • bc
  • ld bc 65533 a 254 out c
  • ld bc 65533
  • screen buffer push bc
  • cpi decrement bc
  • cpi ldecrement bc chris pile

Copyright © 2024 World of Spectrum