mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 02:54:54 +03:00
9396108034
It's a lot crappier than I remembered it. It's gonna need a lot of work.
19 lines
227 B
C++
19 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);
|
|
}
|
|
|
|
}
|