iNES under lxrun

Reported by --
Steve Ginzburg (steven@ugcs.caltech.edu)

Where to find the binary --
http://www.komkon.org/fms/iNES/

Libraries required --

Installation --
Just put the ines binary in your $LINUX_ROOT/bin directory.

Hints --
Getting audio to work (on OSR5, at least) is a little tricky because of a bug in the OSS audio driver. It is possible, however, to hack your ines binary to work around the audio bug. If you're using the "-sound" flag and ines complains about problems "Adjusting buffers", try the following:

Using a hex editor, edit the ines binary. Search for the sequence "08 00 08 00". It should occur twice, a few bytes apart. After the second occurrence, you should find the sequence "74 2c". Change this to "75 2c". That should do it. (A change of 1 bit makes all the difference!)

Note that this hack reverses the sense of a check in the iNES code. This means that if the audio bug is ever fixed (or you try to run the hacked binary on a Linux system) the audio will not work.

This is known to work in the dynamically-linked ELF release of iNES, version 0.7 (08/02/1997). (sum 46458 194)