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.007s
<1234567…34>
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    How can I check the state of the flag register?

    Example the zero flag.

    Is this only possible with JP opps?
    wibble wibble September 2013 Development
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    ... state of the flag register?

    Example the zero flag.

    u6c87 u6c87 September 2013 Development
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    ... have the whole of the flag register contents right?[/QUOTE]
    The jr nz (Non Zero) tests the zero flag, and jumps back to ... 6, e ; bit 6 = Z flag.
    jr nz, loop ; If ...
    u6c87 u6c87 September 2013 Development
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    ... /> The jr nz (Non Zero) tests the zero flag, and jumps back to ... 6, e ; bit 6 = Z flag.
    jr nz, loop ; If ...
    wibble wibble September 2013 Development
  • Compiler conventions for passing args/return valuesI've been mulling over this for a while, but I can't spot it covered anywhere. There are various methods for passing args and return values between …

    ... state of the carry flag when the function returns? ...
    Sure. The carry flag (well, all the flags) are ... to a consistent carry flag state makes things slower ... is >= where the zero flag needs to be taken ... value using the carry flag state and more often ...
    u6c87 u6c87 September 2013 Development
  • Compiler conventions for passing args/return valuesI've been mulling over this for a while, but I can't spot it covered anywhere. There are various methods for passing args and return values between …

    ... ]
    Sure. The carry flag (well, all the flags) ... is >= where the zero flag needs to be taken into ... need to complement the flag in the function. This ... the result to test for zero on an integer.
    ... be the carry flag, sometimes the Z flag, sometimes a ...
    Alcoholics Anonymous Alcoholics Anonymous September 2013 Development
  • What would be the simplest tape loading routine?I'm searching for some small assembly snippet I can use to load a (headerless or not) block from tape into RAM I can embed in my C games to load furt…

    ... INC D This resets the zero flag. (D
    cannot ... br /> CP A Set the zero flag.

    The ... is an error. The zero flag then signals 'BREAK pressed' ...
    jamorski jamorski October 2013 Development
  • What would be the simplest tape loading routine?I'm searching for some small assembly snippet I can use to load a (headerless or not) block from tape into RAM I can embed in my C games to load furt…

    ... interrupts
    inc d ; reset zero flag
    ex af, af' ; A ... =on)
    cp a ; set zero flag

    org 0x056b
    or d ; zero
    jr nz, ld_loop ; jump ...
    cp 1 ; set carry flag on zero
    ret ; end of ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... /> bit 7, b ; set zero flag for second pass
    ld ... interrupts
    inc d ; reset zero flag
    ex af, af' ... on)
    cp a ; set zero flag

    org 0x056b ... cp 1 ; set carry flag on zero
    ret ; end of ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... IX
    scf ; set carry flag
    ld a, 0xff ; signal ... , hl ; switch pointers and set zero flag for
    inc a ; replacement ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... bit 7, c ; set zero flag for a positive number
    ... ; leading
    inc c ; zero?
    jr nz, pf_test_2 ; jump ... /> ld a, '0' ; zero
    djnz pf_dec_0s ; loop until ... /> bit 7, (hl) ; set zero flag for positive
    set 7 ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... argument
    and a ; both zero?
    jp z, _get_char ; jump ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... zero
    jp c, tokenizer_1 ; jump if carry flag ... :
    cp a ; set zero flag

    org 0x1c11 ... ) ; exclusive or with p-flag
    and %10101010 ; ... calculator
    fstk0 ; stack zero
    fce ; exit calculator ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... _vdu_flag), d ; restore VDU flag
    ret ; and return ... :
    cp a ; clear zero flag
    ret ; end of ... and a ; clear carry flag
    ret ; end of ... hl, p_flag ; address p-flag
    jp co_change ; immediate ...
    chev chev October 2013 Development
  • Ending a DJNZ loop prematurelyHow do you exit a DJNZ loop before its finished, I've tried loading b with zero but cant get it to stop.

    ... loop by. Even by the Zero-flag since DJNZ will NOT set ...
    Dr BEEP Dr BEEP November 2013 Development
  • Ending a DJNZ loop prematurelyHow do you exit a DJNZ loop before its finished, I've tried loading b with zero but cant get it to stop.

    ... by the Zero-flag since DJNZ will NOT set the zero flag!![/QUOTE]
    David Jones David Jones November 2013 Development
  • Ending a DJNZ loop prematurelyHow do you exit a DJNZ loop before its finished, I've tried loading b with zero but cant get it to stop.

    ... needed. The condition of your flag can be reused without ANY ... , OUTINLOOP ; test was done on ZERO-flag!
    BIS0:
    NOP ; other ...
    Dr BEEP Dr BEEP November 2013 Development
  • Ending a DJNZ loop prematurelyHow do you exit a DJNZ loop before its finished, I've tried loading b with zero but cant get it to stop.

    ... needed. The condition of your flag can be reused without ANY ... , OUTINLOOP ; test was done on ZERO-flag!
    BIS0:
    NOP ; other ... , if ROUTINE conveniently sets a flag one way or another before ...
    David Jones David Jones November 2013 Development
  • z80 less than and greater thanI am writing a keyboard routine where the pressed key code number is held in A. I only want to action the number key presses 1 to 9 (codes 49-57) so …

    JP Z,loop
    for zero flag
    JP NZ.loop
    for non-zero flag

    There are 2 ways of reading the keyboard too, I just use the machine code way which is more reliable.
    slenkar slenkar February 2014 Development
  • RLD - zero-flag resultI have very rarely found need to use the RLD instruction, well, actually just this once, but everything I can find on it says that the zero-flag is s…

    ... on it says that the zero-flag is set "to reflect the ... be whether the accumulator is zero or not after the action ... is set if Accumulator is zero after operation; reset otherwise
    Stefan Drissen Stefan Drissen March 2014 Development
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... , af' ; restore carry flag
    push af ; ... get carry flag
    ccf ; swap carry flag
    ... ;
    ; f - zero flag set to draw low nibble ...
    Kiwi Kiwi September 2015 Development
  • (Collected) Darkhog's noob question about z80 assemblySince when I'm learning new language or library, I tend to ask lots of stupid (for any advanced person) questions and I don't want it to have mess up…

    ... 25. If A = 25, the zero flag is set
    JP Z ... , SOMELABEL ; if the zero flag is set, jump to SOMELABEL ...
    Morkin Morkin April 2016 Development
  • Saving and loading data in assembly.I want to add a save and load feature to an project I'm working on. Since it's not that much data in size I thought I'd use the ROM functions, but ho…

    ...
    scf ; 4t - set carry flag for error checking
    call ...
    scf ; 4t - set carry flag for error checking
    ;; following ...
    inc d ; 4t - resets zero flag
    ex af,af' ; 4t ...
    TomD TomD August 2016 Development
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    So loading A with B and OR-ing it with C is basically OR-ing the hi and lo bytes of BC?

    And the only time that can be a zero flag result is when BC reaches zero yeah?
    daveysludge daveysludge October 2016 Development
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    [quote="daveysludge;880860"]So loading A with B and OR-ing it with C is basically OR-ing the hi and lo bytes of BC?

    And the only time that can be a zero flag result is when BC reaches zero yeah?[/quote]

    Exactly.
    Bedazzle Bedazzle October 2016 Development
  • Graphics program in AssemblyHi so I think I'm getting the hang of this so I've done this program. It writes directly to the screen. I'm using ZX Spin. [code] LD HL,16384 LD B,…

    ... action depending on particular flag state. And another ... but also sets [b]zero flag[/b] to 1 ... does a jump if zero flag is not set. ... BC doesn't influence zero flag[/b] Don't ask ... =0 and correctly set zero flag we do
    ... NZ which tests zero flag as I said earlier ...
    Ralf Ralf November 2016 Assembler
  • Graphics program in AssemblyHi so I think I'm getting the hang of this so I've done this program. It writes directly to the screen. I'm using ZX Spin. [code] LD HL,16384 LD B,…

    ... ]DEC BC doesn't influence zero flag[/b] Don't ask me ...
    GReW GReW November 2016 Assembler
  • A few questions about sound and keys in BASICIf I want sound in my BASIC game I have to use BEEP right ? It seems to lock up the CPU for far too long . On Arjun's page I found how to use CALL 94…

    ... the DE register and the Zero flag indicate which keys are being ... pressed.

    . The Zero flag is reset if pressing more ... of the keys.
    . The Zero flag is set otherwise, and DE ...
    Battle Bunny Battle Bunny December 2016 Sinclair Basic
