| Previous | 15994 Revisions | Next |
| r8345 Tuesday 29th June, 2010 at 09:06:30 UTC by Miodrag Milanović |
|---|
| Made tools compile again (except messtest), this requires full clean build. |
| [src/emu] | devcpu.c devcpu.h devlegcy.h sound.c sound.h timer.c timer.h video.c video.h |
| [src/emu/machine] | eeprom.c eeprom.h z80ctc.c z80ctc.h z80dart.c z80dart.h z80dma.c z80dma.h z80pio.c z80pio.h z80sio.c z80sio.h z80sti.c z80sti.h |
| [src/emu/sound] | okim6295.c okim6295.h |
| [src/mess/tools] | tools.mak |
| [src/mess/tools/castool] | castool.mak |
| [src/mess/tools/imgtool] | imgtool.mak |
| [src/mess/tools/imgtool/modules] | mac.c |
| [src/mess/tools/imgtool/windows] | assoc.c assocdlg.c attrdlg.c hexview.c secview.c wimgtool.c wmain.c |
| r8344 | r8345 | |
|---|---|---|
| 2564 | 2564 | #define BILINEAR_FILTER 1 |
| 2565 | 2565 | |
| 2566 | 2566 | #include "rendersw.c" |
| 2567 | ||
| 2568 | const device_type SCREEN = screen_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 272 | 272 | |
| 273 | 273 | |
| 274 | 274 | // device type definition |
| 275 | const device_type SCREEN | |
| 275 | extern const device_type SCREEN | |
| 276 | 276 | |
| 277 | 277 | |
| 278 | 278 |
| r8344 | r8345 | |
|---|---|---|
| 529 | 529 | } |
| 530 | 530 | } |
| 531 | 531 | } |
| 532 | ||
| 533 | const device_type SOUND_OKIM6295 = okim6295_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 171 | 171 | |
| 172 | 172 | |
| 173 | 173 | // device type definition |
| 174 | const device_type SOUND_OKIM6295 | |
| 174 | extern const device_type SOUND_OKIM6295 | |
| 175 | 175 | |
| 176 | 176 | |
| 177 | 177 |
| r8344 | r8345 | |
|---|---|---|
| 199 | 199 | virtual device_t *alloc_device(running_machine &machine) const; \ |
| 200 | 200 | }; \ |
| 201 | 201 | \ |
| 202 | const device_type name | |
| 202 | extern const device_type name | |
| 203 | 203 | |
| 204 | 204 | // macro for defining the implementation needed for configuration and device classes |
| 205 | 205 | #define _DEFINE_LEGACY_DEVICE(name, basename, configclass, deviceclass, baseconfigclass, basedeviceclass) \ |
| r8344 | r8345 | |
| 222 | 222 | device_t *configclass::alloc_device(running_machine &machine) const \ |
| 223 | 223 | { \ |
| 224 | 224 | return pool_alloc(machine_get_pool(machine), deviceclass(machine, *this)); \ |
| 225 | } | |
| 225 | } \ | |
| 226 | const device_type name = configclass::static_alloc_device_config | |
| 226 | 227 | |
| 227 | 228 | // reduced macros that are easier to use, and map to the above two macros |
| 228 | 229 | #define DECLARE_LEGACY_DEVICE(name, basename) _DECLARE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_device_config_base, legacy_device_base) |
| r8344 | r8345 | |
|---|---|---|
| 576 | 576 | else if (m_string_export != NULL) |
| 577 | 577 | (*m_string_export)(this, entry, string); |
| 578 | 578 | } |
| 579 | ||
| 580 | const device_type CPU = legacy_cpu_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 467 | 467 | address_space_config m_space_config[3]; // array of address space configs |
| 468 | 468 | }; |
| 469 | 469 | |
| 470 | const device_type CPU | |
| 470 | extern const device_type CPU | |
| 471 | 471 | |
| 472 | 472 | |
| 473 | 473 |
| r8344 | r8345 | |
|---|---|---|
| 898 | 898 | WRITE_LINE_DEVICE_HANDLER( z80dma_rdy_w ) { downcast<z80dma_device *>(device)->rdy_w(state); } |
| 899 | 899 | WRITE_LINE_DEVICE_HANDLER( z80dma_wait_w ) { downcast<z80dma_device *>(device)->wait_w(state); } |
| 900 | 900 | WRITE_LINE_DEVICE_HANDLER( z80dma_bai_w ) { downcast<z80dma_device *>(device)->bai_w(state); } |
| 901 | ||
| 902 | const device_type Z80DMA = z80dma_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 185 | 185 | |
| 186 | 186 | |
| 187 | 187 | // device type definition |
| 188 | const device_type Z80DMA | |
| 188 | extern const device_type Z80DMA | |
| 189 | 189 | |
| 190 | 190 | |
| 191 | 191 |
| r8344 | r8345 | |
|---|---|---|
| 878 | 878 | |
| 879 | 879 | BIT(offset, 0) ? z80pio_c_w(device, index, data) : z80pio_d_w(device, index, data); |
| 880 | 880 | } |
| 881 | ||
| 882 | const device_type Z80PIO = z80pio_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 207 | 207 | |
| 208 | 208 | |
| 209 | 209 | // device type definition |
| 210 | const device_type Z80PIO | |
| 210 | extern const device_type Z80PIO | |
| 211 | 211 | |
| 212 | 212 | |
| 213 | 213 |
| r8344 | r8345 | |
|---|---|---|
| 779 | 779 | WRITE_LINE_DEVICE_HANDLER( z80sti_i5_w ) { downcast<z80sti_device *>(device)->gpip_input(5, state); } |
| 780 | 780 | WRITE_LINE_DEVICE_HANDLER( z80sti_i6_w ) { downcast<z80sti_device *>(device)->gpip_input(6, state); } |
| 781 | 781 | WRITE_LINE_DEVICE_HANDLER( z80sti_i7_w ) { downcast<z80sti_device *>(device)->gpip_input(7, state); } |
| 782 | ||
| 783 | const device_type Z80STI = z80sti_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 203 | 203 | |
| 204 | 204 | |
| 205 | 205 | // device type definition |
| 206 | const device_type Z80STI | |
| 206 | extern const device_type Z80STI | |
| 207 | 207 | |
| 208 | 208 | |
| 209 | 209 |
| r8344 | r8345 | |
|---|---|---|
| 1405 | 1405 | else |
| 1406 | 1406 | z80dart_d_w(device, channel, data); |
| 1407 | 1407 | } |
| 1408 | ||
| 1409 | const device_type Z80DART = z80dart_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 267 | 267 | |
| 268 | 268 | |
| 269 | 269 | // device type definition |
| 270 | const device_type Z80DART | |
| 270 | extern const device_type Z80DART | |
| 271 | 271 | /* |
| 272 | 272 | #define Z8470 DEVICE_GET_INFO_NAME(z8470) |
| 273 | 273 | #define LH0081 DEVICE_GET_INFO_NAME(lh0088) |
| r8344 | r8345 | |
|---|---|---|
| 572 | 572 | return (*cmd==0); |
| 573 | 573 | } |
| 574 | 574 | |
| 575 | const device_type EEPROM = eeprom_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 156 | 156 | |
| 157 | 157 | |
| 158 | 158 | // device type definition |
| 159 | const device_type EEPROM | |
| 159 | extern const device_type EEPROM | |
| 160 | 160 | |
| 161 | 161 | |
| 162 | 162 |
| r8344 | r8345 | |
|---|---|---|
| 896 | 896 | case 3: z80sio_c_w(device, 1, data); break; |
| 897 | 897 | } |
| 898 | 898 | } |
| 899 | ||
| 900 | const device_type Z80SIO = z80sio_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | // device type definition |
| 167 | const device_type Z80SIO | |
| 167 | extern const device_type Z80SIO | |
| 168 | 168 | |
| 169 | 169 | |
| 170 | 170 |
| r8344 | r8345 | |
|---|---|---|
| 559 | 559 | WRITE_LINE_DEVICE_HANDLER( z80ctc_trg1_w ) { downcast<z80ctc_device *>(device)->trigger(1, state); } |
| 560 | 560 | WRITE_LINE_DEVICE_HANDLER( z80ctc_trg2_w ) { downcast<z80ctc_device *>(device)->trigger(2, state); } |
| 561 | 561 | WRITE_LINE_DEVICE_HANDLER( z80ctc_trg3_w ) { downcast<z80ctc_device *>(device)->trigger(3, state); } |
| 562 | ||
| 563 | const device_type Z80CTC = z80ctc_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 158 | 158 | |
| 159 | 159 | |
| 160 | 160 | // device type definition |
| 161 | const device_type Z80CTC | |
| 161 | extern const device_type Z80CTC | |
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 |
| r8344 | r8345 | |
|---|---|---|
| 821 | 821 | speaker_device *speaker = index_to_input(machine, index, inputnum); |
| 822 | 822 | return (speaker != NULL) ? speaker->input_name(inputnum) : 0; |
| 823 | 823 | } |
| 824 | ||
| 825 | const device_type SPEAKER = speaker_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | |
| 127 | 127 | // device type definition |
| 128 | const device_type SPEAKER | |
| 128 | extern const device_type SPEAKER | |
| 129 | 129 | |
| 130 | 130 | |
| 131 | 131 |
| r8344 | r8345 | |
|---|---|---|
| 1169 | 1169 | // adjust the timer |
| 1170 | 1170 | timer_adjust_oneshot(m_timer, m_screen->time_until_pos(next_vpos), 0); |
| 1171 | 1171 | } |
| 1172 | ||
| 1173 | const device_type TIMER = timer_device_config::static_alloc_device_config; |
| r8344 | r8345 | |
|---|---|---|
| 335 | 335 | |
| 336 | 336 | |
| 337 | 337 | // device type definition |
| 338 | const device_type TIMER | |
| 338 | extern const device_type TIMER | |
| 339 | 339 | |
| 340 | 340 | |
| 341 | 341 | #endif /* __TIMER_H__ */ |
| r8344 | r8345 | |
|---|---|---|
| 34 | 34 | $(EMUOBJ)/emucore.o \ |
| 35 | 35 | $(EMUOBJ)/emuopts.o \ |
| 36 | 36 | $(EMUOBJ)/memory.o \ |
| 37 | $(EMUOBJ)/ioprocs.o \ | |
| 37 | 38 | $(MESSOBJ)/utils.o \ |
| 38 | $(MESSOBJ)/opresolv.o \ | |
| 39 | 39 | $(MESS_FORMATS)/a26_cas.o \ |
| 40 | 40 | $(MESS_FORMATS)/apf_apt.o \ |
| 41 | 41 | $(MESS_FORMATS)/cbm_tap.o \ |
| r8344 | r8345 | |
| 62 | 62 | $(MESS_FORMATS)/vg5k_cas.o \ |
| 63 | 63 | $(MESS_FORMATS)/vt_cas.o \ |
| 64 | 64 | $(MESS_FORMATS)/zx81_p.o \ |
| 65 | $(MESS_FORMATS)/ioprocs.o \ | |
| 66 | 65 | $(MESS_FORMATS)/cassimg.o \ |
| 67 | 66 | $(MESS_FORMATS)/wavfile.o \ |
| 68 | 67 |
| r8344 | r8345 | |
|---|---|---|
| 14 | 14 | MESS_TOOLS = $(MESSOBJ)/tools |
| 15 | 15 | |
| 16 | 16 | |
| 17 | ifdef BUILD_IMGTOOL | |
| 18 | include $(MESSSRC)/tools/imgtool/imgtool.mak | |
| 19 | TOOLS += $(IMGTOOL) | |
| 20 | endif | |
| 17 | 21 | |
| 18 | ifdef BUILD_MESSTEST | |
| 19 | include $(MESSSRC)/tools/messtest/messtest.mak | |
| 20 | TOOLS += $(MESSTEST) | |
| 22 | ifdef BUILD_CASTOOL | |
| 23 | include $(MESSSRC)/tools/castool/castool.mak | |
| 24 | TOOLS += $(CASTOOL) | |
| 21 | 25 | endif |
| 22 | 26 | |
| 27 | #ifdef BUILD_MESSTEST | |
| 28 | #include $(MESSSRC)/tools/messtest/messtest.mak | |
| 29 | #TOOLS += $(MESSTEST) | |
| 30 | #endif | |
| 31 | ||
| 23 | 32 | ifdef BUILD_DAT2HTML |
| 24 | 33 | include $(MESSSRC)/tools/dat2html/dat2html.mak |
| 25 | 34 | TOOLS += $(DAT2HTML) |
| r8344 | r8345 | |
| 33 | 42 | include $(MESSSRC)/tools/imgtool/windows/wimgtool.mak |
| 34 | 43 | TOOLS += $(WIMGTOOL) |
| 35 | 44 | endif |
| 36 | endif | |
| 45 | endif | |
| No newline at end of file |
| r8344 | r8345 | |
|---|---|---|
| 37 | 37 | $(EMUOBJ)/emuopts.o \ |
| 38 | 38 | $(EMUOBJ)/memory.o \ |
| 39 | 39 | $(MESSOBJ)/utils.o \ |
| 40 | $(MESSOBJ)/opresolv.o \ | |
| 41 | $(MESS_FORMATS)/ioprocs.o \ | |
| 40 | $(EMUOBJ)/ioprocs.o \ | |
| 41 | $(EMUOBJ)/image.o \ | |
| 42 | 42 | $(MESS_FORMATS)/flopimg.o \ |
| 43 | 43 | $(MESS_FORMATS)/cassimg.o \ |
| 44 | 44 | $(MESS_FORMATS)/basicdsk.o \ |
| r8344 | r8345 | |
|---|---|---|
| 17 | 17 | #include "wimgres.h" |
| 18 | 18 | #include "strconv.h" |
| 19 | 19 | #include "../imgtool.h" |
| 20 | #include "utils.h" | |
| 20 | 21 | |
| 21 | 22 | |
| 22 | 23 | //============================================================ |
| r8344 | r8345 | |
|---|---|---|
| 1 | #define WIN32_LEAN_AND_MEAN | |
| 1 | 2 | #include <windows.h> |
| 2 | 3 | #include <windowsx.h> |
| 3 | 4 | #include <commctrl.h> |
| 5 | #include <commdlg.h> | |
| 4 | 6 | |
| 7 | ||
| 5 | 8 | #include "attrdlg.h" |
| 6 | 9 | #include "wimgres.h" |
| 7 | 10 | #include "opcntrl.h" |
| r8344 | r8345 | |
|---|---|---|
| 3 | 3 | // wimgtool.c - Win32 GUI Imgtool |
| 4 | 4 | // |
| 5 | 5 | //============================================================ |
| 6 | ||
| 6 | // standard windows headers | |
| 7 | #define WIN32_LEAN_AND_MEAN | |
| 8 | #define _WIN32_IE 0x0501 | |
| 7 | 9 | #include <windows.h> |
| 8 | 10 | #include <windowsx.h> |
| 11 | #include <shellapi.h> | |
| 9 | 12 | #include <commctrl.h> |
| 13 | #include <commdlg.h> | |
| 14 | #include <wingdi.h> | |
| 15 | ||
| 16 | // standard C headers | |
| 17 | #include <stdio.h> | |
| 18 | #include <ctype.h> | |
| 19 | #include <io.h> | |
| 20 | #include <fcntl.h> | |
| 21 | #include <dlgs.h> | |
| 22 | #include <string.h> | |
| 23 | #include <sys/stat.h> | |
| 24 | #include <time.h> | |
| 10 | 25 | #include <tchar.h> |
| 11 | #include <ctype.h> | |
| 12 | 26 | |
| 13 | 27 | #include "emu.h" |
| 14 | 28 | #include "wimgtool.h" |
| r8344 | r8345 | |
|---|---|---|
| 3 | 3 | // secview.c - A Win32 sector editor dialog |
| 4 | 4 | // |
| 5 | 5 | //============================================================ |
| 6 | ||
| 6 | #define WIN32_LEAN_AND_MEAN | |
| 7 | 7 | #ifndef _WIN32_WINNT |
| 8 | 8 | #define _WIN32_WINNT 0x400 |
| 9 | 9 | #endif |
| r8344 | r8345 | |
|---|---|---|
| 1 | #define WIN32_LEAN_AND_MEAN | |
| 1 | 2 | #include <windows.h> |
| 2 | 3 | #include <tchar.h> |
| 3 | 4 | #include <ctype.h> |
| r8344 | r8345 | |
|---|---|---|
| 3 | 3 | // wmain.h - Win32 GUI Imgtool main code |
| 4 | 4 | // |
| 5 | 5 | //============================================================ |
| 6 | ||
| 6 | #define WIN32_LEAN_AND_MEAN | |
| 7 | 7 | #include <windows.h> |
| 8 | 8 | #include <commctrl.h> |
| 9 | 9 | |
| r8344 | r8345 | |
| 13 | 13 | #include "../modules.h" |
| 14 | 14 | #include "winutf8.h" |
| 15 | 15 | #include "strconv.h" |
| 16 | #include "utils.h" | |
| 16 | 17 | |
| 17 | 18 | int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance, |
| 18 | 19 | LPWSTR command_line_w, int cmd_show) |
| r8344 | r8345 | |
|---|---|---|
| 3 | 3 | // hexview.c - A Win32 hex editor control |
| 4 | 4 | // |
| 5 | 5 | //============================================================ |
| 6 | ||
| 6 | #define WIN32_LEAN_AND_MEAN | |
| 7 | #include <windows.h> | |
| 8 | #include <windowsx.h> | |
| 9 | #include <shellapi.h> | |
| 10 | #include <commctrl.h> | |
| 11 | #include <commdlg.h> | |
| 7 | 12 | #include "winutils.h" |
| 8 | 13 | #include <stdio.h> |
| 9 | 14 | #include <tchar.h> |
| r8344 | r8345 | |
|---|---|---|
| 94 | 94 | #include <stddef.h> |
| 95 | 95 | |
| 96 | 96 | #include "emu.h" |
| 97 | #include "utils.h" | |
| 97 | 98 | #include "osdepend.h" |
| 98 | 99 | #include "imgtoolx.h" |
| 99 | 100 | #include "macutil.h" |
| Previous | 15994 Revisions | Next |