trunk/hash/x1_cass.xml
| r249045 | r249046 | |
| 12 | 12 | |
| 13 | 13 | <softwarelist name="x1_cass" description="Sharp X1 cassettes"> |
| 14 | 14 | |
| 15 | <software name="alamein"> |
| 16 | <description>El Alamein</description> |
| 17 | <year>1983</year> |
| 18 | <publisher>ポニカ (Pony Canyon)</publisher> |
| 19 | <info name="alt_title" value="エル・アラメイン"/> |
| 20 | <info name="usage" value="In BASIC, type LOAD and then RUN"/> |
| 21 | <sharedfeat name="requirement" value="x1_flop:tapbas"/> |
| 22 | <part name="cass" interface="x1_cass"> |
| 23 | <dataarea name="side1" size="12742140"> |
| 24 | <rom name="alamein.wav" size="12742140" crc="04e00f60" sha1="42f3ef356fdb67ddd0fbdb57e473c23d267f9bf4" offset="0" /> |
| 25 | </dataarea> |
| 26 | </part> |
| 27 | </software> |
| 28 | |
| 15 | 29 | <software name="blckonyx" supported="no"> |
| 16 | 30 | <description>The Black Onyx</description> |
| 17 | 31 | <year>1985</year> |
| r249045 | r249046 | |
| 76 | 90 | </dataarea> |
| 77 | 91 | </part> |
| 78 | 92 | </software> |
| 93 | |
| 94 | <software name="cball"> |
| 95 | <description>Cannon Ball</description> |
| 96 | <year>1983</year> |
| 97 | <publisher>ハドソン (Hudson Soft)</publisher> |
| 98 | <info name="alt_title" value="キャノンボール"/> |
| 99 | <part name="cass" interface="x1_cass"> |
| 100 | <dataarea name="side1" size="4857558"> |
| 101 | <rom name="cball.wav" size="4857558" crc="4405cf21" sha1="769a43d97f69b5d72347ca8b72547e464b9d059b" offset="0" /> |
| 102 | </dataarea> |
| 103 | </part> |
| 104 | </software> |
| 79 | 105 | |
| 80 | 106 | <software name="cprowsp"> |
| 81 | 107 | <description>Champion ProWres Special</description> |
| r249045 | r249046 | |
| 296 | 322 | </dataarea> |
| 297 | 323 | </part> |
| 298 | 324 | </software> |
| 325 | |
| 326 | <software name="machgjoe"> |
| 327 | <description>Ginkou Goutou - Machinegun Joe vs. the Mafia</description> |
| 328 | <year>1983</year> |
| 329 | <publisher>ハドソン (Hudson Soft)</publisher> |
| 330 | <info name="alt_title" value="銀行強盗 マシンガンジョー VS ザ・マフィア"/> |
| 331 | <part name="cass" interface="x1_cass"> |
| 332 | <dataarea name="side1" size="15591932"> |
| 333 | <rom name="machgjoe.wav" size="15591932" crc="3769199a" sha1="81614c317f432055f2c5fdcce51438de9fbdad7f" offset="0" /> |
| 334 | </dataarea> |
| 335 | </part> |
| 336 | </software> |
| 299 | 337 | |
| 300 | 338 | <software name="mappy"> |
| 301 | 339 | <description>Mappy</description> |
trunk/src/emu/sound/c352.c
| r249045 | r249046 | |
| 13 | 13 | Supports 8-bit linear and 8-bit muLaw samples |
| 14 | 14 | Output: digital, 16 bit, 4 channels |
| 15 | 15 | Output sample rate is the input clock / (288 * 2). |
| 16 | |
| 17 | superctr: The clock divider appears to be configurable for each system. |
| 18 | Below is a list of the divider values followed by the systems that use it. |
| 19 | |
| 20 | * 228: System 11. |
| 21 | * 288: System 22, Super 22, NB-1/2, ND-1, FL. |
| 22 | * 296: System 23, Super 23. |
| 23 | * 332: System 12. |
| 16 | 24 | */ |
| 17 | 25 | |
| 18 | 26 | #include "emu.h" |
| r249045 | r249046 | |
| 468 | 476 | |
| 469 | 477 | void c352_device::device_start() |
| 470 | 478 | { |
| 471 | | int i, divider; |
| 479 | int i; |
| 472 | 480 | double x_max = 32752.0; |
| 473 | 481 | double y_max = 127.0; |
| 474 | 482 | double u = 10.0; |
| r249045 | r249046 | |
| 476 | 484 | // find our direct access |
| 477 | 485 | m_direct = &space().direct(); |
| 478 | 486 | |
| 479 | | switch(m_divider) |
| 480 | | { |
| 481 | | case C352_DIVIDER_228: |
| 482 | | divider=228; |
| 483 | | break; |
| 484 | | case C352_DIVIDER_288: |
| 485 | | default: |
| 486 | | divider=288; |
| 487 | | break; |
| 488 | | case C352_DIVIDER_332: |
| 489 | | divider=332; |
| 490 | | break; |
| 491 | | } |
| 487 | m_sample_rate_base = clock() / m_divider; |
| 492 | 488 | |
| 493 | | m_sample_rate_base = clock() / divider; |
| 494 | | |
| 495 | 489 | m_stream = machine().sound().stream_alloc(*this, 0, 4, m_sample_rate_base); |
| 496 | 490 | |
| 497 | 491 | // generate mulaw table for mulaw format samples |
trunk/src/mame/drivers/namconb1.c
| r249045 | r249046 | |
| 1126 | 1126 | MCFG_VIDEO_START_OVERRIDE(namconb1_state,namconb1) |
| 1127 | 1127 | |
| 1128 | 1128 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 1129 | | MCFG_C352_ADD("c352", MASTER_CLOCK/2, C352_DIVIDER_288) |
| 1129 | MCFG_C352_ADD("c352", MASTER_CLOCK/2, 288) |
| 1130 | 1130 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 1131 | 1131 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 1132 | 1132 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
| r249045 | r249046 | |
| 1163 | 1163 | MCFG_VIDEO_START_OVERRIDE(namconb1_state,namconb2) |
| 1164 | 1164 | |
| 1165 | 1165 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 1166 | | MCFG_C352_ADD("c352", MASTER_CLOCK/2, C352_DIVIDER_288) |
| 1166 | MCFG_C352_ADD("c352", MASTER_CLOCK/2, 288) |
| 1167 | 1167 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 1168 | 1168 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 1169 | 1169 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
trunk/src/mame/drivers/namcos22.c
| r249045 | r249046 | |
| 3781 | 3781 | /* sound hardware */ |
| 3782 | 3782 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 3783 | 3783 | |
| 3784 | | MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, C352_DIVIDER_288) |
| 3784 | MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, 288) |
| 3785 | 3785 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 3786 | 3786 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 3787 | 3787 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
| r249045 | r249046 | |
| 3830 | 3830 | /* sound hardware */ |
| 3831 | 3831 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 3832 | 3832 | |
| 3833 | | MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, C352_DIVIDER_288) |
| 3833 | MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, 288) |
| 3834 | 3834 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 3835 | 3835 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 3836 | 3836 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
trunk/src/mame/drivers/namcos23.c
| r249045 | r249046 | |
| 1247 | 1247 | #define JVSCLOCK (XTAL_14_7456MHz) |
| 1248 | 1248 | #define H8CLOCK (16737350) /* from 2061 */ |
| 1249 | 1249 | #define BUSCLOCK (16737350*2) /* 33MHz CPU bus clock / input */ |
| 1250 | | #define C352CLOCK (25992000) /* measured at 25.992MHz from 2061 pin 9 (System 12 uses a divider of 332) */ |
| 1250 | #define C352CLOCK (25992000) /* measured at 25.992MHz from 2061 pin 9 */ |
| 1251 | #define C352DIV (296) |
| 1251 | 1252 | #define VSYNC1 (59.8824) |
| 1252 | 1253 | #define VSYNC2 (59.915) |
| 1253 | 1254 | #define HSYNC (16666150) |
| r249045 | r249046 | |
| 3320 | 3321 | /* sound hardware */ |
| 3321 | 3322 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 3322 | 3323 | |
| 3323 | | MCFG_C352_ADD("c352", C352CLOCK, C352_DIVIDER_332) |
| 3324 | MCFG_C352_ADD("c352", C352CLOCK, C352DIV) |
| 3324 | 3325 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 3325 | 3326 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 3326 | 3327 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
| r249045 | r249046 | |
| 3389 | 3390 | /* sound hardware */ |
| 3390 | 3391 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 3391 | 3392 | |
| 3392 | | MCFG_C352_ADD("c352", C352CLOCK, C352_DIVIDER_332) |
| 3393 | MCFG_C352_ADD("c352", C352CLOCK, C352DIV) |
| 3393 | 3394 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 3394 | 3395 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 3395 | 3396 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
| r249045 | r249046 | |
| 3469 | 3470 | /* sound hardware */ |
| 3470 | 3471 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 3471 | 3472 | |
| 3472 | | MCFG_C352_ADD("c352", C352CLOCK, C352_DIVIDER_332) |
| 3473 | MCFG_C352_ADD("c352", C352CLOCK, C352DIV) |
| 3473 | 3474 | MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) |
| 3474 | 3475 | MCFG_SOUND_ROUTE(1, "lspeaker", 1.00) |
| 3475 | 3476 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.00) |
trunk/src/osd/modules/debugger/win/debugviewinfo.c
| r249045 | r249046 | |
| 15 | 15 | |
| 16 | 16 | #include "strconv.h" |
| 17 | 17 | |
| 18 | #include "winutil.h" |
| 18 | 19 | |
| 20 | |
| 19 | 21 | // debugger view styles |
| 20 | 22 | #define DEBUG_VIEW_STYLE WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN |
| 21 | 23 | #define DEBUG_VIEW_STYLE_EX 0 |
| r249045 | r249046 | |
| 48 | 50 | |
| 49 | 51 | // create the child view |
| 50 | 52 | m_wnd = CreateWindowEx(DEBUG_VIEW_STYLE_EX, TEXT("MAMEDebugView"), NULL, DEBUG_VIEW_STYLE, |
| 51 | | 0, 0, 100, 100, parent, NULL, GetModuleHandle(NULL), this); |
| 53 | 0, 0, 100, 100, parent, NULL, GetModuleHandleUni(), this); |
| 52 | 54 | if (m_wnd == NULL) |
| 53 | 55 | goto cleanup; |
| 54 | 56 | |
| 55 | 57 | // create the scroll bars |
| 56 | 58 | m_hscroll = CreateWindowEx(HSCROLL_STYLE_EX, TEXT("SCROLLBAR"), NULL, HSCROLL_STYLE, |
| 57 | | 0, 0, 100, CW_USEDEFAULT, m_wnd, NULL, GetModuleHandle(NULL), this); |
| 59 | 0, 0, 100, CW_USEDEFAULT, m_wnd, NULL, GetModuleHandleUni(), this); |
| 58 | 60 | m_vscroll = CreateWindowEx(VSCROLL_STYLE_EX, TEXT("SCROLLBAR"), NULL, VSCROLL_STYLE, |
| 59 | | 0, 0, CW_USEDEFAULT, 100, m_wnd, NULL, GetModuleHandle(NULL), this); |
| 61 | 0, 0, CW_USEDEFAULT, 100, m_wnd, NULL, GetModuleHandleUni(), this); |
| 60 | 62 | if ((m_hscroll == NULL) || (m_vscroll == NULL)) |
| 61 | 63 | goto cleanup; |
| 62 | 64 | |
| r249045 | r249046 | |
| 254 | 256 | { |
| 255 | 257 | // create a combo box |
| 256 | 258 | HWND const result = CreateWindowEx(COMBO_BOX_STYLE_EX, TEXT("COMBOBOX"), NULL, COMBO_BOX_STYLE, |
| 257 | | 0, 0, 100, 1000, parent, NULL, GetModuleHandle(NULL), NULL); |
| 259 | 0, 0, 100, 1000, parent, NULL, GetModuleHandleUni(), NULL); |
| 258 | 260 | SetWindowLongPtr(result, GWLP_USERDATA, userdata); |
| 259 | 261 | SendMessage(result, WM_SETFONT, (WPARAM)metrics().debug_font(), (LPARAM)FALSE); |
| 260 | 262 | |
| r249045 | r249046 | |
| 789 | 791 | |
| 790 | 792 | // initialize the description of the window class |
| 791 | 793 | wc.lpszClassName = TEXT("MAMEDebugView"); |
| 792 | | wc.hInstance = GetModuleHandle(NULL); |
| 794 | wc.hInstance = GetModuleHandleUni(); |
| 793 | 795 | wc.lpfnWndProc = &debugview_info::static_view_proc; |
| 794 | 796 | wc.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 795 | 797 | wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2)); |
| r249045 | r249046 | |
| 798 | 800 | wc.style = 0; |
| 799 | 801 | wc.cbClsExtra = 0; |
| 800 | 802 | wc.cbWndExtra = 0; |
| 803 | |
| 804 | UnregisterClass(wc.lpszClassName, wc.hInstance); |
| 801 | 805 | |
| 802 | 806 | // register the class; fail if we can't |
| 803 | 807 | if (!RegisterClass(&wc)) |
trunk/src/osd/modules/debugger/win/debugwininfo.c
| r249045 | r249046 | |
| 17 | 17 | #include "window.h" |
| 18 | 18 | #include "winutf8.h" |
| 19 | 19 | |
| 20 | #include "winutil.h" |
| 20 | 21 | |
| 22 | |
| 21 | 23 | bool debugwin_info::s_window_class_registered = false; |
| 22 | 24 | |
| 23 | 25 | |
| r249045 | r249046 | |
| 36 | 38 | register_window_class(); |
| 37 | 39 | |
| 38 | 40 | m_wnd = win_create_window_ex_utf8(DEBUG_WINDOW_STYLE_EX, "MAMEDebugWindow", title, DEBUG_WINDOW_STYLE, |
| 39 | | 0, 0, 100, 100, win_window_list->m_hwnd, create_standard_menubar(), GetModuleHandle(NULL), this); |
| 41 | 0, 0, 100, 100, win_window_list->m_hwnd, create_standard_menubar(), GetModuleHandleUni(), this); |
| 40 | 42 | if (m_wnd == NULL) |
| 41 | 43 | return; |
| 42 | 44 | |
| r249045 | r249046 | |
| 580 | 582 | |
| 581 | 583 | // initialize the description of the window class |
| 582 | 584 | wc.lpszClassName = TEXT("MAMEDebugWindow"); |
| 583 | | wc.hInstance = GetModuleHandle(NULL); |
| 585 | wc.hInstance = GetModuleHandleUni(); |
| 584 | 586 | wc.lpfnWndProc = &debugwin_info::static_window_proc; |
| 585 | 587 | wc.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 586 | 588 | wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2)); |
| r249045 | r249046 | |
| 589 | 591 | wc.style = 0; |
| 590 | 592 | wc.cbClsExtra = 0; |
| 591 | 593 | wc.cbWndExtra = 0; |
| 594 | |
| 595 | UnregisterClass(wc.lpszClassName, wc.hInstance); |
| 592 | 596 | |
| 593 | 597 | // register the class; fail if we can't |
| 594 | 598 | if (!RegisterClass(&wc)) |
trunk/src/osd/modules/debugger/win/editwininfo.c
| r249045 | r249046 | |
| 13 | 13 | |
| 14 | 14 | #include "strconv.h" |
| 15 | 15 | |
| 16 | #include "winutil.h" |
| 16 | 17 | |
| 18 | |
| 17 | 19 | // edit box styles |
| 18 | 20 | #define EDIT_BOX_STYLE WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL |
| 19 | 21 | #define EDIT_BOX_STYLE_EX 0 |
| r249045 | r249046 | |
| 32 | 34 | |
| 33 | 35 | // create an edit box and override its key handling |
| 34 | 36 | m_editwnd = CreateWindowEx(EDIT_BOX_STYLE_EX, TEXT("EDIT"), NULL, EDIT_BOX_STYLE, |
| 35 | | 0, 0, 100, 100, window(), NULL, GetModuleHandle(NULL), NULL); |
| 37 | 0, 0, 100, 100, window(), NULL, GetModuleHandleUni(), NULL); |
| 36 | 38 | m_original_editproc = (WNDPROC)(FPTR)GetWindowLongPtr(m_editwnd, GWLP_WNDPROC); |
| 37 | 39 | SetWindowLongPtr(m_editwnd, GWLP_USERDATA, (LONG_PTR)this); |
| 38 | 40 | SetWindowLongPtr(m_editwnd, GWLP_WNDPROC, (LONG_PTR)&editwin_info::static_edit_proc); |
trunk/src/osd/windows/input.c
| r249045 | r249046 | |
| 38 | 38 | #include "strconv.h" |
| 39 | 39 | #include "config.h" |
| 40 | 40 | |
| 41 | #include "winutil.h" |
| 42 | |
| 41 | 43 | //============================================================ |
| 42 | 44 | // PARAMETERS |
| 43 | 45 | //============================================================ |
| r249045 | r249046 | |
| 1117 | 1119 | int didevtype_joystick = DI8DEVCLASS_GAMECTRL; |
| 1118 | 1120 | |
| 1119 | 1121 | dinput_version = DIRECTINPUT_VERSION; |
| 1120 | | result = DirectInput8Create(GetModuleHandle(NULL), dinput_version, IID_IDirectInput8, (void **)&dinput, NULL); |
| 1122 | result = DirectInput8Create(GetModuleHandleUni(), dinput_version, IID_IDirectInput8, (void **)&dinput, NULL); |
| 1121 | 1123 | if (result != DI_OK) |
| 1122 | 1124 | { |
| 1123 | 1125 | dinput_version = 0; |
| r249045 | r249046 | |
| 1130 | 1132 | |
| 1131 | 1133 | // first attempt to initialize DirectInput at the current version |
| 1132 | 1134 | dinput_version = DIRECTINPUT_VERSION; |
| 1133 | | result = DirectInputCreate(GetModuleHandle(NULL), dinput_version, &dinput, NULL); |
| 1135 | result = DirectInputCreate(GetModuleHandleUni(), dinput_version, &dinput, NULL); |
| 1134 | 1136 | if (result != DI_OK) |
| 1135 | 1137 | { |
| 1136 | 1138 | // if that fails, try version 5 |
| 1137 | 1139 | dinput_version = 0x0500; |
| 1138 | | result = DirectInputCreate(GetModuleHandle(NULL), dinput_version, &dinput, NULL); |
| 1140 | result = DirectInputCreate(GetModuleHandleUni(), dinput_version, &dinput, NULL); |
| 1139 | 1141 | if (result != DI_OK) |
| 1140 | 1142 | { |
| 1141 | 1143 | // if that fails, try version 3 |
| 1142 | 1144 | dinput_version = 0x0300; |
| 1143 | | result = DirectInputCreate(GetModuleHandle(NULL), dinput_version, &dinput, NULL); |
| 1145 | result = DirectInputCreate(GetModuleHandleUni(), dinput_version, &dinput, NULL); |
| 1144 | 1146 | if (result != DI_OK) |
| 1145 | 1147 | { |
| 1146 | 1148 | dinput_version = 0; |
trunk/src/osd/windows/window.c
| r249045 | r249046 | |
| 35 | 35 | #include "config.h" |
| 36 | 36 | #include "winutf8.h" |
| 37 | 37 | |
| 38 | #include "winutil.h" |
| 39 | |
| 38 | 40 | extern int drawnone_init(running_machine &machine, osd_draw_callbacks *callbacks); |
| 39 | 41 | extern int drawgdi_init(running_machine &machine, osd_draw_callbacks *callbacks); |
| 40 | 42 | extern int drawdd_init(running_machine &machine, osd_draw_callbacks *callbacks); |
| r249045 | r249046 | |
| 885 | 887 | |
| 886 | 888 | // initialize the description of the window class |
| 887 | 889 | wc.lpszClassName = TEXT("MAME"); |
| 888 | | wc.hInstance = GetModuleHandle(NULL); |
| 890 | wc.hInstance = GetModuleHandleUni(); |
| 889 | 891 | wc.lpfnWndProc = winwindow_video_window_proc_ui; |
| 890 | 892 | wc.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 891 | 893 | wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2)); |
| 894 | |
| 895 | UnregisterClass(wc.lpszClassName, wc.hInstance); |
| 892 | 896 | |
| 893 | 897 | // register the class; fail if we can't |
| 894 | 898 | if (!RegisterClass(&wc)) |
| r249045 | r249046 | |
| 1191 | 1195 | monitorbounds.left() + 100, monitorbounds.top() + 100, |
| 1192 | 1196 | NULL,//(win_window_list != NULL) ? win_window_list->m_hwnd : NULL, |
| 1193 | 1197 | menu, |
| 1194 | | GetModuleHandle(NULL), |
| 1198 | GetModuleHandleUni(), |
| 1195 | 1199 | NULL); |
| 1196 | 1200 | if (m_hwnd == NULL) |
| 1197 | 1201 | return 1; |