16 lines
392 B
C
16 lines
392 B
C
#include "api.h"
|
|
#include "console.h"
|
|
|
|
void hrb_api(int edi, int esi, int ebp, int esp, int ebx, int edx, int ecx,
|
|
int eax) {
|
|
struct Console *cons = (struct Console *)*((int *)0x0fec);
|
|
|
|
if (edx == 1) {
|
|
cons_putchar(cons, eax & 0xff, 1);
|
|
} else if (edx == 2) {
|
|
cons_putstr(cons, (char *)ebx);
|
|
} else if (edx == 3) {
|
|
cons_putnstr(cons, (char *)ebx, ecx);
|
|
}
|
|
}
|