|
|
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"
14: #include "mainapp.h"
1.1.1.2 ! root 15: #include "mainbus_news.h"
1.1 root 16: #include "mpu680x0.h"
17: #include "newsfb.h"
1.1.1.2 ! root 18: #include "power.h"
1.1 root 19: #include "renderer.h"
20:
21: // コンストラクタ
22: VM_NEWS::VM_NEWS()
1.1.1.2 ! root 23: : inherited("NWS-1750")
1.1 root 24: {
25: // 機種固有パラメータ
26: // MPU クロックの初期値は機種ごとに異なる。単位は MHz
27: gConfig->SetDefault("mpu-clock", 25);
28: // RAM 初期値は?
29: gConfig->SetDefault("ram-size", 16);
30: // RTC epoch は 1900年。
31: gConfig->SetDefault("rtc-epoch-year", 1900);
32:
1.1.1.2 ! root 33: NEWDV(Power, new PowerDevice());
1.1 root 34: NEWDV(MPU, new MPU680x0Device());
1.1.1.2 ! root 35: NEWDV(Mainbus, new NewsMainbus());
! 36: NEWDV(Renderer, new NopRenderer());
1.1 root 37: NEWDV(Newsfb, new NewsfbDevice());
38: NEWDV(Dipsw, new NewsDipswDevice());
39: }
40:
41: // デストラクタ
42: VM_NEWS::~VM_NEWS()
43: {
44: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.