フレームバッファ 割り込みの実装

This commit is contained in:
2020-08-29 17:13:36 +09:00
parent 266f9bf4af
commit 6159cb9d27
18 changed files with 1003 additions and 0 deletions

10
io.c Normal file
View File

@@ -0,0 +1,10 @@
#include "io.h"
UINT8 mapped_io_read(UINT16 addr) {
UINT8 data;
asm volatile("inb %1,%0" : "=a"(data) : "d"(addr));
return data;
}
void mapped_io_write(UINT16 addr, UINT8 data) {
asm volatile("outb %0,%1" ::"a"(data), "d"(addr));
}