Rev 6391 | Rev 6398 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6391 | ashmew2 | 1 | #ifndef KOLIBRI_DEBUG_H |
2 | #define KOLIBRI_DEBUG_H |
||
3 | |||
6395 | siemargl | 4 | /* Write a printf() like function (variable argument list) for |
6391 | ashmew2 | 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 | } |
||
6395 | siemargl | 13 | |
14 | //added noninline because incofortabre stepping in in debugger |
||
15 | void __attribute__ ((noinline)) debug_board_write_str(const char* str){ |
||
6391 | ashmew2 | 16 | while(*str) |
17 | debug_board_write_byte(*str++); |
||
18 | } |
||
19 | |||
20 | |||
21 | #endif /* KOLIBRI_DEBUG_H */ |