A89: Preservation of flags


[Prev][Next][Index][Thread]

A89: Preservation of flags




 > I need a way to push the z-flag and pop it.  What is the best way? When I mess 
 > with the SR register I get Priviledge (sp?) errors.  What is the quickest and 
 > safest way?  Would it involve the scc instructions or what?

Access the SR as a byte and you won't get prvilege violations.
Only the top byte is privileged.

Regards,

Zoltan


References: