cancel
Showing results for 
Search instead for 
Did you mean: 

How can i read the condition code register?

ccyy2002
Associate
Posted on July 27, 2009 at 12:16

How can i read the condition code register?

2 REPLIES 2
ccyy2002
Associate
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?

good2dog
Associate II
Posted on May 17, 2011 at 15:04

push cc

pop a

regards