Rev 37 | Rev 78 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 37 | Rev 63 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #include <putchar.h> |
29 | #include <putchar.h> |
30 | #include <arch/types.h> |
30 | #include <arch/types.h> |
31 | #include <arch/ski/ski.h> |
31 | #include <arch/ski/ski.h> |
32 | 32 | ||
33 | void putchar(char ch) |
33 | void putchar(const char ch) |
34 | { |
34 | { |
35 | __asm__ ( |
35 | __asm__ ( |
36 | "mov r15=%0\n" |
36 | "mov r15=%0\n" |
37 | "mov r32=%1\n" /* r32 is in0 */ |
37 | "mov r32=%1\n" /* r32 is in0 */ |
38 | "break 0x80000\n" /* modifies r8 */ |
38 | "break 0x80000\n" /* modifies r8 */ |