From e80a5bfcd4013fd867fb9476d67c721aec3a6754 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Thu, 29 Nov 2018 00:14:44 +0000 Subject: [PATCH] Whoops: the bit instruction *can* have its return value discarded... Signed-off-by: Adrian Conlon --- Z80/inc/Z80.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Z80/inc/Z80.h b/Z80/inc/Z80.h index 7fe8369..0c483bd 100644 --- a/Z80/inc/Z80.h +++ b/Z80/inc/Z80.h @@ -359,7 +359,7 @@ namespace EightBit { [[nodiscard]] uint8_t sll(uint8_t operand); [[nodiscard]] uint8_t srl(uint8_t operand); - [[nodiscard]] uint8_t bit(int n, uint8_t operand); + uint8_t bit(int n, uint8_t operand); [[nodiscard]] static uint8_t res(int n, uint8_t operand); [[nodiscard]] static uint8_t set(int n, uint8_t operand);