From 7915657355c6745fc2aa36a8eef09ae1dd0dda94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Wed, 25 Jan 2017 10:09:50 +0100 Subject: [PATCH] Add bit testing macro. --- src/rk65c02.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rk65c02.h b/src/rk65c02.h index 8c748f8..265080b 100644 --- a/src/rk65c02.h +++ b/src/rk65c02.h @@ -33,6 +33,8 @@ struct reg_state { #define STACK_START 0x0100 #define STACK_END 0x01FF +#define BIT(val,n) ((val) & (1 << (n))) + typedef struct reg_state reg_state_t; struct rk65c02emu {