kolibrios/programs/develop/tinypy/modules/kolibri/debug.c
superturbocat2001 6db1f4dd5a - Module files are removed from the source folder.
- Removed fasm debug module. 
- Added debug function to "kolibri" module.

git-svn-id: svn://kolibrios.org@8475 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-25 23:07:44 +00:00

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;
}