ladybird/Kernel/CMOS.cpp
Andreas Kling 9d05f6b7a7 Make bash-2.05b build with minimal changes.
This is really neat. :^)
2018-11-17 00:14:07 +01: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);
}
}