Annotation of nono/vm/vm_news.cpp, revision 1.1.1.3

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2022 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // VM (NEWS)
                      9: //
                     10: 
                     11: #include "vm_news.h"
                     12: #include "config.h"
                     13: #include "dipsw.h"
1.1.1.2   root       14: #include "mainbus_news.h"
1.1       root       15: #include "mpu680x0.h"
                     16: #include "newsfb.h"
1.1.1.2   root       17: #include "power.h"
1.1       root       18: #include "renderer.h"
                     19: 
                     20: // コンストラクタ
                     21: VM_NEWS::VM_NEWS()
1.1.1.2   root       22:        : inherited("NWS-1750")
1.1       root       23: {
                     24:        // 機種固有パラメータ
                     25:        // MPU クロックの初期値は機種ごとに異なる。単位は MHz
                     26:        gConfig->SetDefault("mpu-clock", 25);
                     27:        // RAM 初期値は?
                     28:        gConfig->SetDefault("ram-size", 16);
                     29:        // RTC epoch は 1900年。
                     30:        gConfig->SetDefault("rtc-epoch-year", 1900);
                     31: 
1.1.1.2   root       32:        NEWDV(Power, new PowerDevice());
1.1       root       33:        NEWDV(MPU, new MPU680x0Device());
1.1.1.2   root       34:        NEWDV(Mainbus, new NewsMainbus());
                     35:        NEWDV(Renderer, new NopRenderer());
1.1       root       36:        NEWDV(Newsfb, new NewsfbDevice());
                     37:        NEWDV(Dipsw, new NewsDipswDevice());
1.1.1.3 ! root       38: 
        !            39:        // バーストアクセスがあるかどうかは分からないが
        !            40:        // Mainbus が LUNA-I と共通なので一応揃えておく。
        !            41:        dynamic_cast<MPU680x0Device*>(pMPU.get())->EnableBurstAccess(true);
1.1       root       42: }
                     43: 
                     44: // デストラクタ
                     45: VM_NEWS::~VM_NEWS()
                     46: {
                     47: }

unix.superglobalmegacorp.com

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