We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8237e5f commit 6eeaa18Copy full SHA for 6eeaa18
z80.c
@@ -123,11 +123,11 @@ static inline void inc_r(z80* const z) {
123
124
// returns if there was a carry between bit "bit_no" and "bit_no - 1" when
125
// executing "a + b + cy"
126
-static inline bool carry(int bit_no, uint16_t a, uint16_t b, bool cy) {
+/*static inline bool carry(int bit_no, uint16_t a, uint16_t b, bool cy) {
127
int32_t result = a + b + cy;
128
int32_t carry = result ^ a ^ b;
129
return carry & (1 << bit_no);
130
-}
+}*/
131
132
// returns the parity of byte: 0 if number of 1 bits in `val` is odd, else 1
133
static inline bool parity(uint8_t v) {
0 commit comments