Annotation of nono/vm/kbc.h, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2022 nono project
        !             4: // Licensed under nono-license.txt
        !             5: //
        !             6: 
        !             7: //
        !             8: // NWS-1750 のキーボードコントローラ(予定地)
        !             9: //
        !            10: 
        !            11: #pragma once
        !            12: 
        !            13: #include "device.h"
        !            14: 
        !            15: class KBCDevice : public IODevice
        !            16: {
        !            17:        using inherited = IODevice;
        !            18: 
        !            19:        // レジスタ
        !            20:        static const uint32 KEYDATA             = 0;
        !            21:        static const uint32 KEYSTAT             = 1;
        !            22:        static const uint32 KEYINTE             = 2;
        !            23:        static const uint32 KEYRESET    = 3;
        !            24:        static const uint32 KEYBUZZ             = 4;
        !            25:        static const uint32 MSDATA              = 5;
        !            26:        static const uint32 MSINTE              = 6;
        !            27:        static const uint32 MSRESET             = 7;
        !            28: 
        !            29:  public:
        !            30:        KBCDevice();
        !            31:        ~KBCDevice() override;
        !            32: 
        !            33:        uint64 Read8(uint32 addr) override;
        !            34:        uint64 Write8(uint32 addr, uint32 data) override;
        !            35:        uint64 Peek8(uint32 addr) override;
        !            36: };

unix.superglobalmegacorp.com

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