|
|
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()
1.1.1.3 ! root 13: : inherited("OPM")
1.1 root 14: {
15: devaddr = baseaddr;
16: devlen = 0x2000;
17: }
18:
19: OPMDevice::~OPMDevice()
20: {
21: }
22:
23: uint64
1.1.1.2 root 24: OPMDevice::Read(uint32 offset)
1.1 root 25: {
1.1.1.2 root 26: putlog(0, "未実装読み込み $%06x", gMPU->GetPaddr());
1.1 root 27: return 0;
28: }
29:
30: uint64
1.1.1.2 root 31: OPMDevice::Write(uint32 offset, uint32 data)
1.1 root 32: {
1.1.1.2 root 33: putlog(0, "未実装書き込み $%06x <- $%02x", gMPU->GetPaddr(), data);
1.1 root 34: return 0;
35: }
36:
37: uint64
1.1.1.2 root 38: OPMDevice::Peek(uint32 offset)
1.1 root 39: {
40: // XXX 未実装
41: return 0xff;
42: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.