feature: multiple screens + cursor move (bug to fix)

style: reorganise code structure
This commit is contained in:
2024-09-08 05:03:50 +02:00
parent d270657fc9
commit cf617d6984
13 changed files with 206 additions and 173 deletions

View File

@ -1,16 +1,15 @@
#pragma once
#include <stdint.h>
static inline void outb(uint16_t port, uint8_t val)
{
__asm__ volatile ( "outb %b0, %w1" : : "a"(val), "Nd"(port) : "memory");
__asm__ volatile("outb %b0, %w1" : : "a"(val), "Nd"(port) : "memory");
}
static inline uint8_t inb(uint16_t port)
{
uint8_t ret;
__asm__ volatile ( "inb %w1, %b0"
: "=a"(ret)
: "Nd"(port)
: "memory");
return ret;
}
uint8_t ret;
__asm__ volatile("inb %w1, %b0" : "=a"(ret) : "Nd"(port) : "memory");
return ret;
}