Previous 15994 Revisions Next

r1039 Wednesday 26th September, 2007 at 23:00:59 UTC by Nathan Woods
1. [Windows GUI] Sync with MAME32

2. Implemented UNUSED_FUNCTION [Oliver Stoeneberg]

3. Miscellaneous UNICODE=1/Win64 fixes [Oliver Stoeneberg]
[src/mess/audio]kaypro.c mea8000.c
[src/mess/devices]harddriv.c sonydriv.c
[src/mess/drivers]adam.c amiga.c amstrad.c apple2.c at.c avigo.c comquest.c einstein.c intv.c ip22.c mekd2.c nc.c pc.c pcw16.c spectrum.c studio2.c ti99_4p.c vc4000.c
[src/mess/machine]pdp1.c
[src/mess/osd/winui]mess32ui.c
[src/mess/video]kc.c m6847.c saa5050.c tx0.c
[src/osd/winui]audit32.c datamap.c m32opts.c properties.c treeview.c win32ui.c

src/osd/winui/win32ui.c
r1038r1039
254254static BOOL             PumpMessage(void);
255255static BOOL             OnIdle(HWND hWnd);
256256static void             OnSize(HWND hwnd, UINT state, int width, int height);
257static long WINAPI      MameWindowProc(HWND hwnd,UINT message,UINT wParam,LONG lParam);
257static LRESULT CALLBACK MameWindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
258258
259259static void             SetView(int menu_id);
260260static void             ResetListView(void);
r1038r1039
262262static void             DestroyIcons(void);
263263static void             ReloadIcons(void);
264264static void             PollGUIJoystick(void);
265static void             PressKey(HWND hwnd,UINT vk);
265//static void             PressKey(HWND hwnd,UINT vk);
266266static BOOL             MameCommand(HWND hwnd,int id, HWND hwndCtl, UINT codeNotify);
267267static void             KeyboardKeyDown(int syskey, int vk_code, int special);
268268static void             KeyboardKeyUp(int syskey, int vk_code, int special);
269269static void             KeyboardStateClear(void);
270270
271271static void             UpdateStatusBar(void);
272static BOOL             PickerHitTest(HWND hWnd);
272//static BOOL             PickerHitTest(HWND hWnd);
273273static BOOL             TreeViewNotify(NMHDR *nm);
274274
275275static void             ResetBackground(char *szFile);
r1038r1039
307307
308308static void             ToggleScreenShot(void);
309309static void             AdjustMetrics(void);
310static void             EnablePlayOptions(int nIndex, core_options *o);
310//static void             EnablePlayOptions(int nIndex, core_options *o);
311311
312312/* Icon routines */
313313static DWORD            GetShellLargeIconSize(void);
r1038r1039
854854/***************************************************************************
855855    External functions
856856 ***************************************************************************/
857
857#if 0
858858static void CopyOptions(core_options *pDestOpts, core_options *pSourceOpts)
859859{
860860   options_enumerator *enumerator;
r1038r1039
877877   }
878878}
879879
880
881
882880static BOOL WaitWithMessageLoop(HANDLE hEvent)
883881{
884882   DWORD dwRet;
r1038r1039
904902   }
905903   return FALSE;
906904}
905#endif
907906
908907static DWORD RunMAME(int nGameIndex, const play_options *playopts)
909908{
r1038r1039
16831682   LONG common_control_version = GetCommonControlVersion();
16841683   int validity_failed = 0;
16851684   TCHAR* t_inpdir;
1685   LONG_PTR l;
16861686
16871687   dprintf("about to init options\n");
16881688   if (!OptionsInit())
r1038r1039
18031803   }
18041804
18051805   /* subclass history window */
1806   g_lpHistoryWndProc = (WNDPROC)(LONG)(int)GetWindowLong(GetDlgItem(hMain, IDC_HISTORY), GWL_WNDPROC);
1807   SetWindowLong(GetDlgItem(hMain, IDC_HISTORY), GWL_WNDPROC, (LONG)HistoryWndProc);
1806   l = GetWindowLongPtr(GetDlgItem(hMain, IDC_HISTORY), GWLP_WNDPROC);
1807   g_lpHistoryWndProc = (WNDPROC)l;
1808   SetWindowLongPtr(GetDlgItem(hMain, IDC_HISTORY), GWLP_WNDPROC, (LONG_PTR)HistoryWndProc);
18081809
18091810   /* subclass picture frame area */
1810   g_lpPictureFrameWndProc = (WNDPROC)(LONG)(int)GetWindowLong(GetDlgItem(hMain, IDC_SSFRAME), GWL_WNDPROC);
1811   SetWindowLong(GetDlgItem(hMain, IDC_SSFRAME), GWL_WNDPROC, (LONG)PictureFrameWndProc);
1811   l = GetWindowLongPtr(GetDlgItem(hMain, IDC_SSFRAME), GWLP_WNDPROC);
1812   g_lpPictureFrameWndProc = (WNDPROC)l;
1813   SetWindowLongPtr(GetDlgItem(hMain, IDC_SSFRAME), GWLP_WNDPROC, (LONG_PTR)PictureFrameWndProc);
18121814
18131815   /* subclass picture area */
1814   g_lpPictureWndProc = (WNDPROC)(LONG)(int)GetWindowLong(GetDlgItem(hMain, IDC_SSPICTURE), GWL_WNDPROC);
1815   SetWindowLong(GetDlgItem(hMain, IDC_SSPICTURE), GWL_WNDPROC, (LONG)PictureWndProc);
1816   l = GetWindowLongPtr(GetDlgItem(hMain, IDC_SSPICTURE), GWLP_WNDPROC);
1817   g_lpPictureWndProc = (WNDPROC)l;
1818   SetWindowLongPtr(GetDlgItem(hMain, IDC_SSPICTURE), GWLP_WNDPROC, (LONG_PTR)PictureWndProc);
18161819
18171820   /* Load the pic for the default screenshot. */
18181821   hMissing_bitmap = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDB_ABOUT));
r1038r1039
21012104   mame32_pool = NULL;
21022105}
21032106
2104static long WINAPI MameWindowProc(HWND hWnd, UINT message, UINT wParam, LONG lParam)
2107static LRESULT CALLBACK MameWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
21052108{
21062109   MINMAXINFO   *mminfo;
21072110   int       i;
r1038r1039
32523255   return "";
32533256}
32543257
3258#if 0
32553259static BOOL PickerHitTest(HWND hWnd)
32563260{
32573261   RECT         rect;
r1038r1039
32593263   DWORD         res = GetMessagePos();
32603264   LVHITTESTINFO   htInfo;
32613265
3262    ZeroMemory(&htInfo,sizeof(LVHITTESTINFO));
3266   ZeroMemory(&htInfo,sizeof(LVHITTESTINFO));
32633267   p = MAKEPOINTS(res);
32643268   GetWindowRect(hWnd, &rect);
32653269   htInfo.pt.x = p.x - rect.left;
r1038r1039
32683272
32693273   return (! (htInfo.flags & LVHT_NOWHERE));
32703274}
3275#endif
32713276
32723277static BOOL TreeViewNotify(LPNMHDR nm)
32733278{
r1038r1039
37103715   }
37113716}
37123717
3718#if 0
37133719static void PressKey(HWND hwnd, UINT vk)
37143720{
37153721   SendMessage(hwnd, WM_KEYDOWN, vk, 0);
37163722   SendMessage(hwnd, WM_KEYUP,   vk, 0xc0000000);
37173723}
3724#endif
37183725
37193726static void SetView(int menu_id)
37203727{
r1038r1039
59075914   SetWindowPos(hMain, 0, area.x, area.y, area.width, area.height, SWP_NOZORDER | SWP_SHOWWINDOW | SWP_NOACTIVATE);
59085915}
59095916
5910
5917#if 0
59115918/* Adjust options - tune them to the currently selected game */
59125919static void EnablePlayOptions(int nIndex, core_options *o)
59135920{
59145921}
5922#endif
59155923
59165924int FindIconIndex(int nIconResource)
59175925{
src/osd/winui/datamap.c
r1038r1039
147147{
148148   datamap_entry *entry;
149149
150   assert(callback_type >= 0);
150151   assert(callback_type < DCT_COUNT);
151152
152153   entry = find_entry(map, dlgitem);
src/osd/winui/m32opts.c
r1038r1039
644644
645645const char * GetImageTabLongName(int tab_index)
646646{
647   assert(tab_index >= 0);
647648   assert(tab_index < ARRAY_LENGTH(image_tabs_long_name));
648649   return image_tabs_long_name[tab_index];
649650}
650651
651652const char * GetImageTabShortName(int tab_index)
652653{
654   assert(tab_index >= 0);
653655   assert(tab_index < ARRAY_LENGTH(image_tabs_short_name));
654656   return image_tabs_short_name[tab_index];
655657}
r1038r1039
29652967    */
29662968   pathname = astring_assemble_3(astring_alloc(), GetIniDir(), PATH_SEPARATOR, "source");
29672969   match = astring_assemble_3(astring_alloc(), astring_c(pathname), PATH_SEPARATOR, "*.ini");
2968   if ((hFindFile = FindFirstFile(astring_c(match), &findFileData)) != INVALID_HANDLE_VALUE)
2970   if ((hFindFile = win_find_first_file_utf8(astring_c(match), &findFileData)) != INVALID_HANDLE_VALUE)
29692971   {
29702972      astring_free(match);
29712973      match = astring_assemble_3(astring_alloc(), astring_c(pathname), PATH_SEPARATOR, findFileData.cFileName );
src/osd/winui/audit32.c
r1038r1039
450450   va_end(marker);
451451
452452   t_s = tstring_from_utf8(ConvertToWindowsNewlines(buffer));
453   if( !t_s || strcmp("", t_s) == 0)
453   if( !t_s || _tcscmp(TEXT(""), t_s) == 0)
454454      return;
455455
456456   textLength = Edit_GetTextLength(hEdit);
src/osd/winui/treeview.c
r1038r1039
213213
214214void InitTree(LPFOLDERDATA lpFolderData, LPFILTER_ITEM lpFilterList)
215215{
216   LONG_PTR l;
217   
216218   g_lpFolderData = lpFolderData;
217219   g_lpFilterList = lpFilterList;
218220
r1038r1039
220222
221223   /* this will subclass the treeview (where WM_DRAWITEM gets sent for
222224      the header control) */
223   g_lpTreeWndProc = (WNDPROC)(LONG)(int)GetWindowLong(GetTreeView(), GWL_WNDPROC);
224   SetWindowLong(GetTreeView(), GWL_WNDPROC, (LONG)TreeWndProc);
225   l = GetWindowLongPtr(GetTreeView(), GWLP_WNDPROC);
226   g_lpTreeWndProc = (WNDPROC)l;
227   SetWindowLongPtr(GetTreeView(), GWLP_WNDPROC, (LONG_PTR)TreeWndProc);
225228}
226229
227230void DestroyTree(HWND hWnd)
src/osd/winui/properties.c
r1038r1039
207207static void BuildDataMap(void);
208208static void ResetDataMap(HWND hWnd);
209209
210#if 0
210211static BOOL IsControlOptionValue(HWND hDlg,HWND hwnd_ctrl, core_options *opts );
212#endif
211213
212214static void UpdateBackgroundBrush(HWND hwndTab);
213215HBRUSH hBkBrush;
r1038r1039
12091211
12101212            // Disable apply button
12111213            PropSheet_UnChanged(GetParent(hDlg), hDlg);
1212            SetWindowLong(hDlg, DWL_MSGRESULT, PSNRET_NOERROR);
1214            SetWindowLongPtr(hDlg, DWLP_MSGRESULT, PSNRET_NOERROR);
12131215
12141216            // If we a closing, free the core_options
12151217            if (bClosing)
r1038r1039
22452247#endif // MESS
22462248}
22472249
2250#if 0
22482251BOOL IsControlOptionValue(HWND hDlg,HWND hwnd_ctrl, core_options *opts )
22492252{
22502253   int control_id = GetWindowLong(hwnd_ctrl, GWL_ID);
r1038r1039
23112314
23122315   return TRUE;
23132316}
2317#endif
23142318
2315
23162319static void SetStereoEnabled(HWND hWnd, int nIndex)
23172320{
23182321   BOOL enabled = FALSE;
src/mess/devices/harddriv.c
r1038r1039
175175}
176176
177177
178
178#ifdef UNUSED_FUNCTION
179179static int device_create_mess_hd(mess_image *image, int create_format, option_resolution *create_args)
180180{
181181   int err;
r1038r1039
202202error:
203203   return INIT_FAIL;
204204}
205#endif
205206
206207
207
208208/*************************************
209209 *
210210 *   device_unload_mess_hd()
src/mess/devices/sonydriv.c
r1038r1039
106106   return (sony_lines & SONY_CA1) && (sony_lines & SONY_LSTRB);
107107}
108108
109#ifdef UNUSED_FUNCTION
109110static floppy *get_sony_floppy(mess_image *img)
110111{
111112   int id = image_index_in_device(img);
112113   return &sony_floppy[id];
113114}
115#endif
114116
115117
116
117118static void load_track_data(int floppy_select)
118119{
119120   int track_size;
src/mess/audio/kaypro.c
r1038r1039
1010#include "sound/custom.h"
1111#include "streams.h"
1212
13#ifdef UNUSED_FUNCTION
1314static   sound_stream  *channel;
15#endif
1416#define BELL_FREQ   1000
1517static   INT32 bell_signal;
18#ifdef UNUSED_FUNCTION
1619static   INT32 bell_counter;
20#endif
1721
1822#define CLICK_FREQ   2000
1923static   INT32 click_signal;
24#ifdef UNUSED_FUNCTION
2025static   INT32 click_counter;
26#endif
2127
28#ifdef UNUSED_FUNCTION
2229static void kaypro_sound_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length)
2330{
2431   stream_sample_t *buffer = _buffer[0];
r1038r1039
4047}
4148
4249
43
4450static int kaypro_sh_start(int clock, const struct CustomSound_interface *config)
4551{
4652   channel = stream_create(0, 1, Machine->sample_rate, 0, kaypro_sound_update);
4753   return 0;
4854}
55#endif
4956
5057
51
5258/******************************************************
5359 *   Ring my bell ;)
5460 ******************************************************/
src/mess/audio/mea8000.c
r1038r1039
261261}
262262
263263
264
264#ifdef UNUSED_FUNCTION
265265/* linear interpolation */
266266static double mea8000_interp_f( double org, double dst )
267267{
268268   return org + ((dst-org) * mea8000.framepos) / mea8000.framelength;
269269}
270#endif
270271
271272
272
273273#ifndef FLOAT_MODE /* UINT16 version */
274274
275275
src/mess/video/m6847.c
r1038r1039
14871487}
14881488
14891489
1490
1490#ifdef MAME_DEBUG
14911491static int get_beamx(void)
14921492{
14931493   mame_time scanline_time;
r1038r1039
15211521   }
15221522   return result;
15231523}
1524#endif
15241525
15251526
1526
15271527INLINE void prepare_scanline(int xpos)
15281528{
15291529   UINT8 attrs, data, attr;
src/mess/video/tx0.c
r1038r1039
227227      tx0_plot_pixel(bitmap, x, y++, color);
228228}
229229
230#ifdef UNUSED_FUNCTION
230231/* draw a horizontal line */
231232static void tx0_draw_hline(mame_bitmap *bitmap, int x, int y, int width, int color)
232233{
233234   while (width--)
234235      tx0_plot_pixel(bitmap, x++, y, color);
235236}
237#endif
236238
237
238239/*
239240   draw the operator control panel (fixed backdrop)
240241*/
src/mess/video/saa5050.c
r1038r1039
112112   video_start_generic(machine);
113113}
114114
115#ifdef UNUSED_FUNCTION
115116static void saa5050_vh_callback (void)
116117{
117118   if (frame_count++ > 49)
118119      frame_count = 0;
119120}
121#endif
120122
121123/* || */
122124
src/mess/video/kc.c
r1038r1039
560560 KC85/4 video hardware
561561***************************************************************************/
562562
563#ifdef UNUSED_FUNCTION
563564static void kc85_common_vh_eof_callback(void)
564565{
565566      EVENT_LIST_ITEM *pItem;
r1038r1039
577578         logerror ("Event log reset in callback fn.\n");
578579      }
579580}
581#endif
580582
581
582583static void kc85_common_vh_start(void)
583584{
584585   kc85_blink_state = 0;
src/mess/osd/winui/mess32ui.c
r1038r1039
3737
3838#define LOG_SOFTWARE   0
3939
40#ifdef UNUSED_FUNCTION
4041static int requested_device_type(char *tchar);
42#endif
4143
4244static void SoftwarePicker_OnHeaderContextMenu(POINT pt, int nColumn);
4345
r1038r1039
190192
191193
192194// ------------------------------------------------------------------------
193
195#ifdef UNUSED_FUNCTION
194196static int requested_device_type(char *tchar)
195197{
196198   int device = -1;
r1038r1039
214216
215217   return device;
216218}
219#endif
217220
218221
219
220222// ------------------------------------------------------------------------
221223// UI
222224// ------------------------------------------------------------------------
r1038r1039
289291}
290292
291293
292
294#ifdef UNUSED_FUNCTION
293295static void MessHashErrorProc(const char *message)
294296{
295297   SetStatusBarTextF(0, "Hash file: %s", message);
296298}
299#endif
297300
298301
299
300302static BOOL AddSoftwarePickerDirs(HWND hwndPicker, LPCSTR pszDirectories, LPCSTR pszSubDir)
301303{
302304   LPCSTR s;
src/mess/machine/pdp1.c
r1038r1039
10291029   mame_timer_adjust(parallel_drum.il_timer, il_phase, 0, PARALLEL_DRUM_ROTATION_TIME);
10301030}
10311031
1032#ifdef UNUSED_FUNCTION
10321033static TIMER_CALLBACK(il_timer_callback)
10331034{
10341035   if (parallel_drum.dba)
r1038r1039
10461047   parallel_drum.il_timer = mame_timer_alloc(il_timer_callback);
10471048   parallel_drum_set_il(0);
10481049}
1050#endif
10491051
10501052/*
10511053   Open a file for drum
src/mess/drivers/comquest.c
r1038r1039
4444#include "includes/comquest.h"
4545#include "devices/cartslot.h"
4646
47#ifdef UNUSED_FUNCTION
4748static  READ8_HANDLER(comquest_read)
4849{
4950   UINT8 data=0;
r1038r1039
5556{
5657   logerror("comquest read %.4x %.2x\n",offset,data);
5758}
59#endif
5860
5961static ADDRESS_MAP_START( comquest_mem , ADDRESS_SPACE_PROGRAM, 8)
6062//   { 0x0000, 0x7fff, MRA8_BANK1 },
src/mess/drivers/nc.c
r1038r1039
12461246/**********************************************************************************************************/
12471247/* NC200 hardware */
12481248
1249
1249#ifdef UNUSED_FUNCTION
12501250static WRITE8_HANDLER(nc200_display_memory_start_w)
12511251{
12521252   /* bit 7: A15 */
r1038r1039
12581258#ifdef VERBOSE
12591259   logerror("disp memory w: %04x\n", (int) nc_display_memory_start);
12601260#endif
1261
12621261}
1262#endif
12631263
12641264static void nc200_printer_handshake_in(int number, int data, int mask)
12651265{
r1038r1039
13621362    NULL,
13631363};
13641364
1365#ifdef UNUSED_FUNCTION
13651366static void nc200_floppy_drive_index_callback(int drive_id)
13661367{
13671368#ifdef NC200_DEBUG
r1038r1039
13711372
13721373//   nc_update_interrupts();
13731374}
1375#endif
13741376
13751377static void nc200_machine_reset(running_machine *machine)
13761378{
src/mess/drivers/adam.c
r1038r1039
209209   AM_RANGE(0xE0, 0xFF) AM_READWRITE( adam_paddle_r, SN76496_0_w )
210210ADDRESS_MAP_END
211211
212#ifdef UNUSED_FUNCTION
212213/*
213214I do now know the real memory map of the Master 6801...
214215and the 6801 ASM code is a replacement coded for this driver.
215216*/
216
217217static ADDRESS_MAP_START( master6801_mem , ADDRESS_SPACE_PROGRAM, 8)
218218   AM_RANGE( 0x0100, 0x3fff) AM_ROM /* Replacement Master ROM code */
219219   AM_RANGE( 0x4000, 0xffff) AM_READWRITE( master6801_ram_r, master6801_ram_w ) /* RAM Memory shared with Z80 not banked*/
220220ADDRESS_MAP_END
221#endif
221222
222223INPUT_PORTS_START( adam )
223224    PORT_START  /* IN0 */
src/mess/drivers/pcw16.c
r1038r1039
628628}
629629
630630/* interfaces to a pc-at keyboard */
631static READ8_HANDLER(pcw16_keyboard_data_shift_r)
631static READ8_HANDLER(pcw16_keyboard_data_shift_r)
632632{
633633   //logerror("keyboard data shift r: %02x\n", pcw16_keyboard_data_shift);
634634   pcw16_keyboard_state &= ~(PCW16_KEYBOARD_BUSY_STATUS);
r1038r1039
642642}
643643
644644/* if force keyboard clock is low it is safe to send */
645static int      pcw16_keyboard_can_transmit(void)
645static int pcw16_keyboard_can_transmit(void)
646646{
647647   /* clock is not forced low */
648648   /* and not busy - i.e. not already sent a char */
649649   return ((pcw16_keyboard_bits_output & PCW16_KEYBOARD_CLOCK)!=0);
650650}
651651
652#ifdef UNUSED_FUNCTION
652653/* issue a begin byte transfer */
653654static void   pcw16_begin_byte_transfer(void)
654655{
655656}
657#endif
656658
657
658659/* signal a code has been received */
659660static void   pcw16_keyboard_signal_byte_received(int data)
660661{
r1038r1039
14561457   ROM_LOAD("pcw045.sys",0x10000, 524288, CRC(c642f498) SHA1(8a5c05de92e7b2c5acdfb038217503ad363285b5))
14571458ROM_END
14581459
1460#ifdef UNUSED_FUNCTION
14591461static void pcw16_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
14601462{
14611463   /* printer */
r1038r1039
14671469      default:                              printer_device_getinfo(devclass, state, info); break;
14681470   }
14691471}
1472#endif
14701473
14711474static void pcw16_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
14721475{
src/mess/drivers/spectrum.c
r1038r1039
13911391
13921392static int betadisk_status;
13931393static int betadisk_active;
1394#ifdef UNUSED_FUNCTION
13941395static void (*betadisk_memory_update)(void);
13951396
13961397static OPBASE_HANDLER(betadisk_opbase_handler)
r1038r1039
14181419
14191420   return pc & 0x0ffff;
14201421}
1422#endif
14211423
14221424static void betadisk_wd179x_callback(wd17xx_state_t state, void *param)
14231425{
r1038r1039
14491451   }
14501452}
14511453
1454#ifdef UNUSED_FUNCTION
14521455/* these are active only when betadisk is enabled */
14531456static WRITE8_HANDLER(betadisk_w)
14541457{
r1038r1039
14591462   }
14601463}
14611464
1462
14631465/* these are active only when betadisk is enabled */
14641466static  READ8_HANDLER(betadisk_r)
14651467{
r1038r1039
14781480
14791481   return 0x0ff;
14801482}
1483#endif
14811484
14821485static void    betadisk_init(void)
14831486{
src/mess/drivers/ip22.c
r1038r1039
166166   int3_regs[0] &= ~source_mask;
167167}
168168
169#ifdef UNUSED_FUNCTION
169170// raise a local1 interrupt
170171static void int3_raise_local1_irq(UINT8 source_mask)
171172{
r1038r1039
184185{
185186   int3_regs[2] &= ~source_mask;
186187}
188#endif
187189
188190static READ32_HANDLER( hpc3_pbus6_r )
189191{
r1038r1039
894896   }
895897}
896898
899#ifdef UNUSED_FUNCTION
897900static READ32_HANDLER( unk_r )
898901{
899902//   mame_printf_info("UNK_R: PC=%x\n", activecpu_get_pc());
r1038r1039
909912{
910913   return 0xffffffff;
911914}
915#endif
912916
913917// a bit hackish, but makes the memory detection work properly and allows a big cleanup of the mapping
914918static WRITE32_HANDLER( ip22_write_ram )
r1038r1039
15531557   }
15541558}
15551559
1560#ifdef UNUSED_FUNCTION
15561561static void ip22_harddisk_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
15571562{
15581563   /* harddisk */
r1038r1039
15641569      default: harddisk_device_getinfo(devclass, state, info); break;
15651570   }
15661571}
1572#endif
15671573
15681574MACHINE_DRIVER_START( ip225015 )
15691575   MDRV_CPU_ADD_TAG( "main", R5000BE, 50000000*3 )
src/mess/drivers/studio2.c
r1038r1039
132132   AM_RANGE(0x02, 0x02) AM_WRITE(keylatch_w)
133133ADDRESS_MAP_END
134134
135#ifdef UNUSED_FUNCTION
135136static ADDRESS_MAP_START( mpt02_map, ADDRESS_SPACE_PROGRAM, 8 )
136137   AM_RANGE(0x0000, 0x07ff) AM_ROM
137138   AM_RANGE(0x0800, 0x09ff) AM_RAM
r1038r1039
144145   AM_RANGE(0x02, 0x02) AM_WRITE(keylatch_w)
145146   AM_RANGE(0x04, 0x04) AM_READWRITE(cdp1864_dispoff_r, cdp1864_tone_latch_w)
146147ADDRESS_MAP_END
148#endif
147149
148150/* Input Ports */
149151
src/mess/drivers/mekd2.c
r1038r1039
4141#define LOG(x)   /* x */
4242#endif
4343
44#ifdef UNUSED_FUNCTION
4445static  READ8_HANDLER(mekd2_pia_r) { return 0xff; }
4546static  READ8_HANDLER(mekd2_cas_r) { return 0xff; }
4647static  READ8_HANDLER(mekd2_kbd_r) { return 0xff; }
48#endif
4749
4850UINT8 pia[8];
4951
52#ifdef UNUSED_FUNCTION
5053static WRITE8_HANDLER(mekd2_pia_w) { }
5154static WRITE8_HANDLER(mekd2_cas_w) { }
55#endif
5256
5357static WRITE8_HANDLER(mekd2_kbd_w)
5458{
src/mess/drivers/at.c
r1038r1039
198198ADDRESS_MAP_END
199199
200200
201
201#ifdef UNUSED_FUNCTION
202202static ADDRESS_MAP_START(ps2m30286_io, ADDRESS_SPACE_IO, 8)
203203   AM_RANGE(0x0000, 0x001f) AM_READWRITE(dma8237_0_r,            dma8237_0_w)
204204   AM_RANGE(0x0020, 0x003f) AM_READWRITE(pic8259_0_r,            pic8259_0_w)
r1038r1039
227227   AM_RANGE(0x03f0, 0x03f7) AM_READWRITE(pc_fdc_r,               pc_fdc_w)
228228   AM_RANGE(0x03f8, 0x03ff) AM_READWRITE(uart8250_0_r,            uart8250_0_w)
229229ADDRESS_MAP_END
230#endif
230231
231
232232INPUT_PORTS_START( atcga )
233233   PORT_START /* IN0 */
234234   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
src/mess/drivers/amiga.c
r1038r1039
380380   amigakbd_init();
381381}
382382
383#ifdef UNUSED_FUNCTION
383384static DRIVER_INIT( amiga_ecs )
384385{
385386   static const amiga_machine_interface amiga_intf =
r1038r1039
411412   /* initialize keyboard */
412413   amigakbd_init();
413414}
415#endif
414416
415
416417static DRIVER_INIT( cdtv )
417418{
418419   static const amiga_machine_interface amiga_intf =
src/mess/drivers/einstein.c
r1038r1039
435435   einstein_update_interrupts();
436436}
437437
438#ifdef UNUSED_FUNCTION
438439/* not required for this interrupt source */
439440static void einstein_fire_int_reset(int which)
440441{
r1038r1039
442443
443444   einstein_update_interrupts();
444445}
446#endif
445447
446448static int einstein_keyboard_interrupt(int which)
447449{
r1038r1039
458460   return 0x0ff;
459461}
460462
463#ifdef UNUSED_FUNCTION
461464static int einstein_fire_interrupt(int which)
462465{
463466   logerror("fire int routine in daisy chain\n");
464467   /* return vector */
465468   return 0x0ff;
466469}
470#endif
467471
468472/* reti has no effect on this interrupt */
469473static void einstein_keyboard_reti(int which)
r1038r1039
475479{
476480}
477481
482#ifdef UNUSED_FUNCTION
478483/* reti has no effect on this interrupt */
479484static void einstein_fire_reti(int which)
480485{
481486}
487#endif
482488
483489static struct z80_irq_daisy_chain einstein_daisy_chain[] =
484490{
src/mess/drivers/intv.c
r1038r1039
467467   }
468468}
469469
470#ifdef UNUSED_FUNCTION
470471static void intvkbd_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
471472{
472473   /* cassette */
r1038r1039
484485      case DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap"); break;
485486   }
486487}
488#endif
487489
488490SYSTEM_CONFIG_START(intvkbd)
489491   CONFIG_DEVICE(intvkbd_cartslot_getinfo)
src/mess/drivers/amstrad.c
r1038r1039
17261726    8,  0,  0,  0,  8,  0,  0,  0,  8,  0,  0,  0,  8,  0,  0,  0
17271727};
17281728
1729#ifdef UNUSED_FUNCTION
17291730/* every 2us let's the crtc do the job !*/
17301731static void amstrad_update_video_1(int dummy)
17311732{
17321733   amstrad_vh_execute_crtc_cycles(2);
17331734}
1735#endif
17341736
17351737static TIMER_CALLBACK(amstrad_vh_execute_crtc_cycles_callback)
17361738{
src/mess/drivers/avigo.c
r1038r1039
151151        return amd_flash_bank_handler_r(avigo_flash_at_0x8000, flash_offset);
152152}
153153
154#ifdef UNUSED_FUNCTION
154155/* memory 0x08000-0x0bfff */
155156static WRITE8_HANDLER(avigo_flash_0x8000_write_handler)
156157{
r1038r1039
161162
162163        amd_flash_bank_handler_w(avigo_flash_at_0x8000, flash_offset, data);
163164}
165#endif
164166
165
166167static void avigo_refresh_ints(void)
167168{
168169   if (avigo_irq!=0)
src/mess/drivers/apple2.c
r1038r1039
680680   MDRV_GFXDECODE(apple2_gfxdecodeinfo)
681681MACHINE_DRIVER_END
682682
683#ifdef UNUSED_FUNCTION
683684static MACHINE_DRIVER_START( ace100 )
684685   MDRV_IMPORT_FROM( apple2_common )
685686   MDRV_VIDEO_START(apple2p)
686687   MDRV_GFXDECODE(apple2_gfxdecodeinfo)
687688MACHINE_DRIVER_END
689#endif
688690
689691ROM_START(las3000)
690692   ROM_REGION(0x0800,REGION_GFX1,0)
src/mess/drivers/ti99_4p.c
r1038r1039
313313   ROM_LOAD("spchrom.bin", 0x0000, 0x8000, CRC(58b155f7)) /* system speech ROM */
314314ROM_END
315315
316#ifdef UNUSED_FUNCTION
316317static void ti99_4p_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
317318{
318319   /* cassette */
r1038r1039
324325      default:                              cassette_device_getinfo(devclass, state, info); break;
325326   }
326327}
328#endif
327329
328330static void ti99_4p_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
329331{
src/mess/drivers/pc.c
r1038r1039
105105static READ16_HANDLER( pc16le_YM3812_0_r ) { return read16le_with_read8_handler(pc_YM3812_0_r, offset, mem_mask); }
106106static WRITE16_HANDLER( pc16le_YM3812_0_w ) { write16le_with_write8_handler(pc_YM3812_0_w, offset, data, mem_mask); }
107107
108#ifdef UNUSED_FUNCTION
108109static WRITE16_HANDLER( pc16le_SN76496_0_w ) { write16le_with_write8_handler(SN76496_0_w, offset, data, mem_mask); }
110#endif
109111
110112// IO Expansion, only a little bit for ibm bios self tests
111113//#define EXP_ON
src/mess/drivers/vc4000.c
r1038r1039
138138    { -1 } /* end of array */
139139};
140140
141#ifdef UNUSED_FUNCTION
141142static INTERRUPT_GEN( vc4000 )
142143{
143144}
145#endif
144146
145147static const unsigned char vc4000_palette[] =
146148{

Previous 15994 Revisions Next


© 1998-2018 The MESS Team