diff --git a/include/arch.h b/include/arch.h index 850ace9..87ee3af 100644 --- a/include/arch.h +++ b/include/arch.h @@ -31,4 +31,14 @@ static inline uint8_t inb(uint16_t port) { return ret; } +static inline void outw(uint16_t port, uint16_t val) { + asm volatile("outw %0, %1" : : "a"(val), "Nd"(port)); +} + +static inline uint16_t inw(uint16_t port) { + uint16_t ret; + asm volatile("inw %1, %0" : "=a"(ret) : "Nd"(port)); + return ret; +} + #endif // arch.h \ No newline at end of file diff --git a/include/version.h b/include/version.h index 5323310..d0e56cc 100644 --- a/include/version.h +++ b/include/version.h @@ -1,3 +1,3 @@ #define VERSION_MAJOR 0 #define VERSION_MINOR 1 -#define VERSION_BUILD 760 +#define VERSION_BUILD 769