mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
33 lines
363 B
C
33 lines
363 B
C
/*
|
|
*
|
|
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
|
|
#include <macos/lowmem.h>
|
|
|
|
#include "console.h"
|
|
#include "vga.h"
|
|
|
|
void
|
|
console_init()
|
|
{
|
|
vga_init();
|
|
}
|
|
|
|
int console_putchar(int c)
|
|
{
|
|
vga_put(c);
|
|
|
|
return c;
|
|
}
|
|
|
|
void console_putstring(const char *s)
|
|
{
|
|
while(*s)
|
|
console_putchar(*(s++));
|
|
}
|