2023-03-07 18:22:46 +00:00
|
|
|
void io_out_byte(unsigned short port, unsigned char data) {
|
|
|
|
asm volatile ("outb %0, %1" : : "a"(data), "Nd"(port));
|
|
|
|
}
|
|
|
|
|
2023-03-02 16:58:04 +00:00
|
|
|
int _start() {
|
2023-03-07 18:22:46 +00:00
|
|
|
// asm("int $0x01");
|
|
|
|
while (1){
|
|
|
|
io_out_byte(0x3F8, 'A');
|
|
|
|
}
|
2023-03-02 16:58:04 +00:00
|
|
|
}
|