Annotation of nono/vm/partialram.h, revision 1.1.1.4

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // LUNA* の RAM のうち 16MB に満たないメモリブロックを担当する人
                      9: //
                     10: 
                     11: #pragma once
                     12: 
                     13: #include "device.h"
                     14: 
                     15: class MainRAMDevice;
                     16: 
1.1.1.2   root       17: class PartialRAMDevice : public IODevice
1.1       root       18: {
1.1.1.2   root       19:        using inherited = IODevice;
1.1       root       20:  public:
                     21:        PartialRAMDevice();
1.1.1.2   root       22:        ~PartialRAMDevice() override;
1.1       root       23: 
                     24:        bool Init() override;
                     25: 
1.1.1.3   root       26:        busdata Read(busaddr addr) override;
                     27:        busdata Write(busaddr addr, uint32 data) override;
                     28:        busdata Peek1(uint32 addr) override;
                     29:        bool Poke1(uint32 addr, uint32 data) override;
1.1       root       30: 
                     31:  private:
                     32:        inline IODevice *SearchDevice(uint32 addr) const;
                     33: 
                     34:        uint32 ram_size {};
                     35: 
                     36:        MainRAMDevice *ramdev {};
                     37:        IODevice *nopdev {};
                     38: };
                     39: 
1.1.1.4 ! root       40: inline PartialRAMDevice *GetPartialRAMDevice() {
1.1       root       41:        return Object::GetObject<PartialRAMDevice>(OBJ_PARTIAL_RAM);
                     42: }

unix.superglobalmegacorp.com

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