mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
33 lines
670 B
C
33 lines
670 B
C
|
void _start()
|
||
|
{
|
||
|
asm(
|
||
|
"mov $0, %eax \n\t"
|
||
|
"mov $0, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
|
||
|
"mov $0, %eax \n\t"
|
||
|
"mov $1, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
|
||
|
"mov $1, %eax \n\t"
|
||
|
"mov $0, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
|
||
|
"mov $2, %eax \n\t"
|
||
|
"mov $0, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
|
||
|
"mov $256, %eax \n\t"
|
||
|
"mov $0, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
|
||
|
"mov $257, %eax \n\t"
|
||
|
"mov $0, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
|
||
|
"mov $258, %eax \n\t"
|
||
|
"mov $0, %ebx \n\t"
|
||
|
"int $0x80 \n\t"
|
||
|
);
|
||
|
}
|