OSDN Git Service

[General] Convert sourcecode's CRLF format: DOS(WINDOWS) to Unix, to apply patches...
[csp-qt/common_source_project-fm7.git] / source / src / vm / babbage2nd / display.h
1 /*
2         Gijutsu-Hyoron-Sha Babbage-2nd Emulator 'eBabbage-2nd'
3
4         Author : Takeda.Toshiya
5         Date   : 2009.12.26 -
6
7         [ display ]
8 */
9
10 #ifndef _DISPLAY_H_
11 #define _DISPLAY_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 #define SIG_DISPLAY_7SEG_LED    0
18 #define SIG_DISPLAY_8BIT_LED    1
19
20 class DISPLAY : public DEVICE
21 {
22 private:
23         scrntype screen[36][256];
24         
25         int seg[6][7];
26         uint8 ls373;
27         uint8 pio_7seg;
28         uint8 pio_8bit;
29         
30 public:
31         DISPLAY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
32         ~DISPLAY() {}
33         
34         // common functions
35         void initialize();
36         void write_signal(int id, uint32 data, uint32 mask);
37         void event_vline(int v, int clock);
38         
39         // unique function
40         void draw_screen();
41 };
42
43 #endif
44