| 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stdbool.h> |
| 5 | |
| 6 | |
| 7 | #define ARROW_RIGHT 3 |
| 8 | #define ARROW_LEFT 4 |
| 9 | #define ARROW_UP 5 |
| 10 | #define ARROW_DOWN 6 |
| 11 | #define ARROW_RIGHT_STR "\x03" |
| 12 | #define ARROW_LEFT_STR "\x04" |
| 13 | #define ARROW_UP_STR "\x05" |
| 14 | #define ARROW_DOWN_STR "\x06" |
| 15 | |
| 16 | void charOut(uint32_t xPos, uint32_t yPos, char ch, uint32_t color); |
| 17 | void charOut2(uint32_t xPos, uint32_t yPos, char ch); |
| 18 | void charOutBg(uint32_t xPos, uint32_t yPos, char ch, uint32_t fgColor, uint32_t bgColor); |
| 19 | void charOutBig(uint32_t xPos, uint32_t yPos, char ch, uint32_t color); |
| 20 | void charOutBigBg(uint32_t xPos, uint32_t yPos, char ch, uint32_t fgColor, uint32_t bgColor); |
| 21 | void textOut(uint32_t xPos, uint32_t yPos, const char *text, uint32_t color); |
| 22 | void textOut2(uint32_t xPos, uint32_t yPos, const char *text); |
| 23 | void textOutN(uint32_t xPos, uint32_t yPos, const char *text, uint32_t n, uint32_t color); |
| 24 | void textOutTight(uint32_t xPos, uint32_t yPos, const char *text, uint32_t color); |
| 25 | void textOutTightN(uint32_t xPos, uint32_t yPos, const char *text, uint32_t n, uint32_t color); |
| 26 | void textOutBg(uint32_t xPos, uint32_t yPos, const char *text, uint32_t fgColor, uint32_t bgColor); |
| 27 | void textOutBig(uint32_t xPos, uint32_t yPos, const char *text, uint32_t color); |
| 28 | void textOutBigBg(uint32_t xPos, uint32_t yPos, const char *text, uint32_t fgColor, uint32_t bgColor); |
| 29 | |
| 30 | void printOneHex(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 31 | void printTwoHex(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 32 | void printThreeHex(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 33 | void printFourHex(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 34 | void printFiveHex(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 35 | void printOneHexBig(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 36 | void printTwoHexBig(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 37 | |
| 38 | void printTwoDecimals(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 39 | void printThreeDecimals(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 40 | void printFourDecimals(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 41 | void printFiveDecimals(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 42 | void printSixDecimals(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 43 | void printTwoDecimalsBig(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor); |
| 44 | void printOneHexBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 45 | void printTwoHexBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 46 | void printThreeHexBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 47 | void printFourHexBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 48 | void printFiveHexBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 49 | void printOneHexBigBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 50 | void printTwoHexBigBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 51 | void printSixDecimalsBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 52 | void printTwoDecimalsBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 53 | void printThreeDecimalsBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 54 | void printFourDecimalsBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 55 | void printFiveDecimalsBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 56 | void printTwoDecimalsBigBg(uint32_t x, uint32_t y, uint32_t value, uint32_t fontColor, uint32_t backColor); |
| 57 | |
| 58 | void setPrevStatusMessage(void); |
| 59 | void setStatusMessage(const char *msg, bool carry); |
| 60 | void displayMsg(const char *msg); |
| 61 | void displayErrorMsg(const char *msg); |