Annotation of nono/vm/vm_virt68k.cpp, revision 1.1.1.2

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2024 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
1.1.1.2 ! root        8: // VM (virt-m68k)
1.1       root        9: //
                     10: 
                     11: #include "vm_virt68k.h"
                     12: #include "config.h"
                     13: #include "mainbus_virt68k.h"
                     14: #include "mpu680x0.h"
                     15: #include "power.h"
                     16: #include "renderer.h"
                     17: 
                     18: // コンストラクタ
                     19: VM_Virt68k::VM_Virt68k()
1.1.1.2 ! root       20:        : inherited("virt-m68k")
1.1       root       21: {
                     22:        // 機種固有パラメータ
                     23:        gConfig->SetDefault("mpu-clock", 25);
                     24:        // RAM 初期値。適当。
                     25:        gConfig->SetDefault("ram-size", 128);
                     26: 
                     27:        // デバイス
                     28:        NEWDV(Power, new PowerDevice());
                     29:        NEWDV(MPU, new MPU680x0Device());
                     30:        NEWDV(Mainbus, new Virt68kMainbus());
                     31:        NEWDV(Renderer, new NopRenderer());
1.1.1.2 ! root       32: 
        !            33:        // バーストアクセス有効にする
        !            34:        dynamic_cast<MPU680x0Device*>(pMPU.get())->EnableBurstAccess(true);
1.1       root       35: }
                     36: 
                     37: // デストラクタ
                     38: VM_Virt68k::~VM_Virt68k()
                     39: {
                     40: }

unix.superglobalmegacorp.com

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