<1234567…34>

Latest Posts

  • European Software Titles with an English version
    harriusherbartio on 9:50AM
  • Cooperative Games.
    harriusherbartio on 9:27AM
  • Happy 40th Birthday to the Amstrad CPC464!
    zx1 on 9:02AM
  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Celebrity deaths...
    mel the bell on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
zero 5.2K 7.1K
flag 3K 4.8K

Related Threads

  • Five Zero Zero Zero!!!Yippee! Woo Hoo!!! and so on...<br /> <br /> :D :D :D :D :D<br /> <br /> Necros.
  • RLD - zero-flag resultI have very rarely found need to use the RLD instruction, well, actually just this once, but everything I can find on it says that the zero-flag is s…
  • Zero 0.7 / Zero 0.6.5 releasedAfter months of grueling work, I?m proud to announce the Vanilla version of Zero, which is a regular Windows version of the emulator. I?ve tried to m…
  • Interface Zero joystick interfaceHello<br /> <br /> I just built a joystick interface with instructions I found from Your Sinclair ( [url="http://www.users.globalnet.co.uk/~jg27paw4/…
  • Outrun vs Chequered FlagIn the latest issue of Retro Gamer its stated that Out Run was the first racer to have undulating hills etc. I reckon Chequered flag was, however cra…
  • Need help with my P flag!Not sure if I've emulated the P flag correctly when its comes to overflows. Here's what I've done:<br /> <br /> LD A,123<br /> LD B,16<br /> ADD A,B<…
  • Zero magazine scans/mags available?Hello.<br /> <br /> Offtopic for a Spectrum forum I know but does anyone (Mort! ?) have scans available for the Zero series of magazines? It was the …
  • Union flag on Sabre Wulf game boxLooking at this pic, I noticed that the Sabre Wulf box has a Union flag style sticker on it:<br /> <br /> [url]http://www.digitalarcade.co.uk/speccy/…
  • Any "Capture The Flag" games?There used to be a really good DOS game called Capture The Flag which featured two teams of players starting in a land area split in two. The object …
  • Overflow Flag QuestionHello all,<br /> <br /> After a long hiatus (lost all code when my MacBook was stolen) i've gone back to the drawing board and am writing a Z80 emula…

Related Searches

  • zero emulator
  • compliment z flag
  • zero not starting
  • zero emulator starting
  • zero emulator windows 10
  • leading zero
  • flag in basic
  • target renegade zero
  • parity flag
  • tape zero point
  • loading zero point
  • code zero
  • ground zero
  • zero source code
  • zero emulator source code
  • zero
  • chequered flag 128
  • sgt helmet zero
  • pixel quest zero
  • flag k

Copyright © 2024 World of Spectrum