put two flags into bit addressable ram

This commit is contained in:
Mirko Scholz 2020-09-04 22:55:16 +02:00
parent fb76fac249
commit a8cf1a881b
4 changed files with 5 additions and 3 deletions

View File

@ -33,7 +33,7 @@ __xdata dec80 LastX;
#define STACK_T 3
uint8_t NoLift = 0;
uint8_t IsShifted = 0;
__bit IsShifted = 0;
//stack "grows" towards 0
__xdata dec80 Stack[STACK_SIZE]; //0->x, 1->y, 2->z, 3->t initially

View File

@ -32,7 +32,7 @@ void process_cmd(char cmd);
//push_decn is equivalent to "set_x()" if no_lift is true
void push_decn(__xdata const char* signif_str, __xdata exp_t exponent);
extern uint8_t NoLift;
extern uint8_t IsShifted;
extern __bit IsShifted;
void clear_x(void);
__xdata dec80* get_x(void);

View File

@ -49,7 +49,7 @@ QSemaphore LcdAvailable(1);
int8_t NewKeyBuf[4];
volatile uint8_t new_key_write_i;
volatile uint8_t new_key_read_i;
volatile uint8_t NewKeyEmpty;
volatile __bit NewKeyEmpty;
#define INCR_NEW_KEY_I(i) i = (i + 1) & 3

View File

@ -48,7 +48,9 @@ void backlight_off(void);
#endif
#if defined(DESKTOP) || defined(IS_ECLIPSE)
#include <stdbool.h>
char* u32str(uint32_t x, char* buf, uint8_t base);
#define __bit bool
#define __code
#define __xdata
#define __idata