Statement: Write a set of instructions to alter the contents of flag register in 8085.
PUSH PSW : Save flags on stack
POP H : Retrieve flags in 'L'
MOV A, L : Flags in accumulator
CMA : Complement accumulator
MOV L, A : Accumulator in 'L'
PUSH H : Save on stack
POP PSW : Back to flag register
HLT :Terminate program execution
Saturday, September 12, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment