4 ms·
Well I have an important resource for this, the book "Hacker's Delight": https://www.amazon.com/Hackers-Delight-2nd-Henry-Warren/dp/0321842685 https://www.amaz
by jhallenworld 6y ago
Well I have an important resource for this, the book "Hacker's Delight":
https://www.amazon.com/Hackers-Delight-2nd-Henry-Warren/dp/0321842685 https://www.amazon.com/Hackers-Delight-2nd-Henry-Warren/dp/0...
This book will tell you how to efficiently generate condition flag values such as carry and overflow. It's easy when when you have extra bits available (such as emulating an 8 or 16 bit processor on a 32-bit processor), but less obvious when you are emulating a 32-bit processor on a 32-bit processor from a high level language.