Fixed g++ newlib, still fixing _start

This commit is contained in:
fares
2019-11-16 14:51:20 -05:00
11 changed files with 81179 additions and 81461 deletions

View File

@@ -1,6 +1,10 @@
#include "vx_io.h"
#ifdef __cplusplus
extern "C" {
#endif
void vx_print_hex(unsigned f)
{
// vx_print_str(hextoa[f]);
@@ -27,4 +31,8 @@ void vx_printf(char * c, unsigned f)
vx_print_str(c);
vx_print_hex(f);
vx_print_str("\n");
}
}
#ifdef __cplusplus
}
#endif

View File

@@ -3,14 +3,13 @@
#include <stdbool.h>
static char * hextoa[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"};
void vx_print_hex(unsigned);
void vx_printf(char *, unsigned);
#ifdef __cplusplus
extern "C" {
#endif
static char * hextoa[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"};
void vx_print_hex(unsigned);
void vx_printf(char *, unsigned);
void vx_print_str(char *);
void vx_printc(unsigned, char c);