| Previous | 15994 Revisions | Next |
| r9935 Wednesday 5th January, 2011 at 21:12:59 UTC by Miodrag Milanović |
|---|
| Moved LCD layout definition to emu section and fixed tools compile. |
| [src/emu] | clifront.c emu.h emu.mak rendlay.c rendlay.h video.h |
| [src/emu/layout] | lcd.lay* lcd_rot.lay* |
| [src/mess] | mess.c mess.h mess.mak |
| [src/mess/drivers] | bw2.c cfx9850.c clcd.c cybiko.c gamecom.c gamepock.c gba.c gizmondo.c gmaster.c gp32.c hp49gp.c micronic.c nc.c ngp.c palm.c pb1000.c pc4.c pokemini.c polgar.c portfoli.c prestige.c psion.c ti89.c x07.c |
| [src/mess/layout] | |
| [src/mess/tools/castool] | castool.mak main.c |
| [src/mess/tools/imgtool] | imgtool.mak |
| [src/mess/video] | kyocera.c |
| r9934 | r9935 | |
|---|---|---|
| 55 | 55 | const int FRAMESKIP_LEVELS = 12; |
| 56 | 56 | const int MAX_FRAMESKIP = FRAMESKIP_LEVELS - 2; |
| 57 | 57 | |
| 58 | #define LCD_FRAMES_PER_SECOND 30 | |
| 58 | 59 | |
| 59 | ||
| 60 | 60 | //************************************************************************** |
| 61 | 61 | // TYPE DEFINITIONS |
| 62 | 62 | //************************************************************************** |
| r9934 | r9935 | |
|---|---|---|
| 111 | 111 | #include "image.h" |
| 112 | 112 | |
| 113 | 113 | // the running machine |
| 114 | #ifdef MESS | |
| 115 | #include "mess.h" | |
| 116 | #endif /* MESS */ | |
| 117 | 114 | #include "machine.h" |
| 118 | 115 | #include "mame.h" |
| 119 | 116 |
| r9934 | r9935 | |
|---|---|---|
| 113 | 113 | #include "voffff20.lh" |
| 114 | 114 | #include "hoffff20.lh" |
| 115 | 115 | |
| 116 | // LCD screen layouts | |
| 117 | #include "lcd.lh" | |
| 118 | #include "lcd_rot.lh" | |
| 116 | 119 | |
| 117 | 120 | |
| 118 | 121 | //************************************************************************** |
| r9934 | r9935 | |
|---|---|---|
| 318 | 318 | extern const char layout_hoffff20[]; // horizontal 4:3 with FF,FF,20 color overlay |
| 319 | 319 | extern const char layout_voffff20[]; // vertical 4:3 with FF,FF,20 color overlay |
| 320 | 320 | |
| 321 | // LCD screen layouts | |
| 322 | extern const char layout_lcd[]; // generic 1:1 lcd screen layout | |
| 323 | extern const char layout_lcd_rot[]; // same, for use with ROT90 or ROT270 | |
| 321 | 324 | |
| 322 | 325 | #endif // __RENDLAY_H__ |
| r0 | r9935 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <view name="LCD with square pixels"> | |
| 4 | <screen index="0"> | |
| 5 | <bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" /> | |
| 6 | </screen> | |
| 7 | </view> | |
| 8 | </mamelayout> |
| r0 | r9935 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <view name="LCD with square pixels"> | |
| 4 | <screen index="0"> | |
| 5 | <bounds left="0" top="0" right="~scr0height~" bottom="~scr0width~" /> | |
| 6 | </screen> | |
| 7 | </view> | |
| 8 | </mamelayout> |
| r9934 | r9935 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | #include <new> |
| 25 | 25 | #include <ctype.h> |
| 26 | #ifdef MESS | |
| 27 | #include "mess.h" | |
| 28 | #endif | |
| 26 | 29 | |
| 27 | 30 | |
| 28 | ||
| 29 | ||
| 30 | 31 | /*************************************************************************** |
| 31 | 32 | TYPE DEFINITIONS |
| 32 | 33 | ***************************************************************************/ |
| r9934 | r9935 | |
|---|---|---|
| 312 | 312 | $(EMULAYOUT)/hoffe457.lh \ |
| 313 | 313 | $(EMULAYOUT)/hoffff20.lh \ |
| 314 | 314 | $(EMULAYOUT)/voffff20.lh \ |
| 315 | $(EMULAYOUT)/lcd.lh \ | |
| 316 | $(EMULAYOUT)/lcd_rot.lh \ | |
| 315 | 317 | |
| 316 | 318 | $(EMUOBJ)/video.o: $(EMULAYOUT)/snap.lh |
| r9934 | r9935 | |
|---|---|---|
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "emu.h" |
| 10 | #include "emuopts.h" | |
| 11 | 10 | |
| 12 | #include "lcd.lh" | |
| 13 | #include "lcd_rot.lh" | |
| 14 | ||
| 15 | #include "machine/ram.h" | |
| 16 | ||
| 17 | 11 | /* Globals */ |
| 18 | 12 | const char mess_disclaimer[] = |
| 19 | 13 | "MESS is an emulator: it reproduces, more or less faithfully, the behaviour of\n" |
| r9934 | r9935 | |
|---|---|---|
| 10 | 10 | #define __MESS_H__ |
| 11 | 11 | |
| 12 | 12 | /*************************************************************************** |
| 13 | CONSTANTS | |
| 14 | ***************************************************************************/ | |
| 15 | #define LCD_FRAMES_PER_SECOND 30 | |
| 16 | ||
| 17 | ||
| 18 | /*************************************************************************** | |
| 19 | 13 | GLOBALS |
| 20 | 14 | ***************************************************************************/ |
| 21 | 15 | |
| 22 | extern const char layout_lcd[]; /* generic 1:1 lcd screen layout */ | |
| 23 | extern const char layout_lcd_rot[]; /* same, for use with ROT90 or ROT270 */ | |
| 24 | ||
| 25 | 16 | extern const char mess_disclaimer[]; |
| 26 | 17 | |
| 27 | 18 | /*************************************************************************** |
| r9934 | r9935 | |
|---|---|---|
| 30 | 30 | #include "formats/fmsx_cas.h" |
| 31 | 31 | #include "formats/gtp_cas.h" |
| 32 | 32 | #include "formats/hect_tap.h" |
| 33 | #include "formats/ | |
| 33 | #include "formats/ace | |
| 34 | 34 | #include "formats/kim1_cas.h" |
| 35 | 35 | #include "formats/lviv_lvt.h" |
| 36 | 36 | #include "formats/mz_cas.h" |
| r9934 | r9935 | |
| 66 | 66 | {"fmxs", fmsx_cassette_formats ,"MSX"}, |
| 67 | 67 | {"gtp", gtp_cassette_formats ,"Galaksija"}, |
| 68 | 68 | {"hector", hector_cassette_formats ,"Hector - k7 : classical, FOR : forth cassette "}, |
| 69 | {"jupiter", | |
| 69 | {"jupiter", ac | |
| 70 | 70 | {"kim1", kim1_cassette_formats ,"KIM-1"}, |
| 71 | 71 | {"lviv", lviv_lvt_format ,"Lviv"}, |
| 72 | 72 | {"mz", mz700_cassette_formats ,"Sharp MZ"}, |
| r9934 | r9935 | |
|---|---|---|
| 43 | 43 | $(MESS_FORMATS)/csw_cas.o \ |
| 44 | 44 | $(MESS_FORMATS)/fmsx_cas.o \ |
| 45 | 45 | $(MESS_FORMATS)/gtp_cas.o \ |
| 46 | $(MESS_FORMATS)/ | |
| 46 | $(MESS_FORMATS)/ace | |
| 47 | 47 | $(MESS_FORMATS)/hect_tap.o \ |
| 48 | 48 | $(MESS_FORMATS)/kim1_cas.o \ |
| 49 | 49 | $(MESS_FORMATS)/lviv_lvt.o \ |
| r9934 | r9935 | |
| 61 | 61 | $(MESS_FORMATS)/vg5k_cas.o \ |
| 62 | 62 | $(MESS_FORMATS)/vt_cas.o \ |
| 63 | 63 | $(MESS_FORMATS)/zx81_p.o \ |
| 64 | $(MESS_FORMATS)/cassimg.o \ | |
| 65 | $(MESS_FORMATS)/wavfile.o \ | |
| 64 | $(EMUOBJ)/imagedev/cassimg.o \ | |
| 65 | $(EMUOBJ)/imagedev/wavfile.o \ | |
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | $(LIBCASTOOL): $(CASTOOL_LIB_OBJS) |
| r9934 | r9935 | |
|---|---|---|
| 37 | 37 | $(EMUOBJ)/emuopts.o \ |
| 38 | 38 | $(EMUOBJ)/memory.o \ |
| 39 | 39 | $(EMUOBJ)/ioprocs.o \ |
| 40 | $(MESS_FORMATS)/flopimg.o \ | |
| 41 | $(MESS_FORMATS)/cassimg.o \ | |
| 40 | $(EMUOBJ)/imagedev/flopimg.o \ | |
| 41 | $(EMUOBJ)/imagedev/cassimg.o \ | |
| 42 | 42 | $(MESS_FORMATS)/basicdsk.o \ |
| 43 | 43 | $(MESS_FORMATS)/coco_dsk.o \ |
| 44 | 44 | $(MESS_FORMATS)/coco_cas.o \ |
| r9934 | r9935 | |
| 50 | 50 | $(MESS_FORMATS)/pc_dsk.o \ |
| 51 | 51 | $(MESS_FORMATS)/ap2_dsk.o \ |
| 52 | 52 | $(MESS_FORMATS)/ap_dsk35.o \ |
| 53 | $( | |
| 53 | $( | |
| 54 | 54 | $(MESS_FORMATS)/vt_dsk.o \ |
| 55 | 55 | $(MESS_FORMATS)/fdi_dsk.o \ |
| 56 | 56 | $(IMGTOOLOBJ)/stream.o \ |
| r9934 | r9935 | |
|---|---|---|
| 4 | 4 | #include "includes/kyocera.h" |
| 5 | 5 | #include "video/hd44102.h" |
| 6 | 6 | #include "video/hd61830.h" |
| 7 | #include "rendlay.h" | |
| 7 | 8 | |
| 8 | 9 | static PALETTE_INIT( kc85 ) |
| 9 | 10 | { |
| r9934 | r9935 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <view name="LCD with square pixels"> | |
| 4 | <screen index="0"> | |
| 5 | <bounds left="0" top="0" right="~scr0height~" bottom="~scr0width~" /> | |
| 6 | </screen> | |
| 7 | </view> | |
| 8 | </mamelayout> |
| r9934 | r9935 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <view name="LCD with square pixels"> | |
| 4 | <screen index="0"> | |
| 5 | <bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" /> | |
| 6 | </screen> | |
| 7 | </view> | |
| 8 | </mamelayout> |
| r9934 | r9935 | |
|---|---|---|
| 1809 | 1809 | # layout dependencies |
| 1810 | 1810 | #------------------------------------------------- |
| 1811 | 1811 | |
| 1812 | $(MESSOBJ)/mess.o: $(MESS_LAYOUT)/lcd.lh | |
| 1813 | $(MESSOBJ)/mess.o: $(MESS_LAYOUT)/lcd_rot.lh | |
| 1814 | ||
| 1815 | 1812 | $(MESS_DRIVERS)/4004clk.o: $(MESS_LAYOUT)/4004clk.lh |
| 1816 | 1813 | $(MESS_DRIVERS)/acrnsys1.o: $(MESS_LAYOUT)/acrnsys1.lh |
| 1817 | 1814 | $(MESS_DRIVERS)/aim65.o: $(MESS_LAYOUT)/aim65.lh |
| r9934 | r9935 | |
|---|---|---|
| 18 | 18 | #include "imagedev/cartslot.h" |
| 19 | 19 | #include "machine/nvram.h" |
| 20 | 20 | #include "sound/beep.h" |
| 21 | #include "rendlay.h" | |
| 21 | 22 | |
| 22 | 23 | class pb1000_state : public driver_device |
| 23 | 24 | { |
| r9934 | r9935 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | #include "emu.h" |
| 8 | 8 | #include "cpu/hcd62121/hcd62121.h" |
| 9 | #include "rendlay.h" | |
| 9 | 10 | |
| 10 | ||
| 11 | 11 | class cfx9850_state : public driver_device |
| 12 | 12 | { |
| 13 | 13 | public: |
| r9934 | r9935 | |
|---|---|---|
| 13 | 13 | #include "includes/pokemini.h" |
| 14 | 14 | #include "cpu/minx/minx.h" |
| 15 | 15 | #include "imagedev/cartslot.h" |
| 16 | #include "rendlay.h" | |
| 16 | 17 | |
| 17 | ||
| 18 | 18 | static ADDRESS_MAP_START( pokemini_mem_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 19 | 19 | AM_RANGE( 0x000000, 0x000FFF ) AM_ROM /* bios */ |
| 20 | 20 | AM_RANGE( 0x001000, 0x001FFF ) AM_RAM AM_BASE_MEMBER(pokemini_state, ram) /* VRAM/RAM */ |
| r9934 | r9935 | |
|---|---|---|
| 15 | 15 | #include "sound/dac.h" |
| 16 | 16 | #include "debugger.h" |
| 17 | 17 | #include "machine/ram.h" |
| 18 | #include "rendlay.h" | |
| 18 | 19 | |
| 19 | ||
| 20 | 20 | class palm_state : public driver_device |
| 21 | 21 | { |
| 22 | 22 | public: |
| r9934 | r9935 | |
|---|---|---|
| 19 | 19 | #include "includes/gamecom.h" |
| 20 | 20 | #include "cpu/sm8500/sm8500.h" |
| 21 | 21 | #include "imagedev/cartslot.h" |
| 22 | #include "rendlay.h" | |
| 22 | 23 | |
| 23 | ||
| 24 | 24 | static ADDRESS_MAP_START(gamecom_mem_map, ADDRESS_SPACE_PROGRAM, 8) |
| 25 | 25 | AM_RANGE( 0x0000, 0x0013 ) AM_RAM |
| 26 | 26 | AM_RANGE( 0x0014, 0x0017 ) AM_READWRITE( gamecom_pio_r, gamecom_pio_w ) // buttons |
| r9934 | r9935 | |
|---|---|---|
| 5 | 5 | #include "emu.h" |
| 6 | 6 | #include "cpu/upd7810/upd7810.h" |
| 7 | 7 | #include "imagedev/cartslot.h" |
| 8 | ||
| 8 | #include "rendlay.h" | |
| 9 | 9 | #include "includes/gmaster.h" |
| 10 | 10 | |
| 11 | 11 |
| r9934 | r9935 | |
|---|---|---|
| 32 | 32 | #include "machine/docg3.h" |
| 33 | 33 | #include "machine/s3c2440.h" |
| 34 | 34 | #include "video/gf4500.h" |
| 35 | #include "rendlay.h" | |
| 35 | 36 | |
| 36 | 37 | #define VERBOSE_LEVEL ( 0 ) |
| 37 | 38 |
| r9934 | r9935 | |
|---|---|---|
| 29 | 29 | #include "sound/beep.h" |
| 30 | 30 | #include "includes/x07.h" |
| 31 | 31 | #include "imagedev/printer.h" |
| 32 | #include "rendlay.h" | |
| 32 | 33 | |
| 33 | 34 | static void t6834_cmd (running_machine *machine, UINT8 cmd); |
| 34 | 35 | static void receive_from_t6834 (running_machine *machine); |
| r9934 | r9935 | |
|---|---|---|
| 4 | 4 | #include "sound/speaker.h" |
| 5 | 5 | #include "imagedev/cartslot.h" |
| 6 | 6 | #include "includes/gamepock.h" |
| 7 | #include "rendlay.h" | |
| 7 | 8 | |
| 8 | ||
| 9 | 9 | static ADDRESS_MAP_START(gamepock_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 10 | 10 | ADDRESS_MAP_UNMAP_HIGH |
| 11 | 11 | AM_RANGE(0x0000,0x0fff) AM_ROM |
| r9934 | r9935 | |
|---|---|---|
| 7 | 7 | #include "emu.h" |
| 8 | 8 | #include "cpu/arm7/arm7.h" |
| 9 | 9 | #include "machine/s3c2410.h" |
| 10 | #include "rendlay.h" | |
| 10 | 11 | |
| 11 | 12 | #define VERBOSE_LEVEL ( 0 ) |
| 12 | 13 |
| r9934 | r9935 | |
|---|---|---|
| 108 | 108 | #include "imagedev/cartslot.h" |
| 109 | 109 | #include "sound/beep.h" |
| 110 | 110 | #include "machine/ram.h" |
| 111 | #include "rendlay.h" | |
| 111 | 112 | |
| 112 | ||
| 113 | 113 | #define VERBOSE 0 |
| 114 | 114 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| 115 | 115 |
| r9934 | r9935 | |
|---|---|---|
| 78 | 78 | #include "cpu/z80/z80.h" |
| 79 | 79 | #include "machine/ram.h" |
| 80 | 80 | #include "imagedev/cartslot.h" |
| 81 | #include "rendlay.h" | |
| 81 | 82 | |
| 82 | 83 | |
| 83 | 84 | class prestige_state : public driver_device |
| r9934 | r9935 | |
|---|---|---|
| 101 | 101 | #include "sound/t6w28.h" |
| 102 | 102 | #include "sound/dac.h" |
| 103 | 103 | #include "video/k1ge.h" |
| 104 | #include "rendlay.h" | |
| 104 | 105 | |
| 105 | ||
| 106 | 106 | enum flash_state |
| 107 | 107 | { |
| 108 | 108 | F_READ, /* xxxx F0 or 5555 AA 2AAA 55 5555 F0 */ |
| r9934 | r9935 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "emu.h" |
| 11 | 11 | #include "cpu/z80/z80.h" |
| 12 | #include "rendlay.h" | |
| 12 | 13 | |
| 13 | 14 | class pc4_state : public driver_device |
| 14 | 15 | { |
| r9934 | r9935 | |
|---|---|---|
| 42 | 42 | #include "machine/pit8253.h" |
| 43 | 43 | #include "video/msm6255.h" |
| 44 | 44 | #include "includes/bw2.h" |
| 45 | #include "rendlay.h" | |
| 45 | 46 | |
| 46 | 47 | int bw2_state::get_ramdisk_size() |
| 47 | 48 | { |
| r9934 | r9935 | |
|---|---|---|
| 89 | 89 | #include "machine/nvram.h" |
| 90 | 90 | #include "sound/speaker.h" |
| 91 | 91 | #include "video/hd61830.h" |
| 92 | #include "rendlay.h" | |
| 92 | 93 | |
| 93 | 94 | //************************************************************************** |
| 94 | 95 | // MACROS / CONSTANTS |
| r9934 | r9935 | |
|---|---|---|
| 22 | 22 | #include "includes/gp32.h" |
| 23 | 23 | #include "sound/dac.h" |
| 24 | 24 | #include "video/generic.h" |
| 25 | #include "rendlay.h" | |
| 25 | 26 | |
| 26 | 27 | #define VERBOSE_LEVEL ( 0 ) |
| 27 | 28 |
| r9934 | r9935 | |
|---|---|---|
| 22 | 22 | #include "machine/at45dbxx.h" |
| 23 | 23 | #include "machine/sst39vfx.h" |
| 24 | 24 | #include "machine/ram.h" |
| 25 | #include "rendlay.h" | |
| 25 | 26 | |
| 26 | 27 | /* Until support for the H8Sxxxx variants used by cybiko is added, we use H8_3002 (even if opcodes differ) */ |
| 27 | 28 | #define H8S2241 H83002 |
| r9934 | r9935 | |
|---|---|---|
| 22 | 22 | #include "includes/ti89.h" |
| 23 | 23 | #include "machine/nvram.h" |
| 24 | 24 | #include "machine/intelfsh.h" |
| 25 | #include "rendlay.h" | |
| 25 | 26 | |
| 26 | ||
| 27 | 27 | UINT8 ti68k_state::keypad_r (running_machine *machine) |
| 28 | 28 | { |
| 29 | 29 | UINT8 port, bit, data = 0xff; |
| r9934 | r9935 | |
|---|---|---|
| 121 | 121 | #include "machine/mc146818.h" |
| 122 | 122 | #include "machine/ram.h" |
| 123 | 123 | #include "sound/beep.h" |
| 124 | #include "rendlay.h" | |
| 124 | 125 | |
| 125 | 126 | static UINT8 keypad_r (running_machine *machine) |
| 126 | 127 | { |
| r9934 | r9935 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "emu.h" |
| 10 | 10 | #include "cpu/m6502/m6502.h" |
| 11 | #include "rendlay.h" | |
| 11 | 12 | |
| 12 | ||
| 13 | 13 | class clcd_state : public driver_device |
| 14 | 14 | { |
| 15 | 15 | public: |
| r9934 | r9935 | |
|---|---|---|
| 42 | 42 | // #include "rendlay.h" |
| 43 | 43 | // #include "uiinput.h" |
| 44 | 44 | #include "machine/mboard.h" |
| 45 | #include "rendlay.h" | |
| 45 | 46 | |
| 46 | 47 | //static UINT8 lcd_shift_counter; |
| 47 | 48 | static UINT8 led_status; |
| r9934 | r9935 | |
|---|---|---|
| 26 | 26 | #include "imagedev/cartslot.h" |
| 27 | 27 | #include "video/hd44780.h" |
| 28 | 28 | #include "includes/psion.h" |
| 29 | #include "rendlay.h" | |
| 29 | 30 | |
| 30 | 31 | /*********************************************** |
| 31 | 32 |
| r9934 | r9935 | |
|---|---|---|
| 24 | 24 | #include "machine/intelfsh.h" |
| 25 | 25 | #include "audio/gb.h" |
| 26 | 26 | #include "includes/gba.h" |
| 27 | #include "rendlay.h" | |
| 27 | 28 | |
| 28 | 29 | #define VERBOSE_LEVEL (0) |
| 29 | 30 |
| Previous | 15994 Revisions | Next |