flat assembler
Message board for the users of flat assembler.

Index > Main > Non-canonical two's complement arithmetics

Author
Thread Post new topic Reply to topic
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 17 Dec 2008, 18:09
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.
Post 17 Dec 2008, 18:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.