TODO:	Fix osdl code.  Period.

.80:
----

	Cleaned/fixed a few things in the mapper 19 emulation code.
	Family Circuit '91 still doesn't work quite right...  I wonder if
	it's a bad dump.

	Added input override code to Windows port.

	Added code to fix iNES header information in RAM and suggest
	changes to the user.

	Added support for iNES mapper 152(to be used with games set to 
	mapper 70, that use one-screen mirroring instead of h/v mirroring).

	Blits using the DirectX blitting function(method?) to the primary
	surface are now done with the asynchronous flag set(if that
	fails, a "normal" blit is tried).
	
	The DirectX blit buffer(secondary surface that FCE Ultra writes to
	directly and then uses the DirectDraw blit function on to blit
	to the primary buffer) is now created without specifying it
	should be in system memory or video memory, except in the case
	when no hardware blitting is available, and then DDraw is explicitly
	told to create the surface in system memory.

	Added Family Keyboard support to the DOS port.

	Cleaned up the VRC7 sound emulation code.  I need to find a way
	to save the current sound state in a save state.

	Found out the real name of the "Space Shadow" gun; it's
	called the "Hyper Shot".  I'm still not sure who made it, though.
	Possibly Bandai did.  The interesting thing is that Konami
	also made a Famicom accessory(dual square boxy things with two buttons
	on each) with the same name(though there might not be a space in the
	name).

	Only the upper two bits read from $4016/$4017 are undefined.
        Bit5 is always 0, though.  Fixed the bug in "input.c".
	Silly kevtris' old documents.  New kevtris' brain is always good.

	Family Keyboard support for the Windows port.

	Added support for the Family Basic Keyboard to the Linux port, other
	ports todo.
	Might want to add support for the tape recorder at some time.
	Also mapped the "Scroll Lock" key to disable/enable command keys
	so that the FBK is more useable.  It doesn't disable CTRL C, 
	though...

	Changed a lot of inlined functions in x6502.c to macros so that
	I could test out some optimization ideas.

	DOS code updates for game input override support.

	Small optimzation to opcode $4c, and relative jumps.

	Added some code to ines.c to set controller information in 
	FCEUGameInfo(returned by FCEUI_LoadGame()) based on crc32 values.

	Updated user documentation and usage.h for DOS and SVGAlib input 
	command-line changes.

	Added an option to disable the four-score(to Windows and Linux ports
	so far).

	Updated Windows interface to support the new Famicom expansion
	devices.

	(Re)Added support for the Famicom 4-player device.

	Improved Zapper emulation...sort of.  It still needs a lot of work. :/

	Added *partial* support for the "Space Shadow" gun.

	Added support for the Arkanoid controller(both NES and Famicom style).	

	Added code to support the extension Famicom input devices.

	Added PAL scanline start/end drawing settings to Windows port.

	Added pause emulation key(F2) to Windows port.
	
	In the process of rewriting/fixing up input code stuff.

	Minor bug fix to Power Pad emulation code.

	VS Hogan's Alley and VS Duck Hunt automatically select the zapper
	now(though it only works on the SVGAlib port).

	Undid some FDS sound code changes introduced in 0.76 that totally
	screwed up sound.  Oops.

	Added code to allow different settings for first/last scanline
	drawn while in PAL emulation mode, to the Linux and DOS ports.

	Added convenience(it's not necessary, but it reduces redundant and
	confusing code in the driver code) function 
	FCEUI_GetCurrentVidSystem(int *slstart, int *slend).

	Updated file "TODO".

	Changed #include <unzip.h> to #include "zlib/unzip.h"
	in file.c.

	NSF 6502 player now initialized the stack pointer on reset.

	Worked on de-emphasis emulation code quite a bit.  
	The deemphasized palette calculated at the end of the frame is now
	based on what deemphasis bits were set for the longest during
	the screen(sampling interval is a scanline) update loop.
	Added a "static" deemphasized palette at $40-$7F in the palette table.
	This corresponds to the colors when all of the deemphasis bits are set.
	I did this to fix the PAL game "Noah's Ark", without breaking
	anything else.  The only downside is a slight speed loss(~2% on
	my system when sound is disabled), but this is acceptable to me,
	at least.
	Maybe it's time to write hi/true-color ppu drawing code...


	Fixed an out of bounds array access in svga.c in SetNESDeemph().
	The variable "lastd" in svga.c was being initialized to the wrong value.
	Thanks to "Jarod CANAL" for pointing this out.

	Removed FCEUI_SetFirstRenderedLine or whatever it was called and
	the function to set the last line.  Replaced with:
 	 void FCEUI_SetRenderedLines(int ntscf, int ntscl, int palf, int pall);

	Changed SetVidSys(int w) to ResetVidSys() in fce.c.  Reenabled
	PAL/NTSC emulation overrides based on game loaded(really only useful
	for NSFs and UNIFs now).  

	UNIF loading code now recognizes the chunk "CTRL" and tries
	to use it.  Only the svgalib code supports overriding of input
	settings based on game loaded, now, though...
	The user is still going to have to configure powerpad settings
	on his/her own.

	Fixed return values of FCEU_fseek() and fixed a problem in unif.c
	related to it.

	Changed mechanism for how FCE Ultra tells the driver
	code what type of system is being emulated.  A structure of
	type "FCEUGI" is returned from FCEUI_LoadGame().

	Fixed a major mapper 64 emulation bug introduced in 0.76.

	Modified BlitVidHi() in drivers/win/video.c to speed it up.

	Added support for loading the iNES-format Game Genie ROM image.

	Removed ggrom.h and added code to load the Game Genie ROM
	image from a file.

	Added Windows netplay.c.  (new: the user exiting the emulator
	while stuck in a blocking recv() or send() loop now works.)

	Fixed a vram address register bug in fce.c that I created when I got 
	rid of the pair/dpair data types.

	Added new mappers/92.c

	Removed mappers/92.c until I can contact LULU or rewrite it.

	drivers/win changes.  Removed netplay.c until I can rewrite it.

	Got rid of pair/dpair data types.

	Got rid of silly "TempArray" thing.

	Began adding GPL headers to files.  FCE Ultra is going to be in
	a state of legal limbo for the next few days...

	Replaced crc32.c and crc32.h, and added some #ifdef's and #defines
	to use the crc32 code in zlib instead if zlib is linked with
	FCE Ultra.

	More fixes to sb.c.

	Cleaned up drawing.h and ggrom.h(even though ggrom.h will *probably*
	be removed before the next release).

	Redid frameskip code.

	Rewrote necessary pieces of sb.c and sb.h and fixed quite a few
	bugs.  I still need to test it on various other sound cards, though.

	Rewrote(more like "recreated in my own image") DOS keyboard driver.
	Removed unused "keyscan.h" from drivers/svgalib

	Rewrote part of(the parts that Marat wrote - the connection and
	closing parts) the Linux TCP/IP network play code.  I guess it works, 
	but I haven't tested it very much.  In any case, it's still dangerous
	to use network play in FCE Ultra with SVGAlib, since recv() or send() 
	might block and since the keyboard is in raw mode, you have a problem.
	Maybe a future SVGAlib will fix the general problem of lockups if
	keyboard_update() isn't called, though it is only partly SVGAlib's 
	problem...

	Fixed FCEU_fseek() when used with a compressed file in the PKZIP
	format that has been loaded.  Fixes a UNIF loading problem.
	Also added a check to the return value of FCEU_fseek() in unif.c.

	Replaced Marat's 6502 emulation core with my own.  
	It should be fully functional, but as always, I don't know if
	I implemented the undocumented instructions correctly.
	Several things are correct in this new core that were not in
	Marat's(D flag is no longer cleared by interrupts, for example).

	Altered mapper 16 irq counter emulation slightly.

	Fixed the behavior of the SXA, SYA, and XAS opcodes based on the
	documentation I have.  I'm not sure what happens when page crossing
	occurs with those instructions on a real NES, though.
	Also CHANGED(not fixed) emulation of opcode $8B("XAA").

	Changed some of the M* functions(absolute indexed and maybe some others)
	to perform dummy reads.

	Changed some of the macros in m6502.c to inlined functions so
	that I can modify and examine them more easily.

