Commit Graph

82 Commits

Author SHA1 Message Date
Aaron Giles
5ecfb2044b Cleanups and version bump. 2009-10-31 22:47:46 +00:00
Aaron Giles
721087eeeb Added -flipped option to unidasm to output with disassembly
first and address/data bytes afterwards in comment form.
2009-10-31 19:46:55 +00:00
Aaron Giles
8b430a357f Change tools I wrote to be straight BSD. 2009-10-31 19:35:41 +00:00
R. Belmont
505c25f0c7 chdman: add option to create uncompressed writeable HD images for MESS 2009-10-28 02:49:30 +00:00
Aaron Giles
59a1941469 > -----Original Message-----
> From: Atari Ace [mailto:atari_ace@verizon.net]
> Sent: Saturday, October 17, 2009 12:14 PM
> To: submit@mamedev.org
> Cc: atariace@hotmail.com
> Subject: [patch] Remove dead prototypes
> 
> Hi mamedev,
> 
> This patch mostly removes dead prototypes, especially in source files
> as opposed to header files which I've previously audited.  It also
> migrates a few prototypes to existing header files, and adds missing
> prototypes to segamsys.h.
> 
> ~aa
2009-10-21 05:20:23 +00:00
Aaron Giles
d81f1f98d3 > From: atari_ace@verizon.net
> To: submit@mamedev.org
> CC: atariace@hotmail.com
> Subject: [patch] Eliminate more .data
> Date: Wed, 7 Oct 2009 08:51:56 -0700
> 
> Hi mamedev,
> 
> Most variables in .data are likely to lead to multisession bugs, so it
> is best to eliminate them and add explicit init/reset code for them
> instead. This patch does that for almost all the cases, with a few
> changes deserving some comments:
> 
> z180: cc was global when it should be per-cpu.
> nesapu: the noise table would be different run to run in multisession
> which probably wasn't intended.
> astring: i constified the dummy string to make it impossible to
> modify.
> mediagx: hits was separated from the constant data
> tecmosys: i reduced the number of exports and renamed them to use
> tecmosys_ as a prefix.
> atari: i moved the renderer function into ANTIC.
> naomibd: the array provided to x76f100 was too small and might have
> caused memory corruption.
> n64: i constified the one and zero colors, requiring many more const
> qualifiers to be added.
> ldverify: i encapsulated the audio and video variables to reduce the
> amount of global state.
2009-10-21 05:18:32 +00:00
Phil Bennett
8f3f75ff0f Relaxed romcmp filename length restriction 2009-10-12 21:34:07 +00:00
Aaron Giles
ed981ad74b Only applied the first patch. The second one I'll save for the next
full release so we don't have a giant spacing diff.

--

> -----Original Message-----
> From: Atari Ace [mailto:atari_ace@verizon.net]
> Sent: Thursday, October 01, 2009 8:13 AM
> To: submit@mamedev.org
> Cc: atariace@hotmail.com
> Subject: [patch] srcclean perf, stye improvements
> 
> Hi mamedev,
> 
> srcclean.exe has a minor performance bug with it tab removing
> algorithm, in that the cost of removing n tabs is O(n^2).  The first
> patch fixes this by always tracking the current column.  The second
> patch then implements a new clean idiom, that spaces before tabs that
> are "invisible" should be removed.  This change finds ~14k invisible
> spaces in MAME, so I suspect there may be some hesitation to adopt it.
> 
> ~aa
2009-10-03 22:01:36 +00:00
Aaron Giles
fa68c11272 > From: Atari Ace [mailto:atari_ace@verizon.net]
> Sent: Monday, September 07, 2009 8:08 PM
> To: submit@mamedev.org
> Cc: atariace@hotmail.com
> Subject: [patch] const/static/include fixes
> 
> Hi mamedev,
> 
> A result of some code auditing, this patch adds missing static and
> const qualifiers, and fixes up some header files.
> 
> ~aa
2009-09-10 08:35:37 +00:00
Aaron Giles
03b5da1a55 Added 'options' parameter to the CPU_DISASSEMBLE prototype. For now, the
debugger always passes 0 for this. unidasm has been updated to accept a
mode parameter, which is passed for the options.
2009-09-07 00:26:56 +00:00
Aaron Giles
b12ea76a0d Fixed stupid unidasm bug that double-counted bytes. 2009-09-06 22:37:41 +00:00
Aaron Giles
095f6923fd unidasm.c needs some type casts.
Juergen
2009-09-06 21:51:39 +00:00
Curt Coder
1c56a127d5 Added preliminary Zilog Z8 CPU core for MESS. 2009-09-04 12:40:47 +00:00
Aaron Giles
5df39c5473 Cleanups and version bump. 2009-08-29 23:18:28 +00:00
Aaron Giles
3de780ea8a Usage for unidasm now dumps the available achitectures. 2009-08-29 22:07:55 +00:00
Aaron Giles
2128210d76 Ok, disassembler is implemented with basic functionality. 2009-08-22 23:31:02 +00:00
Aaron Giles
f474114e1d Added infrastructure to compile universal standalone disassembler:
- added unidasm to the tools build
 - split the disassemblers out of libcpu and into new libdasm
 - ensured the disassembly entry points for all disassemblers are
    in the source file for the disassembler (sometimes new generic
    versions were created)

