Message board for the users of flat assembler.
> Main > Non-canonical two's complement arithmetics
Some bit indices used below:
MS: most significant bit in operand;
LSZ: least significant 0 bit;
LSNZ: least significant 1 bit.
INC: invert bits LSZ…0.
CF: not changed; AF: LSZ > 3; OF: LSZ == MS.
DEC: invert bits LSNZ…0.
CF: not changed; AF: LSNZ > 3; OF: LSNZ == MS.
NEG: invert bits MS…LSNZ+1.
CF: not ZF; AF: LSNZ < 4; OF: LSNZ == MS.
"Don't belong. Never join. Think for yourself. Peace." – Victor Stone.
|17 Dec 2008, 18:09||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar.
Powered by rwasa.