Re: Clever ways to hide a compare
- From: "wolfgang kern" <nowhere@xxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 22:40:12 +0000 (UTC)
Robert Redelmeier, Keyser Soze,
| > There are a few opcodes that don't affect the carry flag
| > even though they look they should, especially the NEG opcode.
|
| Some of this may be to facilitate porting from the 8080 or 8085.
|
| Equally historical, the carry flag is often left untouched in
| things like INC & DEC to make multiple precision arithmetic
| (usually involving looping) easier.
Right, find a compact list of all instructions which alter/clear/set
flags in the Appendix of the AMD64 manuals.
At least valid for all IA-32 and EMT/AMD64 CPUs.
__
wolfgang
.
- References:
- Clever ways to hide a compare
- From: jonathon
- Re: Clever ways to hide a compare
- From: Jim Leonard
- Re: Clever ways to hide a compare
- From: jonathon
- Re: Clever ways to hide a compare
- From: Keyser Soze
- Re: Clever ways to hide a compare
- From: wolfgang kern
- Re: Clever ways to hide a compare
- From: Keyser Soze
- Re: Clever ways to hide a compare
- From: Robert Redelmeier
- Clever ways to hide a compare
- Prev by Date: Re: c++ inline assembler and oop
- Next by Date: From NASM to Visusal Studio source debugging
- Previous by thread: Re: Clever ways to hide a compare
- Next by thread: Is there any example of using int 15h,ax=e820h?
- Index(es):