Still needs command line options and file loading, but the 
fundamentals are present, and it links.
2009-08-22 06:25:07 +00:00
Aaron Giles
03d5253dca Added some missing casts and other minor tweaks. 2009-08-19 04:58:54 +00:00
Aaron Giles
0131119e09 Oops forgot part of the CHD changes. 2009-08-02 22:55:26 +00:00
Aaron Giles
6a36bae504 Fix chdman -update to leave the write protect state alone when updating
uncompressed CHDs. [Michael Zapf]
2009-08-02 22:01:47 +00:00
Aaron Giles
f6f6e2eaff Oops, meant to say "core_stricmp" 2009-07-16 08:48:16 +00:00
Aaron Giles
6519412d59 Cleanups and version bump. 2009-07-16 07:37:54 +00:00
Aaron Giles
96b4503e04 Forgot to add it to the list of tools. 2009-07-16 07:12:18 +00:00
Aaron Giles
d879a67a4a Never send a monster to do the work of an evil scientist... 2009-07-16 07:10:16 +00:00
Aaron Giles
a273e83afa From: David Haywood [neohaze@nildram.co.uk]
Sent: Wednesday, July 15, 2009 3:36 PM
To: Aaron Giles; Angelo Salese; Klaus Sommer, B.Sc
Subject: new clones - witch card , scherrym

This adds the recent team europe dumps.  I haven't looked at them much

'Poker' is another Witch Card set
'Super Cherry Master' runs on cb2001 hardware, but the graphic rom is
missing.

new clones
-----------

Witch Card (german?) [Team Europe / Dumping Union]

new not working
-----------------

Super Cherry Master [Team Europe / Dumping Union] (incomplete set)
2009-07-16 06:41:43 +00:00
Aaron Giles
e692918b34 Added casts to ensure proper values are passed to the ctype.h functions.
[Juergen Buchmueller]
2009-06-25 08:04:39 +00:00
Aaron Giles
0e3bd92f71 Fixed buffer overflow with longer driver names. 2009-05-13 02:58:45 +00:00
Aaron Giles
9eb86548bb Added missing casts and made other tweaks. The entire project
can now be optionally compiled with the C++ compiler (mingw g++
only for the moment; MSVC still has issues).
2009-04-27 09:18:17 +00:00
Aaron Giles
3b302a8bae Cleanups and version bump. 2009-03-19 07:28:58 +00:00
Aaron Giles
15ecfc3d29 Fixed bug where chdman -extract would not truncate to the logical size. 2009-03-16 16:12:10 +00:00
Aaron Giles
df24d3be59 Added new function core_fload() to load a file into an allocated buffer.
Updated src2html, regrep, and chdman tools to use this function where
appropriate.

In chdman, changed -addmeta to -addmetatext or -addmetabin to explicitly
specify the type of data (previous auto-detect was too dangerous).
2009-03-11 05:06:34 +00:00
Aaron Giles
e0ccde49a3 Moved chd_clone_metadata code into chdman.c so that it can intelligently
update old tags.

Modified cdrom.c to expose metadata read/write functions, and changed
chdman to use them. Also changed chdman to parse old-style metadata and
convert it to new-style metadata since we're going to need to re-do this
anyway and the two won't hash to the same value.

Added completely untested support for the ident metadata to the hard
disk creation path. If a filename is provided immediately after the
source filename, it is taken as an ident file and processed for CHS
data and added. Other metadata types can be added afterwards via
-addmeta.
2009-03-10 15:09:00 +00:00
Aaron Giles
d2d22a19af Redid metadata hashing. A digest of tags and hashes for each
piece of metadata along with the hash for the raw data is then 
hashed to produce the final SHA1.

Updated romload to skip the obsolete MD5 field.
2009-03-10 00:27:30 +00:00
Aaron Giles
21b5f27224 NOTE: With the change, all existing CHD diff files are invalid.
Updated CHD format to version 4. Checksums are now computed and
stored separately for raw data and metadata, and metadata is now
checksummed by default.

We will need to go through all existing CHDs, run a chdman -update
on them, and update the SHA1s stored in the drivers to accommodate
this (MD5s should be removed).

Updated chdman to support a generic metadata addition system:

  chdman -addmeta <chdfile> <tag> [<index>] <sourcefile>

The <sourcefile> is examined and if it appears to be strictly text,
any EOFs and trailing EOLs are stripped, and the result is NULL-
terminated to match the behavior of existing metadata.

Updated chdman to report and fix errors in the raw and metadata
SHA1s.

