summaryrefslogtreecommitdiff
path: root/Kernel/CMOS.cpp
blob: a88b3744e5497bad6e0a8ffc46482d731caeed73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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);
}

}