Commit Graph

753 Commits

Author SHA1 Message Date
Aaron Giles
9a359b370d Added new module: tokenize.h. This centralizes the behavior of
tokenizing data structures, as currently used by the input
port system. Redid the input port tokenization to be more
compact and make use of the new macros.
2008-02-25 01:35:48 +00:00
Couriersud
40ba785ded Various vector games:
* Remove MDRV_PALETTE_LENGTH which would trigger an assert in emupal.c (debug build)
2008-02-24 23:43:12 +00:00
Zsolt Vasvari
2b1192dec8 - Backs out BITMAP8 removal from most places.
- I still left drawgfx.c as is, the only piece of code that used any of the functions in drawgfx
  was s2636.c -- everything else uses 8-bit bitmaps as a replacement for a two dimensional array
2008-02-24 23:24:29 +00:00
Couriersud
ee93a91551 dkong.c:
* remove usage of video/generic spriteram, videoram & flip_screen
2008-02-24 19:55:52 +00:00
Aaron Giles
4a7301495b Different fix for X the Ball sound. Pulse no longer works for the 34010. Undid previous fix. 2008-02-24 15:57:25 +00:00
Zsolt Vasvari
803ece9d96 Removes 8-bit bitmap support and converts all previously 8-bit bitmaps to 16-bit 2008-02-24 13:30:08 +00:00
Zsolt Vasvari
51cae46fac - Added some asserts to drawgfx and drawgfxzoom
- Moved some variable declerations so that they are only visible where they are actually used

Note that the diff is large only because I removed a level of indentation from a huge chunk of code.
I could do that because the case it was checking for was already caught by one of the asserts added.
2008-02-24 06:33:02 +00:00
Zsolt Vasvari
4c67395bc6 machine->pen lookup removal 2008-02-24 06:08:08 +00:00
Zsolt Vasvari
0696fc6da2 Fixes crash in Raiga 2008-02-24 05:49:44 +00:00
Brian Troha
b0e0790099 removes the confirmed bad dump of Virtua striker 2 2000 2008-02-24 02:10:31 +00:00
Zsolt Vasvari
58fc9362eb This fixes the DAC sound in X The Ball that got broken in 114u2. Not 100% if the fix is right, though. 2008-02-24 01:54:54 +00:00
Nathan Woods
3f652750d3 Fixed compilation error when compiled for MESS 2008-02-23 20:36:43 +00:00
Couriersud
03037281a4 bionicc.c:
* Added cpu clocks from schematics
* Comment about z80 nmi generation
2008-02-23 19:07:38 +00:00
Aaron Giles
29bc8049cd Fixes for screenless games. 2008-02-23 18:21:32 +00:00
Aaron Giles
5d63aae855 Added a rule to make VS2008 compile seamlessly. 2008-02-23 18:21:20 +00:00
Couriersud
dd0ebc1d8d Remove some deprecat.h includes from osd layer:
* add machine as parameter to osd_update and osd_update_audio_stream
* change Machine to machine and remove include deprecat.h
2008-02-23 17:46:52 +00:00
davidhay
830cc527f1 made the code more readable so that isn't an excuse anymore, but it still seems broken. I don't think the correct raw sprite pen numbers are being written into the temp bitmaps. (zsolt???) 2008-02-23 16:13:49 +00:00
Couriersud
1a18371edc * output raw video parameters pixclock, htotal, hbend, hbstart, vtotal, vbend, vbstart if they have been given. 2008-02-23 12:04:52 +00:00
Zsolt Vasvari
2d9094c05c Fixed typo 2008-02-22 23:42:31 +00:00
Couriersud
eca1bc1732 namcos2, namcos21:
* fix crashes due to nvram allocation in MACHINE_RESET
* create MACHINE_START and move allocation there
2008-02-22 21:53:15 +00:00
R. Belmont
bd986e0110 Added original version of Cosmic Smash, our existing dump is rev. A (credit icronnya77). 2008-02-22 18:05:47 +00:00
Roberto Fresca
5d9fe43d51 Added complete color connections to/from 74ls373 to the source. 2008-02-22 16:44:37 +00:00
Zsolt Vasvari
345a0c470b machine->pens lookup removal 2008-02-22 14:37:10 +00:00
Roberto Fresca
a7ce6cec63 Switched the color decoding routines to use resnet code. 2008-02-22 08:06:24 +00:00
Zsolt Vasvari
ec82c37570 Mr.Do fixed the positioning of the laser beam based on the test mode. 2008-02-22 07:52:33 +00:00
Zsolt Vasvari
422de34a3f - Adds the layout file created by Mr. Do
- Clean-up and reorg
2008-02-22 07:32:08 +00:00
Zsolt Vasvari
5fa2c2c76c machine->pens lookup removal 2008-02-22 03:45:50 +00:00
Zsolt Vasvari
bc69380af9 machine->pens lookup removal 2008-02-22 01:51:36 +00:00
Zsolt Vasvari
8c409c07df Cloak & Dagger video code cleanup:
- resnet conversion - colors are now signficantly less saturated because of the 1K pull-ups.
  This is noticable in the agent's coat and the sky color, for example.  As far as I can tell this
  correct from the schematics.
- Added bitmap palette selection based on the 128H line.  Not sure where this is actually used in
  the game
2008-02-22 01:32:05 +00:00
Couriersud
504337cfb1 Followup to r767:
* submit changes to makefile omitted in r767
2008-02-22 00:17:36 +00:00
Couriersud
9c460a6248 Makefile & build system update:
* verinfo: New syntax.
	verinfo now uses the following syntax: verinfo.exe -b windows|winui|mess. 
	Does not depend on compile time defines any longer.

