OSDN Git Service

[WIP][FM-7] Reshape signals.
[csp-qt/common_source_project-fm7.git] / source / src / vm / fm7 / kanjirom.h
1 /*
2  * Common source code project -> FM-7/77/AV -> Kanji rom
3  * (C) 2015 K.Ohta <whatisthis.sowhat _at_ gmail.com>
4  * License: GPLv2
5  * History:
6  *  Feb 11, 2015 : Initial
7  */
8
9 #define MEMORY_ADDR_MAX  0x20000
10 #define MEMORY_BANK_SIZE 0x20000
11
12 #include "../memory.h"
13 #include "../mc6809.h"
14
15
16 class KANJIROM: public MEMORY {
17 private:
18         uint8 data_table[MEMORY_ADDR_MAX];
19         bool read_ok;
20         bool class2;
21   
22  public:
23         KANJICLASS1(VM *parent_vm, EMU* parent_emu, bool type_2std);
24         ~KANJICLASS1();
25         void write_data8(uint32 addr, uint32 data);
26         uint32 read_data8(uint32 addr);
27         bool get_readstat(void);
28 };