3 ms·
Good point! Just add some inline-assembly to have it call write: int main() { char *str = "hello world\n"; int len = 12; __asm__ ( "int $
by anvandare 14y ago
Good point!
Just add some inline-assembly to have it call write:
int main()
{
char *str = "hello world\n";
int len = 12;
__asm__ ( "int $0x80"
:: "a" (4), "b" (1), "c" (str), "d" (len)
);
return 0;
}