.77:
----

	Fixed a silly network play bug(in the global network play code)
	that caused excessive lag.

	Added a "niceness" setting to the sound configuration dialog.
	Removed obsolete information from the dialog.

	Fixed speed throttling code in Windows port when PAL emulation is
	disabled/enabled and a new game hasn't been loaded yet.

	Commented out a printf() to debug stuff in fds.c(oops).

	Applied PK's joystick patch to the osdl code.  It allows the user
	to map axes and it fixes a joystick button mapping configuration saving
	bug.

	Added two command line options new to Linux port to DOS port.
	Just need to test them...

	Added some stuff to unif.c to allow for boards that can support
	CHR RAM instead of CHR ROM(darn Sachen boards...).  Fixes UNIF
	version of "Q-Boy". 

	Added command line option "-snapname" to Linux port.  I'll add it
	to the Windows port as well, but probably not to the DOS port.

	Added clip option to Linux port.

	Fixed sound logging(in Windows port) so that multiple recording
	sessions now work.

	Added an option to clip the leftmost and rightmost 8 columns
	of graphics in the Windows port.

	Added a submenu that lists recently opened files, in the Windows
	port.
		
.76:
----	

	Updated porting.txt.

	Added speed throttling code to Windows port that's used when sound is
	disabled(and an option in the "Miscellaneous" 
	configuration window to disable it).

	Added cheat interface to DOS build.  

	A few tweaks to the text cheat interface code in the cheat listing code.
	Added a command to quickly toggle the status of the cheat(though a 
	cheat can still be disabled/enabled by (M)odifying the cheat).

	Support for UNIF UNL-TC-U01-1.5M board added. Same credits as below.

	Rewrote mapper 228 code just for the heck of it(actually, I couldn't
	figure out why some(about two) of the games in the Action 52 cart 
	weren't working in .75(and .76).  I traced it back to .71, where an apparent bug in
	the undocumented 6502 opcode emulation allowed it to work, which
	was later fixed for the .72 release(opcode 0x7C)).  I'm thinking	
	that the dump is bad...

	Added a few crc32 checks to ines.c to check for and report when
	a known(by me) bad(hacked or bad dump) game is loaded.

	Added support for the following UNIF boards.  Thanks to Quietust
	and Kevin Horton for the information.  Some problems still exist
	with a few games that use these boards, though...

		UNL-Sachen-8259B
		UNL-Sachen-8259A
		UNL-Sachen-74LS374N
	        UNL-SA-016-1M
	        UNL-SA-72007
	        UNL-SA-72008
	        UNL-SA-0036
	        UNL-SA-0037

	Fixes to some stuff in cart.c(for example, calling setprg32() when 
	only 16kb of prg data is present now works).

	Added support for iNES mapper 189.

	Tried to add support for the UNIF board "UNL-H2288".  Failed.

	Updated "cheat.txt" to fix a few typos and added an example of finding
	and adding a cheat using the Linux port's text interface.  The actual
	section on the Linux cheat interface still needs to be written, however.

	Changed network play code in the Windows port and fixed a bug.
	Fixed a similar bug in the Linux netplay code....sort of.

	A few cosmetic changes to the dialogs in the Windows port.

	Fixed sound initialization on the Windows port(it was being initialized
	when FCE Ultra started even if it was disabled by the user.  Oops.).

	Joystick button configuration code in Windows port changed slightly
	to be more useable.

	Changed reference to video mode 5 in the linux port to "1 per 4".
	It may not be very meaningful, but it is certainly better
	than "TV Emulation".  I'll change the Windows port reference later.

	Documented video mode 7(320x240) for the Linux port.  Also added
	a check for the FBDev driver in order to use this mode instead
	of a tweaked vga mode if that driver is being used.

	Added/Fixed cheat interface for Linux port.  It's still not perfect,
	though.  The code is ugly...

	Callback function for FCEUI_ListCheats() now receives
	status information(enabled/disabled).

	Callback functions for cheat functions now must return 0 to
	stop listing cheats or 1 to continue.  

	Fixed a problem(the cheat code was reading in cheats
	for address $0000 from cheat files if any blank lines were present).

	SDL port zlib changes(linked dynamically to zlib now).

	More changes to envelope decay + looping on code.  No longer
	depends on value @ $4017.  It now sounds correct based on some
	tests I did with SMB3 and a GG, but Goonies 2 doesn't sound right(
	based on a sound file sent to me by another person).

	Added support for iNES mapper 140.  Thanks to Quietust for the
	information.

	I need to figure out how to deal with the problem of so many
	bad NSFs that most people consider good...

	Changed envelope decays a bit.  Their behavior now depends on bit
	7 of $4017.  I don't know if this is right...

	Addition of debug.c for some debugging stuff.

	Updated zlib to 1.1.4.

	Modified code in various files to allow UNIF games to override
	current selected video system emulation(NTSC or PAL).  Need to
	make sure this really works.

	Changed sound.c to prevent desynchronization during network play.
	This might slow down sound emulation slightly, especially when
	sound emulation is disabled.  I really don't care...

	Updating network play code.  More info later...

	Moved the sound/video/etc output code in EmLoop() to the top of the
	for(;;) loop so that initialization prior to calling EmLoop() will
	be the same as initialization done during a call to a FCEUD_* function.

	A few very small changes to sound emulation in fds.c.

	Changed unlink() to remove() in cheat.c and removed the including
	of the header file unistd.h.

	Split up the cc=... statement in RefreshLine() to make it easier
	to read and not ambiguous(to Borland's C compiler).

	Changed a lot of the function declarations in cheat.c.  I'll need
	to verify that cheat searching still works ok and that cheats still work
	ok.  I'll also need to update the Windows(and Linux console) cheat code
	to prevent compiler warnings.

	Fixed various minor code problems(not minor if you want to use a
	compiler besides gcc).   This is an ongoing process...  

	Removed bit fields after reading about and thinking about possible
	portability problems, though I kept some optimizations in fceline.h

	Minor code simplification in drivers/win/joystick.c(replaced
	"case 200 ... 207" and "case 208 ... 215".

	Modified some code to use bit-fields in the graphics rendering code 
	in fce.c and fceline.h.  gcc seems to be able to optimize the new
	code to run faster.

	Fixed m6502.c and fce.c to initialize variables on virtual power
	toggle.  This should fix network play on the Windows port.
	I'm also in the process of cleaning up fce.c. 

.75:
----
	Fixed directories configuration stuff in Windows port(corresponds
	to .75r2).

	More changes to square wave channel envelope/volume emulation...
	Changes described in the large paragraph some lines down have been
	abandoned.

	Added a command line switch to set the volume in the dos port.

	Changed Windows sound configuration dialog.  Now buffer length is
	specified in time, not samples.  I also added a volume control.

	Reduced the volume on 8-bit sound output on all ports by 1/2.

	Added a function FCEUI_SetSoundVolume().  Added support for setting
	the volume via the command line in the Linux port, other ports coming
	soon.

	Changed FCEUD_WriteSoundData() again.  No longer has a "Check"
	argument.  All clipping(ugh) is done internally now.

	Added a directories configuration dialog to the Windows port.  I worked
	on it too long and I became a zombie, so it might have a few bugs.
	That's what guine...err...users are for. ;)  Don't expect me to do
	anything like this for any other port, though.  I don't feel like
	doing it on the DOS port, and the Linux and other UNIXy ports shouldn't
	really need it.

	Made some changes to the rectangle/square wave channel emulation to
	fix the pops in SMB.  I have no idea if what I did is correct.  To
	be honest, I'm not sure I know EXACTLY what I did, but it's something
	like this:  Writes to $4003/$4007 now reset the duty cycle count
	and reload the cycle counter with the current wavelength.  Writes to
	$4003/$4007 now do not update the amplitude output of the channels; they
	will be updated after the cycle counter hits 0(or below).

	More information in iNES informational output.
	
	Minor changes to mappers/16.c.

	Increased the volume of the VRC6's sawtooth wave channel.

	Added more information to the RAM cheat guide.

	Changed the triangle wave generation code slightly.  I decided
	to remove support for the higher-frequency triangle waves, as they
	are too cpu-costly to create and are probably not very audible on a 
	real NES anyway.

	Major changes to how sound is mixed.  This necessitated a high pass
	DC-offset removing filter, and a low-pass filter just to make things
	sound better. ^_^ 
	Note:  FCEUD_WriteSoundData() no longer needs to clear the waveform
	data referenced by the passed pointer; it's done internally now.

	Fixed JMP ($xxxx) - now handles wrapping like it occurs on a real 6502
	(hopefully; I'm assuming that the same holds true for the NES' cpu).

	Added the ability to load a custom global palette in the DOS port.

	Fixed bug in drivers/common/unixdsp.c(wrong return value if sample
	rate was out of range).

	Many sound fixes...	- Frequency sweeps, length counter stuff,...

	Changed Windows port to use IDirectInput7 and IDirectInputDevice7
	interfaces.

	Fixed a Game Genie bug in the core emulation code.  It only appeared 
	in the Windows port, though.  (Enabling gg emulation, loading a game,
	and then disabling gg emulation and loading a new game while in the
	gg code entry screen would cause the new loaded game to not work
	correctly).

	Modified windows port to use the config saving/loading stuff in
	drivers/common/config.c

	Mapper 45 cleanups/fixes.

	Added the ability to load a custom global palette in the Linux port.
	Yay.

	Fixed a large number of overcomplicated code and silly bugs in
	drivers/common/config.c.  This changes the format of the configuration
	structure, too.  Also added support for saving/loading strings with
	automatic memory allocation when strings are loaded.

	Minor change in InitNetplay().

	Fixed bad type conversions for pointers to functions and fixed
	some bad declarations of functions.

	Reenabled zlib support for the sdl build.  I need to pay attention
	to patches that modify lines than don't fit on my screen.

	Fixed vidblit.c to not emit so many warnings when compiling.

.74:
----

	Stop sound in Windows port when user clicks l/m/r mouse buttons
	in the non-client area of the window.

	Added "Drag and drop" file open support to Windows port.

	Various code cleanups.

	mappers/33.c optimization.

	Rewrote the function "FCEU_MakeFName()".

	Removed crc32.h from mappers directory.

	Modified some of the window resizing code in the Windows port.

	Added support for waiting for vblank/double buffering to the Windows
	port.

	Added/Fixed support for iNES mapper 248.

	After an NSF file is loaded, information about its header is now
	displayed.

	Fixed a typo in the Namco 106 extra ram handling code. 

	Improved the quality of the Namco 106's extra sound channels. 
	- Thank Mamiya and Applepie(real name?) for info.

	When an NSF file is being played, FCE Ultra will no longer go through
	its scanline rendering loop.  This speeds up NSF playback considerably.	

	Updated "porting.txt".

	Moved some stuff from DriverInterface() to their own functions.

	Fixed some iNES mapper 18 IRQ counter emulation bugs.  "Ninja Jajamaru -
	Ginga Dai Sakusen" now works.

	Rewrote large pieces of the mapper 64 code.  "Skull and Crossbones" 
	still doesn't work, though.

	Changed format of iNES header information output, added "ROM CRC32" info.	

	Modified the way cycle timing is done slightly.  No change
        for NTSC emulation, but PAL emulation is a little more accurate.

	Changed the behavior of indirect indexed(I hope I got that right ;))
	instructions to behave more like a real 6502(junk reads are now 
	performed).

	A few optimizations/cleanups in m6502.c.
