Fixed g++ with Vortex, _start stil not initializing propoerly

This commit is contained in:
fares
2019-11-16 14:35:45 -05:00
parent 19dba43849
commit d5763a8ae7
13 changed files with 32773 additions and 200846 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,8 +3,17 @@
#include <stdbool.h>
#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_print_str(char *);
void vx_printf(char *, unsigned);
void vx_printc(unsigned, char c);
void vx_printc(unsigned, char c);
#ifdef __cplusplus
}
#endif