2019-04-01 01:20:28 +02:00
|
|
|
/*
|
|
|
|
* calc.h
|
|
|
|
*
|
|
|
|
* Created on: Mar 28, 2019
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SRC_CALC_H_
|
|
|
|
#define SRC_CALC_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "decn/decn.h"
|
|
|
|
|
2019-04-04 06:33:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-04-01 01:20:28 +02:00
|
|
|
void process_cmd(char cmd);
|
|
|
|
|
2019-05-02 09:27:01 +02:00
|
|
|
//push_decn is equivalent to "set_x()" if no_lift is true
|
|
|
|
void push_decn(__xdata const char* signif_str, exp_t exponent);
|
|
|
|
extern uint8_t NoLift;
|
2019-10-03 04:47:53 +02:00
|
|
|
extern uint8_t IsShifted;
|
2019-04-01 01:20:28 +02:00
|
|
|
|
|
|
|
void clear_x(void);
|
|
|
|
__xdata dec80* get_x(void);
|
|
|
|
__xdata dec80* get_y(void);
|
|
|
|
|
2019-04-04 06:33:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-04-01 01:20:28 +02:00
|
|
|
#endif /* SRC_CALC_H_ */
|