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>
  • 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
  • LDI questionWhen using LDI (or LDD) is it possible to access the value that is transfered from (HL) to (DE), or does the Z80 use an internal data cache to store …

    ... s interesting that LDI and CPI both take 16 T- ... states as the CPI instruction isn't having ... the final M cycle of CPI. My guess is that ... A OR output byte to (BC)
    ?? decrement BC (or B)
    M5 ... />
    Now, where the decrement BC/B occurs I'm not ...
    Jonathan Harston Jonathan Harston March 2014 Development
  • Run Length DecodingRun length encoding/decoding is far less efficient than using a modern compression program.

    ... writing (we could use, ooh, BC). Then you just use a ... (DE), increment HL, DE, decrement BC, check for BC == 0, and loop. If ...
    icabod icabod March 2006 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…

    ... that the ldis are decreasing bc by 1 as well ... by themselves will have reduced bc by 8*32 without ... enough times (8*32 decrement bc by ldis and 8 decerements ... set the parity flag when BC reaches zero so you ... M_END_ISR_LIGHT that only saves AF,BC,DE,HL but this ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 Development
  • ZX Spectrum (16K) sound/beepHi all, I think I'm in right place now, I've tried to find an answer how to generate two channel sound using ZX Spectrum 16K. Only think I've found …

    ...
    LD BC,(work1) ; BC contains the note ...
    subr: PUSH BC ; Start of subroutine. Save ... /> DEC H ; Decrement counter for first channel ... labl5: POP BC ; Restore BC
    DEC BC ; Decrement BC
    LD ...
    Matt_B Matt_B November 2008 Sinclair Basic
  • 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
  • The Pros and Cons of "alternative" assembler syntaxContinuing from [URL]http://www.worldofspectrum.org/forums/showpost.php?p=720754&postcount=72[/URL] [QUOTE=u6c87;720754]But that wouldn't change if…

    ... loop mov a,b ;Test BC,
    1001 B1 ora c ...
    1007 0B dcx b ;Decrement BC
    1008 C3 00 10 ...
    Alcoholics Anonymous Alcoholics Anonymous September 2013 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
  • 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…

    ... 8 LINES
    LOOP2 PUSH BC ; STORE THE LINE COUNTER< ... br />
    LD BC,32 ; SET THE COUNTER FOR ... /> POP BC ; RETRIEVE THE LINE COUNTER
    DJNZ LOOP2 ; DECREMENT THE LINE ... screen, after popping BC the DJNZ doesn't decrement it by one ...
    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 ... /> CALL Process_byte
    DEC B ; Decrement quantity.
    RET Z ; Return ...
    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 …

    ... A ; Set MSB of BC to 0.
    ... 8013 EDA1 16 Skip CPI ; Zero flag reset when ... B=0
    DJNZ Next_byte ; Decrement quantity.


    Fraser Fraser July 2002 Sinclair Miscellaneous
  • Fastest way to mirror a byte?I.E. turning 01100000 into 00000110, in assembly. I'm trying but I suck at stuff with rotation and the carry bit. Any pointers?

    ... CPD and repeat until BC=0.
    CPI Compare location (HL) and ... , decr BC.
    CPIR Perform a CPI and repeat until BC=0.
    decrement DE,HL,BC.
    LDDR Perform an ...
    Ralf Ralf October 2011 Development
  • Experimenting with turboloadersHello, My first post, having lurked here for a while. I'm a lifelong computer nerd, Spectrum fan since childhood in the eighties, and have recently…

    ...
    dec bc ; decrement byte counter (past ... byte)
    push bc ; save byte counter< ... bc ; restore byte counter
    cpi ; advance source pointer and decrement ...
    stephenw32768 stephenw32768 August 2013 Development
  • 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
  • DJNZ e ProblemI'm trying to write the DJNZ e instruction as part of the development of my emulator and can't get it to work. Here is the in and out states of Phil…

    ... :[/u]
    AF 0x00
    BC 0x0800
    PC 0X0000
    AF 0x0000
    BC 0x0001
    PC 0x0004

    I end up with BC = 0x0001 and PC = 8. Here ... />
    [code] // Get regB and decrement it by one
    dim ...
    MadDoc MadDoc June 2008 Emulators
  • 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
  • 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…

    ... djnz.
    djnz stands for Decrement then Jump if Not Zero ... over the instruction to increment / decrement the car position.
    Replace ... to (de)),Decrement (hl and de) and Repeat (until bc is zero ...
    gameover
    pop bc ;retrieve score
    pop hl ...
    bigjon bigjon November 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
  • MGT MOUSE - exist really ?I read disassembly of +D rom/ram code and from address #2249 is routine for read MGT MOUSE ports. I can't find any info about "MGT MOUSE". Exist real…

    ... .

    2249 TEST_MOUSE LD BC,#03FF The MGT mouse port ... .
    226D DEC (HL) Otherwise decrement x-coordinate.
    226E RET ...
    velesoft velesoft August 2013 Hardware
  • 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
  • A sped up pixel-shift routine for 1-byte–wide spritesHere’s an optimized (for speed) real-time sprite shifting routine for sprites that are one byte wide. It uses no memory variables for storage of inte…

    ...

    msl_draw_loop
    push bc ;store counter
    ld c ...
    rra
    djnz msl_shift ;decrement counter, rinse and repeat
    pop bc ;restore loop counter
    djnz ...
    Ast_A_Moore Ast_A_Moore February 2017 Development
  • High score table routineI wrote this general purpose high score table routine. It stores 5 scores and displays them alongside the player names, which are 8 characters long. …

    ... LD DE,FIFTH
    LD BC,2
    LDIR ; ...and ... ...
    DEC A ; ...otherwise decrement A until it is 0 ... LD DE,FOURTH
    LD BC,2
    LDIR
    ... LD DE,SECOND
    LD BC,2
    LDIR
    ...
    Alessandro Grussu Alessandro Grussu July 2017 Assembler
  • Printing text, part MMXIIXI'm pretty sure there's been a zillion threads about this already, and I don't think it's the first one by myself either, but here goes. Proportiona…

    ... iy, #0x00
    add iy, bc

    ; destination ... jr NC, prewidthloop
    ; pre-decrement target space
    ld a ... rl b

    ; Decrement pixels that fit in target ... hl
    bytefull:
    ; Decrement width, loop if not done ...
    Sol_HSA Sol_HSA December 2018 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…

    ... byte in window.
    ld bc,4096 ; size of area ... to the left.
    dec bc ; loop counter.
    ld ... lot of processor time to decrement a counter, check to ... zero prior to doing the decrement. If you are very ...
    jonathan jonathan September 2004 Development
<1234567…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Goodbye Z80
    i love the z80s on 6:28PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 6:04PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

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