Skip to main content
Visitor II
July 27, 2009
Question

How can i read the condition code register?

  • July 27, 2009
  • 2 replies
  • 635 views
Posted on July 27, 2009 at 12:16

How can i read the condition code register?

    This topic has been closed for replies.

    2 replies

    ccyy2002Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:04

    i use the following instruction, but cann't get the value of CC(condition code register)

    ld a, cc; //error in compile

    ld a, $7f09; //the value of A is 0x00

    how can i get the value of cc?

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:04

    push cc

    pop a

    regards