In microprocessor 8085, how can I clear/reset all flags(s,z,ac,p,cy) without affecting contents of accumulator?
You could leverage the POP PSW instruction.


Move the current contents of the accumulator into the corresponding part of a register pair, for example A -> C
Zero the other half of that register pair
Push that register pair onto the stack
Pop the accumulator and PSW off the stack.


Looking up the actual 8085 mnemonics and verifying that it is the lower (vs upper) half of the register pair which corresponds to the accumulator in a POP PSW is left as an exercise to the reader.

If this seems roundabout, while it is possible there is a better way, keep in mind that there isn't ordinarily a reason to do what you are trying to do, apart from a subroutine call/return or more drastic context switch like a hardware or software interrupt (or obscure things like writing a debugger), and so the stack is the most common source of re-initialization of the flags.