Annotation of nono/vm/opm.cpp, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2020 nono project
        !             4: // Licensed under nono-license.txt
        !             5: //
        !             6: 
        !             7: #include "opm.h"
        !             8: 
        !             9: std::unique_ptr<OPMDevice> gOPM;
        !            10: 
        !            11: OPMDevice::OPMDevice()
        !            12: {
        !            13:        logname = "opm";
        !            14:        devname = "OPM";
        !            15:        devaddr = baseaddr;
        !            16:        devlen  = 0x2000;
        !            17: }
        !            18: 
        !            19: OPMDevice::~OPMDevice()
        !            20: {
        !            21: }
        !            22: 
        !            23: uint64
        !            24: OPMDevice::Read(uint32 addr)
        !            25: {
        !            26:        putlog(0, "未実装読み込み +$%02x", addr);
        !            27:        return 0;
        !            28: }
        !            29: 
        !            30: uint64
        !            31: OPMDevice::Write(uint32 addr, uint32 data)
        !            32: {
        !            33:        putlog(0, "未実装書き込み +$%02x <- $%02x", addr, data);
        !            34:        return 0;
        !            35: }
        !            36: 
        !            37: uint64
        !            38: OPMDevice::Peek(uint32 addr)
        !            39: {
        !            40:        // XXX 未実装
        !            41:        return 0xff;
        !            42: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.