ladybird/Kernel/CMOS.cpp
Andreas Kling 9396108034 Import the "gerbert" kernel I worked on earlier this year.
It's a lot crappier than I remembered it. It's gonna need a lot of work.
2018-10-16 11:02:00 +02:00

18 lines
227 B
C++

#include "CMOS.h"
#include "IO.h"
namespace CMOS {
BYTE read(BYTE index)
{
IO::out8(0x70, index);
return IO::in8(0x71);
}
void write(BYTE index, BYTE data)
{
IO::out8(0x70, index);
IO::out8(0x71, data);
}
}