forked from KolibriOS/kolibrios
6db1f4dd5a
- Removed fasm debug module. - Added debug function to "kolibri" module. git-svn-id: svn://kolibrios.org@8475 a494cfbc-eb01-0410-851d-a64ba20cac60
20 lines
331 B
C
20 lines
331 B
C
#include "tp.h"
|
|
|
|
void debug_write_byte(const char ch){
|
|
__asm__ __volatile__(
|
|
"int $0x40"
|
|
::"a"(63), "b"(1), "c"(ch)
|
|
);
|
|
}
|
|
|
|
tp_obj kolibri_debug_print(TP)
|
|
{
|
|
tp_obj str = TP_TYPE(TP_STRING);
|
|
for(int i=0; i < str.string.len; i++)
|
|
{
|
|
debug_write_byte(str.string.val[i]);
|
|
}
|
|
return tp_None;
|
|
}
|
|
|