missing runtime changes from OPAE

This commit is contained in:
Blaise Tine
2020-03-27 22:51:54 -04:00
parent 89d5bfbef1
commit f7e0d1e491
5 changed files with 40 additions and 166 deletions

View File

@@ -26,7 +26,7 @@ void vx_print_hex(unsigned f)
}
void vx_printf(char * c, unsigned f)
void vx_printf(const char * c, unsigned f)
{
vx_print_str(c);
vx_print_hex(f);

View File

@@ -9,9 +9,9 @@ extern "C" {
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_printf(const char *, unsigned);
void vx_print_str(char *);
void vx_print_str(const char *);
void vx_printc(unsigned, char c);

View File

@@ -22,9 +22,11 @@ be:
.type vx_printc, @function
.global vx_printc
vx_printc:
la t0, 0x00010000
la t0, print_addr
sw a1, 0(t0)
ret
.section .data
print_addr:
.word 0x00010000