| Previous | 15994 Revisions | Next |
| r3731 Tuesday 2nd December, 2008 at 04:40:17 UTC by Nathan Woods |
|---|
| Removed cases where imports were not in header files. [Atari Ace] |
| [src/mess/drivers] | apple2gs.c apple3.c orion.c |
| [src/mess/includes] | apple2.h radio86.h |
| [src/mess/machine] | c128.c cbmdrive.c enterp.c europc.c orion.c |
| [src/mess/tools/imgtool/modules] | fat.c pc_flop.c |
| [src/mess/video] | homelab.c x68k.c |
| r3730 | r3731 | |
|---|---|---|
| 137 | 137 | |
| 138 | 138 | #include "imgtool.h" |
| 139 | 139 | #include "unicode.h" |
| 140 | #include "fat.h" | |
| 140 | 141 | |
| 141 | 142 | #define FAT_DIRENT_SIZE 32 |
| 142 | 143 | #define FAT_SECLEN 512 |
| r3730 | r3731 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "imgtool.h" |
| 10 | 10 | #include "formats/pc_dsk.h" |
| 11 | #include "fat.h" | |
| 11 | 12 | #include "iflopimg.h" |
| 12 | 13 | |
| 13 | 14 | #define FAT_SECLEN 512 |
| 14 | 15 | |
| 15 | /* imports from fat.c */ | |
| 16 | extern void fat_get_info(const imgtool_class *imgclass, UINT32 state, union imgtoolinfo *info); | |
| 17 | 16 | |
| 18 | ||
| 19 | ||
| 20 | 17 | static imgtoolerr_t fat_image_create(imgtool_image *image, imgtool_stream *stream, option_resolution *opts) |
| 21 | 18 | { |
| 22 | 19 | imgtoolerr_t err; |
| r3730 | r3731 | |
|---|---|---|
| 42 | 42 | { |
| 43 | 43 | int x,y,j,b; |
| 44 | 44 | UINT8 *gfx = memory_region(screen->machine, "gfx1"); |
| 45 | const address_space *space = cpu_get_address_space(screen->machine->cpu[0], ADDRESS_SPACE_PROGRAM); | |
| 45 | const address_space *space = cpu_get_address_space(screen->machine->cpu[0], ADDRESS_SPACE_PROGRAM); | |
| 46 | 46 | |
| 47 | 47 | for(y = 0; y < 25; y++ ) |
| 48 | 48 | { |
| r3730 | r3731 | |
|---|---|---|
| 52 | 52 | |
| 53 | 53 | static void x68k_render_video_word(int offset); |
| 54 | 54 | static void x68k_crtc_refresh_mode(running_machine *machine); |
| 55 | void x68k_scanline_check(int); | |
| 56 | 55 | |
| 57 | 56 | INLINE void x68k_plot_pixel(bitmap_t *bitmap, int x, int y, UINT32 color) |
| 58 | 57 | { |
| r3730 | r3731 | |
|---|---|---|
| 11 | 11 | #include "machine/8257dma.h" |
| 12 | 12 | #include "video/i8275.h" |
| 13 | 13 | |
| 14 | /*----------- defined in drivers/radio86.c -----------*/ | |
| 15 | ||
| 16 | INPUT_PORTS_EXTERN( radio86 ); | |
| 17 | INPUT_PORTS_EXTERN( ms7007 ); | |
| 18 | ||
| 19 | ||
| 14 | 20 | /*----------- defined in machine/radio86.c -----------*/ |
| 15 | 21 | |
| 16 | 22 | extern DRIVER_INIT( radio86 ); |
| r3730 | r3731 | |
| 42 | 48 | extern UINT8 radio86_tape_value; |
| 43 | 49 | |
| 44 | 50 | extern void radio86_init_keyboard(void); |
| 51 | ||
| 52 | ||
| 45 | 53 | /*----------- defined in video/radio86.c -----------*/ |
| 54 | ||
| 46 | 55 | extern UINT8 mikrosha_font_page; |
| 47 | 56 | |
| 48 | 57 | extern I8275_DISPLAY_PIXELS(radio86_display_pixels); |
| r3730 | r3731 | |
|---|---|---|
| 57 | 57 | OTHER |
| 58 | 58 | ***************************************************************************/ |
| 59 | 59 | |
| 60 | /*----------- defined in drivers/apple2.c -----------*/ | |
| 61 | ||
| 62 | MACHINE_DRIVER_EXTERN( apple2e ); | |
| 63 | INPUT_PORTS_EXTERN( apple2ep ); | |
| 64 | PALETTE_INIT( apple2 ); | |
| 65 | ||
| 66 | ||
| 60 | 67 | /*----------- defined in machine/apple2.c -----------*/ |
| 61 | 68 | |
| 62 | 69 | extern UINT32 a2; |
| r3730 | r3731 | |
|---|---|---|
| 91 | 91 | return 0xff; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | WRITE8_HANDLER( c128_mmu8722_port_w ); | |
| 95 | READ8_HANDLER( c128_mmu8722_port_r ); | |
| 96 | ||
| 97 | 94 | WRITE8_HANDLER( c128_write_d000 ) |
| 98 | 95 | { |
| 99 | 96 | UINT8 c64_port6510 = (UINT8) cpu_get_info_int(space->machine->cpu[0], CPUINFO_INT_M6510_PORT); |
| r3730 | r3731 | |
|---|---|---|
| 94 | 94 | 254..257 r/w memory ? JIM asic? ram behaviour |
| 95 | 95 | |
| 96 | 96 | */ |
| 97 | ||
| 97 | ||
| 98 | 98 | { |
| 99 | 99 | switch (offset) { |
| 100 | 100 | case 2: |
| r3730 | r3731 | |
| 140 | 140 | return data; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | ||
| 143 | ||
| 144 | 144 | { |
| 145 | 145 | switch (europc_jim.state) { |
| 146 | 146 | case 0: europc_jim.state++; return 0; |
| r3730 | r3731 | |
|---|---|---|
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | |
| 294 | WRITE8_HANDLER ( orionz80_memory_page_w ); | |
| 295 | WRITE8_HANDLER ( orionz80_dispatcher_w ); | |
| 296 | ||
| 297 | 294 | static void orionz80_switch_bank(running_machine *machine) |
| 298 | 295 | { |
| 299 | 296 | UINT8 bank_select; |
| r3730 | r3731 | |
|---|---|---|
| 1474 | 1474 | |
| 1475 | 1475 | ***********************************************/ |
| 1476 | 1476 | |
| 1477 | void drive_reset_write (CBM_Drive * drive, int level); | |
| 1478 | ||
| 1479 | 1477 | CBM_Drive cbm_drive[2]; |
| 1480 | 1478 | |
| 1481 | 1479 | CBM_Serial cbm_serial; |
| r3730 | r3731 | |
|---|---|---|
| 16 | 16 | #include "audio/dave.h" |
| 17 | 17 | |
| 18 | 18 | |
| 19 | void Enterprise_SetupPalette(void); | |
| 20 | ||
| 21 | 19 | DEVICE_IMAGE_LOAD( enterprise_floppy ) |
| 22 | 20 | { |
| 23 | 21 | if (device_load_basicdsk_floppy(image)==INIT_PASS) |
| r3730 | r3731 | |
|---|---|---|
| 103 | 103 | 0xF, 0xF, 0xF /* White $F $0FFF */ |
| 104 | 104 | }; |
| 105 | 105 | |
| 106 | MACHINE_DRIVER_EXTERN( apple2e ); | |
| 107 | INPUT_PORTS_EXTERN( apple2ep ); | |
| 108 | ||
| 109 | 106 | static INPUT_PORTS_START( apple2gs ) |
| 110 | 107 | PORT_INCLUDE( apple2ep ) |
| 111 | 108 |
| r3730 | r3731 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | |
| 32 | extern PALETTE_INIT( apple2 ); | |
| 33 | ||
| 34 | 32 | static MACHINE_DRIVER_START( apple3 ) |
| 35 | 33 | /* basic machine hardware */ |
| 36 | 34 | MDRV_CPU_ADD("main", M6502, 2000000) /* 2 MHz */ |
| r3730 | r3731 | |
|---|---|---|
| 75 | 75 | AM_RANGE( 0x0000, 0xffff) AM_READWRITE ( orionpro_io_r, orionpro_io_w ) |
| 76 | 76 | ADDRESS_MAP_END |
| 77 | 77 | |
| 78 | /* Input ports */ | |
| 79 | INPUT_PORTS_EXTERN( radio86 ); | |
| 80 | INPUT_PORTS_EXTERN( ms7007 ); | |
| 81 | ||
| 82 | 78 | static const cassette_config orion_cassette_config = |
| 83 | 79 | { |
| 84 | 80 | rko_cassette_formats, |
| Previous | 15994 Revisions | Next |