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