Rev 6395 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6391 | ashmew2 | 1 | #ifndef KOLIBRI_DEBUG_H |
2 | #define KOLIBRI_DEBUG_H |
||
3 | |||
4 | /* Write a printf() like function (variable argument list) for |
||
5 | writing to debug board */ |
||
6 | |||
7 | inline void debug_board_write_byte(const char ch){ |
||
8 | __asm__ __volatile__( |
||
9 | "int $0x40" |
||
10 | : |
||
11 | :"a"(63), "b"(1), "c"(ch)); |
||
12 | } |
||
13 | |||
14 | inline void debug_board_write_str(const char* str){ |
||
15 | while(*str) |
||
16 | debug_board_write_byte(*str++); |
||
17 | } |
||
18 | |||
19 | |||
20 | #endif /* KOLIBRI_DEBUG_H */ |