INR & DCR affect the flag register

Light Poster
2May2007,09:28   #1
swaeded's Avatar
Do the increment and decrement instructions affect the flag register in 8085 instruction set........
Team Leader
3May2007,01:24   #2
DaWei's Avatar
If I recall correctly, they affect all the flags but the carry flag. If you're programming in 8085 asm, you surely must have an instruction set reference.
Light Poster
3May2007,15:35   #3
swaeded's Avatar
My sir told that DCR affects the flag but INR doesn't affect the flag... is it so...
Team Leader
3May2007,17:26   #4
DaWei's Avatar
You are saying 'flag', but there is a whole set of flags. I recommend you read your materials, and have your sir do the same.