mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
32 lines
340 B
C
32 lines
340 B
C
|
/*
|
||
|
*
|
||
|
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include <stdio.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++));
|
||
|
}
|