Skip to content

Commit 6eeaa18

Browse files
committed
jgz80: Comment unused carry function
1 parent 8237e5f commit 6eeaa18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

z80.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ static inline void inc_r(z80* const z) {
123123

124124
// returns if there was a carry between bit "bit_no" and "bit_no - 1" when
125125
// executing "a + b + cy"
126-
static inline bool carry(int bit_no, uint16_t a, uint16_t b, bool cy) {
126+
/*static inline bool carry(int bit_no, uint16_t a, uint16_t b, bool cy) {
127127
int32_t result = a + b + cy;
128128
int32_t carry = result ^ a ^ b;
129129
return carry & (1 << bit_no);
130-
}
130+
}*/
131131

132132
// returns the parity of byte: 0 if number of 1 bits in `val` is odd, else 1
133133
static inline bool parity(uint8_t v) {

0 commit comments

Comments
 (0)