#include #include /* stolen from http://www.cse.cuhk.edu.hk/~khwong/ceg3430/mrobot5.pdf */ char getch() { char cin; _asm push ACC _endasm; _asm lcall 0x0032; _endasm; cin=ACC; _asm pop ACC _endasm; return(cin); } void putchar(char cout) { ACC=cout; _asm lcall 0x0030; _endasm; } void putstr(char *s, int j) { int i; for (i = 0; i <= j; i++) { putchar(s[i]); } } void main (void) { char ss[] = "hello microblog\0"; putstr(ss, 16); }