From 9b8698769535846d029c44247956eed9a21f1185 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 4 Jul 2021 21:31:28 +0200 Subject: Initial commit --- src/loader/inc/cpu.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/loader/inc/cpu.h (limited to 'src/loader/inc/cpu.h') diff --git a/src/loader/inc/cpu.h b/src/loader/inc/cpu.h new file mode 100644 index 0000000..88db34b --- /dev/null +++ b/src/loader/inc/cpu.h @@ -0,0 +1,13 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#ifndef CPU_H +#define CPU_H + +#include + +u8 inb(u16 port); +u16 inw(u16 port); + +void outb(u16 port, u8 data); + +#endif -- cgit v1.2.3