OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / j3100 / slsystem.cpp
1 /*
2         TOSHIBA J-3100SL Emulator 'eJ-3100SL'
3
4         Author : Takeda.Toshiya
5         Date   : 2011.08.16-
6
7         [ system ]
8 */
9
10 #include "slsystem.h"
11
12 namespace J3100SL {
13         
14 void SYSTEM::initialize()
15 {
16         nmi_mask = 0;
17 }
18
19 /*
20 e3      out     word    ff5a
21 e4      in      byte    ??
22 e5      out     word    865a/ff5a/d55a
23 e6      in      byte    ??
24 e8      out     byte    5a
25 e9      out     byte    bf/9f
26 ea      out     byte    5a
27 eb      out     byte    e0
28 */
29
30 void SYSTEM::write_io8(uint32_t addr, uint32_t data)
31 {
32         switch(addr & 0xffff) {
33         case 0xa0:
34                 nmi_mask = data;
35                 break;
36         }
37 }
38
39 uint32_t SYSTEM::read_io8(uint32_t addr)
40 {
41         return 0xff;
42 }
43
44 }