Changed the CHD verify interfaces to pass back a structure containing
all the necessary data for verification and fixing.
2009-03-09 16:49:56 +00:00
Aaron Giles
e8c09b35f6 Added flags to the metadata entries, encoded in the top bit. Right now
it is a no-op, but eventually will be used to indicate which bits of
metadata are included in the overall checksum.
2009-03-05 07:35:24 +00:00
Aaron Giles
5406ec6027 This patch just cleans up some memory and file handles in the error
cases of ldverify. The initial memory leak was rsound and exposed by 
cppcheck [Oliver Stoeneberg]
2009-01-04 22:59:10 +00:00
Aaron Giles
1c9b12c644 Modified regrep to display the soruce file. 2008-12-13 06:29:25 +00:00
Aaron Giles
4abd6ebe9c Enhanced runtest to use all available processors. 2008-11-24 01:15:52 +00:00
Aaron Giles
230eae0426 Added template support to regrep. Changed output to not color the
entire background of each cell. Switched to astrings and core_files
internally.
2008-11-17 10:40:43 +00:00
Aaron Giles
ffc97bd35d Cleanups and version bump. 2008-11-02 03:11:19 +00:00
Aaron Giles
5f440c4a63 Changed from explicit styles to classes. 2008-10-30 15:30:24 +00:00
Aaron Giles
e5183b1d20 Modified src2html to use a template source file instead of hard-coding to
the MAME site.
2008-10-30 09:43:25 +00:00
Aaron Giles
7d3221dcf3 Cleanups and version bump. 2008-10-16 08:59:25 +00:00
Aaron Giles
819c231992 Added new tool ldresample to assist in resynchronizing audio tracks in
a CHD with frames. Currently still WIP but useful if you know what 
you're doing. [Aaron Giles]
2008-10-16 08:47:06 +00:00
Aaron Giles
5123b07115 Cleanups and version bump. 2008-10-02 05:34:21 +00:00
Aaron Giles
ce7edb155d ldverify improvements:
- uses back-end decoding for CHDs directly to bitmaps
 - changed min/max detection to only check 0/255
 - fixed off-by-one bug in min/max computation
 - separated white code detection from frame number detection
 - track cadence with frame numbers as well as white codes
 - use vbiparse.h constants where appropriate
2008-09-29 02:26:20 +00:00
Aaron Giles
0f3e79564d From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Sunday, September 21, 2008 10:45 AM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] More static qualifiers

Hi mamedev,

Another static function update from yours truly, almost entirely
affecting code added in the last few months to MAME.  The fixes are
the usual lot, changing enum definitions so they aren't declared,
decorating dead code/declarations with #if...#endif, and of course,
adding static where appropriate.  In addition, I fixed a bunch of
UNUSED_FUNCTON symbols to be spelled correctly (I didn't introduce
this).

~aa
2008-09-26 05:25:11 +00:00
Aaron Giles
7f819dbfef Cleanups and version bump. 2008-09-18 16:17:42 +00:00
Aaron Giles
1eb3c2d964 Changed requirements for laserdisc CHDs to require a new chunk of
metadata with pre-decoded frame information. Modified chdman to
automatically produce this for CHDs that are of the appropriate
parameters. To fix up existing CHDs, use chdman -fixavdata on the
CHD.

Modified the laserdisc core to leverage the pre-decoded frame
metadata, which is now required. This improves seek times when
searching and allows the player-specific emulation access to the
VBI data as soon as it would really be available. Changed update
callback timing to fire just before the first line of VBI data
would be read; at that point, the frame selection is assumed to
be committed. 

Converted PR-8210 emulation over to using the actual MCU from the
laserdisc player. This MCU controls low-level functions such as
slider position and laser on/off, and receives decoded vertical
blanking data in order to make decisions. Removed old HLE behavior.
Note that the overlay text is displayed via the UI; this is
temporary and will be fixed shortly.

Converted Simutrek-hacked laserdisc emulation to using the actual
MCU from the game, which in turn hands off commands to the PR-8210
MCU. This is still not 100% but is pretty close at this point and
achieves the correct behaviors in most cases.

Fixed Cube Quest overlay scaling to cover the whole screen.

Changed laserdisc video parameters to position the screen area at
the bottom rather than the top, since this corresponds more closely
to standard line numbering.

Extended the vbiparse code to support pack/unpack, and to more
fully document all the meanings of the VBI codes.

Updated ldplayer to support slow/fast forward movement, frame/chapter
display, and separate controls for scanning/stepping.

Added new built-in variable "frame" to the debugger.

Fixed device-based ROM loading to support loading ROMs from the
game's ZIP as well.
2008-09-18 15:17:42 +00:00
Aaron Giles
fd883f1e72 Fixed bug when writing AVI files with more than one RIFF chunk.
Added missing chdman error messages when extracting to an AVI file.
2008-08-21 04:18:12 +00:00