* makefile will include - if it exists - src/osd/$(CROSS_BUILD_OSD)/build.mak.
	This was necessary to enable cross builds for winui. winui adds mkhelp to build tools and the rules for mkhelp thus had to be moved outside src/osd/winui/winui.mak

* Tested on Linux 64bit, Linux 32bit, Windows 32bit mingw, Windows 32bit MSVC

* Cross build environment to be posted to the list
2008-02-21 23:53:29 +00:00
Brian Troha
885d66e31a remove redundant lines used to test changes 2008-02-21 23:35:37 +00:00
Brian Troha
a9d8713a91 Adds 7MHz XTAL to xtal.h
Corrects clock speeds for the megasys1.c boards.

Yes... the games actually are _THAT_ slow!
2008-02-21 23:29:51 +00:00
Brian Troha
2e217896e8 selling corrections 2008-02-21 22:03:51 +00:00
Aaron Giles
8436bec1e3 Cleanups and version bump for 0.123u2. 2008-02-21 17:43:00 +00:00
Zsolt Vasvari
e619861862 - Added void state_save_combine_module_and_tag(char *dest, const char *module, const char *tag);
Its purpose is to create a unique name for state saving purposes in modules that are tag based (no index)

- Updated MC6845 to make use of this
2008-02-21 12:00:00 +00:00
Zsolt Vasvari
0ab1b992b7 - Pen lookup removal
- With my previous update, some of the games in cave.c asserted out -- this fixes it
- seta.c employs the same pattern as cave.c
2008-02-21 11:43:45 +00:00
Zsolt Vasvari
2e595362d8 - Some more machine->pen lookup removal
- Changed Beathead driver to use partial updates instead of caching scanline level information
2008-02-21 09:12:53 +00:00
Aaron Giles
b7c4a537cd Most important thing to note about this change:
ALL DRIVERS MUST NOW EXPLICITLY DECLARE THEIR SCREENS.

Read on for more detail....

Added device tag as a parameter to the start function for devices.
Updated MC6845 to accept this tag.

Added new functions for iterating through the device list and 
counting devices of a given type. Updated search and iteration
functions to accept DEVICE_TYPE_WILDCARD to work across all
devices.

Added new macro MDRV_DEVICE_CONFIG_DATA() which is used to set a
single item in an inline data structure.

Removed the per-screen palette_base. This was an idea that never
really worked out, nor have we really needed it.

Defined a new device type VIDEO_SCREEN. Currently this has no
live functionality, but merely serves as a placeholder/identifier
for video screens. Eventually some of the screen management code
may move into the start/stop/reset functions.

Changed MDRV_SCREEN_* macros to build up VIDEO_SCREEN devices
rather than storing values in the screen[] array.

Changed MDRV_SCREEN_ADD to specify a screen type (RASTER, VECTOR,
LCD for the moment).

Removed the older VIDEO_TYPE_RASTER and VIDEO_TYPE_VECTOR; this
information is now determined by walking the screen list.

Removed the screen[] array from machine_config. Modified all code 
referencing Machine->config->screen[] and changed it to iterate 
over the devices using the new video_screen_first() and 
video_screen_next() functions.

(The next step will be to add video_* functions that accept a tag
instead of screen index, and then move systems over to always
referencing screens by tag instead of index.)

Removed implicit screen #0. This means that ALL DRIVERS MUST
EXPLICITLY DECLARE THEIR SCREENS. Updated all drivers to do
so. While there, grouped all MDRV_SCREEN_* parameters together.
Also removed unnecessary VIDEO_TYPE_RASTER and VIDEO_TYPE_VECTOR.
Also removed VBLANK and bitmap format information from vector
games. This was painful and very tedious.

Changed game information to display info about all screens.
2008-02-21 08:50:36 +00:00
Zsolt Vasvari
10d9982716 Removed some unneccassary lookups through machine->pens 2008-02-21 03:22:33 +00:00
Zsolt Vasvari
e5bcee449d Removed the pen array lookup from some INDEXED16 drivers 2008-02-21 02:00:11 +00:00
Zsolt Vasvari
288a0adbe1 Adds video\gameplan.c 2008-02-21 00:47:22 +00:00
Zsolt Vasvari
4606ca9dc2 - Reorganized Gameplan driver
- Changed Trivia Quest use the Gameplan video code
- Added crystal for Gameplan pixel clock
2008-02-21 00:46:44 +00:00
Brian Troha
930f6ecac0 Document regions by color code 2008-02-20 23:12:54 +00:00
Brian Troha
12088331a5 correction to documentation as pointed out by the Guru 2008-02-20 23:04:55 +00:00
Zsolt Vasvari
10e5c35068 - Changed all drivers using the MC6845 chip to use the device interface
- Removed mc6845_config
- Minor changes to the Qix driver
2008-02-20 13:17:06 +00:00
Zsolt Vasvari
72a9167032 - Added running_machine* as first parameter to mc6845_config and all callbacks. Updated all users.
- Reorganized Qix driver.  Driver state, decoupled audio section, etc.
2008-02-20 08:39:22 +00:00
Aaron Giles
85112f6f1c Removed clock and flags as fundamental device parameters. 2008-02-20 06:08:30 +00:00
Aaron Giles
99675196a8 Added support for inline device configuration. 2008-02-20 06:06:13 +00:00
R. Belmont
8c4a6a2d2a Removed unnecessary debug stub. 2008-02-20 05:27:11 +00:00