31 lines
461 B
C
31 lines
461 B
C
/*
|
|
* calc.h
|
|
*
|
|
* Created on: Mar 28, 2019
|
|
*/
|
|
|
|
#ifndef SRC_CALC_H_
|
|
#define SRC_CALC_H_
|
|
|
|
#include <stdint.h>
|
|
#include "decn/decn.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void process_cmd(char cmd);
|
|
|
|
void push_decn(const char* signif_str, exp_t exponent, uint8_t no_lift);
|
|
|
|
void clear_x(void);
|
|
void set_x(const char* signif_str, exp_t exponent);
|
|
__xdata dec80* get_x(void);
|
|
__xdata dec80* get_y(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SRC_CALC_H_ */
|