|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: #include "opm.h"
1.1.1.2 ! root 8: #include "mpu.h"
1.1 root 9:
10: std::unique_ptr<OPMDevice> gOPM;
11:
12: OPMDevice::OPMDevice()
13: {
14: logname = "opm";
15: devname = "OPM";
16: devaddr = baseaddr;
17: devlen = 0x2000;
18: }
19:
20: OPMDevice::~OPMDevice()
21: {
22: }
23:
24: uint64
1.1.1.2 ! root 25: OPMDevice::Read(uint32 offset)
1.1 root 26: {
1.1.1.2 ! root 27: putlog(0, "未実装読み込み $%06x", gMPU->GetPaddr());
1.1 root 28: return 0;
29: }
30:
31: uint64
1.1.1.2 ! root 32: OPMDevice::Write(uint32 offset, uint32 data)
1.1 root 33: {
1.1.1.2 ! root 34: putlog(0, "未実装書き込み $%06x <- $%02x", gMPU->GetPaddr(), data);
1.1 root 35: return 0;
36: }
37:
38: uint64
1.1.1.2 ! root 39: OPMDevice::Peek(uint32 offset)
1.1 root 40: {
41: // XXX 未実装
42: return 0xff;
43: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.