Annotation of nono/vm/vm_x68k.cpp, revision 1.1.1.14

1.1       root        1: //
                      2: // nono
1.1.1.2   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
1.1.1.8   root        7: //
                      8: // VM (X68030)
                      9: //
                     10: 
1.1       root       11: #include "vm_x68k.h"
1.1.1.2   root       12: #include "config.h"
1.1       root       13: #include "human68k.h"
1.1.1.7   root       14: #include "mainapp.h"
1.1.1.12  root       15: #include "mainbus_x68k.h"
1.1.1.2   root       16: #include "mpu680x0.h"
1.1.1.8   root       17: #include "nmi.h"
                     18: #include "power.h"
1.1       root       19: #include "renderer.h"
                     20: #include "x68kkbd.h"
                     21: 
                     22: // コンストラクタ
                     23: VM_X68030::VM_X68030()
1.1.1.12  root       24:        : inherited("X68030")
1.1       root       25: {
1.1.1.2   root       26:        // 機種固有パラメータ
1.1.1.14! root       27:        // MPU 種別。
        !            28:        gConfig->SetDefault("mpu-type", "68030");
1.1.1.2   root       29:        // MPU クロックの初期値は機種ごとに異なる。単位は MHz
                     30:        gConfig->SetDefault("mpu-clock", 25);
                     31:        // RAM 初期値は MAX にしておく
                     32:        gConfig->SetDefault("ram-size", 12);
                     33:        // SPC の入力クロック (5MHz = 200ns)
                     34:        gConfig->Add("!spc-tCLF", 200);
                     35: 
1.1.1.12  root       36:        // デバイス
                     37:        NEWDV(Power, new X68030PowerDevice());
1.1.1.14! root       38:        NEWDV(MPU, NewMPU680x0Device());
1.1.1.12  root       39:        NEWDV(Mainbus, new X68kMainbus());
1.1.1.8   root       40:        NEWDV(Keyboard, new X68030Keyboard());
1.1.1.12  root       41:        NEWDV(NMI, new NMIDevice());
1.1.1.8   root       42:        NEWDV(Renderer, new X68030Renderer());
1.1       root       43: 
1.1.1.7   root       44:        if (gMainApp.human_mode) {
1.1.1.12  root       45:                NEWDV(Human68k, new Human68kDevice());
1.1.1.7   root       46:        }
1.1.1.13  root       47: 
                     48:        // バーストアクセスなし (回路図より)
1.1.1.14! root       49:        auto mpu680x0 = GetMPU680x0Device(pMPU.get());
        !            50:        if (mpu680x0) {
        !            51:                mpu680x0->EnableBurstAccess(false);
        !            52:        }
1.1       root       53: }
                     54: 
                     55: // デストラクタ
                     56: VM_X68030::~VM_X68030()
                     57: {
                     58: }

unix.superglobalmegacorp.com

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