mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
9d05f6b7a7
This is really neat. :^)
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);
|
|
}
|
|
|
|
}
|