2 SHINKO SANGYO YS-6464A Emulator 'eYS-6464A'
4 Author : Takeda.Toshiya
10 #ifndef _BABBAGE_2ND_H_
11 #define _BABBAGE_2ND_H_
13 #define DEVICE_NAME "SHINKO SANGYO YS-6464A"
14 #define CONFIG_NAME "ys6464a"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 30
18 #define LINES_PER_FRAME 256
19 #define CPU_CLOCKS 4000000
20 #define SCREEN_WIDTH 640
21 #define SCREEN_HEIGHT 357
22 #define MEMORY_ADDR_MAX 0x10000
23 #define MEMORY_BANK_SIZE 0x2000
25 // device informations for win32
26 #define USE_BINARY_FILE1
29 #define MAX_BUTTONS 21
33 #include "../../common.h"
34 #include "../../fileio.h"
37 const _TCHAR* caption;
43 {_T("0"), 344, 288, 42, 42, 20, 0x30},
44 {_T("1"), 403, 288, 42, 42, 20, 0x31},
45 {_T("2"), 462, 288, 42, 42, 20, 0x32},
46 {_T("3"), 521, 288, 42, 42, 20, 0x33},
47 {_T("4"), 344, 229, 42, 42, 20, 0x34},
48 {_T("5"), 403, 229, 42, 42, 20, 0x35},
49 {_T("6"), 462, 229, 42, 42, 20, 0x36},
50 {_T("7"), 521, 229, 42, 42, 20, 0x37},
51 {_T("8"), 344, 170, 42, 42, 20, 0x38},
52 {_T("9"), 403, 170, 42, 42, 20, 0x39},
53 {_T("A"), 462, 170, 42, 42, 20, 0x41},
54 {_T("B"), 521, 170, 42, 42, 20, 0x42},
55 {_T("C"), 344, 111, 42, 42, 20, 0x43},
56 {_T("D"), 403, 111, 42, 42, 20, 0x44},
57 {_T("E"), 462, 111, 42, 42, 20, 0x45},
58 {_T("F"), 521, 111, 42, 42, 20, 0x46},
59 {_T("WRITE\nINC"), 581, 288, 42, 42, 10, 0x70},
60 {_T("READ\nDEC"), 581, 229, 42, 42, 10, 0x71},
61 {_T("READ\nINC"), 581, 170, 42, 42, 10, 0x72},
62 {_T("ADR\nRUN"), 581, 111, 42, 42, 10, 0x73},
63 {_T("RESET"), 265, 288, 42, 42, 10, 0x00}
112 // ----------------------------------------
114 // ----------------------------------------
119 // ----------------------------------------
120 // for emulation class
121 // ----------------------------------------
123 // drive virtual machine
131 void initialize_sound(int rate, int samples);
132 uint16* create_sound(int* extra_frames);
133 int sound_buffer_ptr();
136 void load_binary(int drv, _TCHAR* file_path);
137 void save_binary(int drv, _TCHAR* file_path);
140 void update_config();
142 // ----------------------------------------
144 // ----------------------------------------
147 DEVICE* get_device(int id);
149 DEVICE* first_device;