put two flags into bit addressable ram
This commit is contained in:
parent
fb76fac249
commit
a8cf1a881b
@ -33,7 +33,7 @@ __xdata dec80 LastX;
|
|||||||
#define STACK_T 3
|
#define STACK_T 3
|
||||||
|
|
||||||
uint8_t NoLift = 0;
|
uint8_t NoLift = 0;
|
||||||
uint8_t IsShifted = 0;
|
__bit IsShifted = 0;
|
||||||
|
|
||||||
//stack "grows" towards 0
|
//stack "grows" towards 0
|
||||||
__xdata dec80 Stack[STACK_SIZE]; //0->x, 1->y, 2->z, 3->t initially
|
__xdata dec80 Stack[STACK_SIZE]; //0->x, 1->y, 2->z, 3->t initially
|
||||||
|
@ -32,7 +32,7 @@ void process_cmd(char cmd);
|
|||||||
//push_decn is equivalent to "set_x()" if no_lift is true
|
//push_decn is equivalent to "set_x()" if no_lift is true
|
||||||
void push_decn(__xdata const char* signif_str, __xdata exp_t exponent);
|
void push_decn(__xdata const char* signif_str, __xdata exp_t exponent);
|
||||||
extern uint8_t NoLift;
|
extern uint8_t NoLift;
|
||||||
extern uint8_t IsShifted;
|
extern __bit IsShifted;
|
||||||
|
|
||||||
void clear_x(void);
|
void clear_x(void);
|
||||||
__xdata dec80* get_x(void);
|
__xdata dec80* get_x(void);
|
||||||
|
@ -49,7 +49,7 @@ QSemaphore LcdAvailable(1);
|
|||||||
int8_t NewKeyBuf[4];
|
int8_t NewKeyBuf[4];
|
||||||
volatile uint8_t new_key_write_i;
|
volatile uint8_t new_key_write_i;
|
||||||
volatile uint8_t new_key_read_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
|
#define INCR_NEW_KEY_I(i) i = (i + 1) & 3
|
||||||
|
|
||||||
|
@ -48,7 +48,9 @@ void backlight_off(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DESKTOP) || defined(IS_ECLIPSE)
|
#if defined(DESKTOP) || defined(IS_ECLIPSE)
|
||||||
|
#include <stdbool.h>
|
||||||
char* u32str(uint32_t x, char* buf, uint8_t base);
|
char* u32str(uint32_t x, char* buf, uint8_t base);
|
||||||
|
#define __bit bool
|
||||||
#define __code
|
#define __code
|
||||||
#define __xdata
|
#define __xdata
|
||||||
#define __idata
|
#define __idata
|
||||||
|
Loading…
Reference in New Issue
Block a user