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.004s
<1234567…34>
  • 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 …

    ... it earlier). E.g.:
    CPI: MSB of ALU16_01+1
    in our case:
    CPI: MEMPTR++
    CPD: MEMPTR-- (in ... CPU is to increment or decrement 16-bit values. And task ...
    Vladimir Kladov Vladimir Kladov April 2006 Emulators
  • 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 …

    ... it earlier). E.g.:
    CPI: MSB of ALU16_01+1
    in our case:
    CPI: MEMPTR++
    CPD: MEMPTR-- (in ... CPU is to increment or decrement 16-bit values. And task ... ; it must be read as CPI: MSB of (ALU16_01+1). There ...
    Luca Luca April 2006 Emulators
  • 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 …

    ... . actually, INC/DEC BC are used in MEMPTR decrement cycle in our ...
    boo_boo boo_boo April 2006 Emulators
  • 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 …

    ... -(hl)

    djnz loop ; decrement b until b=0
    CPI to show how clever you ... though that a version without CPI might be a touch faster ...
    Alcoholics Anonymous Alcoholics Anonymous April 2006 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ... next address.
    dec bc ; Decrement the counter.
    ... byte.
    ld bc,4132 ; BC store the length.
    ld bc,(checksum) ; Put the result ...
    Matt_B Matt_B May 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…

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


    And I ...
    Metalbrain Metalbrain December 2006 Emulators
  • 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…

    ... />
    STARLOOP1
    PUSH BC
    STARLOOP2
    CALL RAND16 ... stars initially
    POP BC
    DEC BC
    LD A, ... CALL MOVEMENT

    PUSH BC ; save counter again

    ADD HL,BC
    DEC (HL) ; Decrement every star by 1 ...
    Digital Prawn Digital Prawn December 2008 Development
  • 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
  • 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 …

    ...

    LD BC,(FailedAddr)
    LD HL,String4 ... /> LD BC,(TotalErrors)
    INC BC
    LD (TotalErrors),BC
    ... pointer
    DEC C ;Decrement charcater
    ADD A ... br /> Call FailedByte
    POP BC

    Inversion1TestPass
    Digital Prawn Digital Prawn January 2009 Games
  • 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
  • Simple text compressionI just checked one idea about text compression. Do not take it as recomendation but rather as info which can you save some time when you are solving …

    ...
    RET Z

    ; Decrement string index count
    DEC ... char in 'A' (also in BC for BASIC programmers). A return ...
    BloodBaz BloodBaz May 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
  • Framerate of arcade gamesThe Golden Age of video games coincided with the birth of 8-bit home computing; this is why every computer of that era has a slew of really bad Pacma…

    ... value, then looping a decrement instruction until BC is zero.

    ajmoss ajmoss November 2009 Games
  • Framerate of arcade gamesThe Golden Age of video games coincided with the birth of 8-bit home computing; this is why every computer of that era has a slew of really bad Pacma…

    ... value, then looping a decrement instruction until BC is zero.

    Fikee Fikee November 2009 Games
  • Framerate of arcade gamesThe Golden Age of video games coincided with the birth of 8-bit home computing; this is why every computer of that era has a slew of really bad Pacma…

    ... value, then looping a decrement instruction until BC is zero.

    jonathan jonathan November 2009 Games
  • Spin Assembler DirectivesLeading on from [URL="http://www.worldofspectrum.org/forums/showpost.php?p=402514&postcount=65"]jp's recent post in Spin 0.7 Public Testing thread[/U…

    ... :

    [code]
    (S: '(BC)'; I: 138), (S: '(C)'; I ... : 177),
    (S: 'BC'; I: 113),
    (S: 'BC'#39; I: 117 ... : 11+($FFEDB9 shl 8)), (S: 'CPI'; I: 12+($FFEDA1 shl 8 ...
    Dunny Dunny November 2009 Emulators
  • Spin Assembler DirectivesLeading on from [URL="http://www.worldofspectrum.org/forums/showpost.php?p=402514&postcount=65"]jp's recent post in Spin 0.7 Public Testing thread[/U…

    ... :

    [code]
    (S: '(BC)'; I: 138), (S: '(C)'; I ... : 177),
    (S: 'BC'; I: 113),
    (S: 'BC'#39; I: 117 ... : 11+($FFEDB9 shl 8)), (S: 'CPI'; I: 12+($FFEDA1 shl 8 ...
    jp jp November 2009 Emulators
<1234567…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 4:10PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

HitBox

Word Docs Hits
cpi 101 164
decrement 190 311
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
  • otdr decrement
  • ay envelope decrement
  • cpi copy
  • decrement screen line
  • bc
  • cpi ldecrement bc
  • cpi ldecrement bc chris pile

Copyright © 2024 World of Spectrum