mirror of
https://github.com/86Box/86Box.git
synced 2025-01-22 09:11:50 -05:00
Initial submission of the PCem-Experimental source code.
This commit is contained in:
parent
09d7c4384f
commit
fd2a5bc9f5
610 changed files with 184352 additions and 0 deletions
0
AUTHORS
Normal file
0
AUTHORS
Normal file
339
COPYING
Normal file
339
COPYING
Normal file
|
@ -0,0 +1,339 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
675 Mass Ave, Cambridge, MA 02139, USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Library General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
Appendix: How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) 19yy <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Library General
|
||||||
|
Public License instead of this License.
|
0
ChangeLog
Normal file
0
ChangeLog
Normal file
1
INSTALL
Normal file
1
INSTALL
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.11/INSTALL
|
2
Makefile.am
Normal file
2
Makefile.am
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SUBDIRS = src
|
||||||
|
|
670
Makefile.in
Normal file
670
Makefile.in
Normal file
|
@ -0,0 +1,670 @@
|
||||||
|
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
||||||
|
# Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
subdir = .
|
||||||
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
|
||||||
|
ChangeLog INSTALL NEWS compile config.guess config.sub depcomp \
|
||||||
|
install-sh missing
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
|
configure.lineno config.status.lineno
|
||||||
|
mkinstalldirs = $(install_sh) -d
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
|
SOURCES =
|
||||||
|
DIST_SOURCES =
|
||||||
|
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||||
|
html-recursive info-recursive install-data-recursive \
|
||||||
|
install-dvi-recursive install-exec-recursive \
|
||||||
|
install-html-recursive install-info-recursive \
|
||||||
|
install-pdf-recursive install-ps-recursive install-recursive \
|
||||||
|
installcheck-recursive installdirs-recursive pdf-recursive \
|
||||||
|
ps-recursive uninstall-recursive
|
||||||
|
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||||
|
distclean-recursive maintainer-clean-recursive
|
||||||
|
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
|
||||||
|
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
|
||||||
|
distdir dist dist-all distcheck
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
DIST_SUBDIRS = $(SUBDIRS)
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
am__remove_distdir = \
|
||||||
|
{ test ! -d "$(distdir)" \
|
||||||
|
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
|
&& rm -fr "$(distdir)"; }; }
|
||||||
|
am__relativize = \
|
||||||
|
dir0=`pwd`; \
|
||||||
|
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||||
|
sed_rest='s,^[^/]*/*,,'; \
|
||||||
|
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||||
|
sed_butlast='s,/*[^/]*$$,,'; \
|
||||||
|
while test -n "$$dir1"; do \
|
||||||
|
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||||
|
if test "$$first" != "."; then \
|
||||||
|
if test "$$first" = ".."; then \
|
||||||
|
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||||
|
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||||
|
else \
|
||||||
|
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||||
|
if test "$$first2" = "$$first"; then \
|
||||||
|
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||||
|
else \
|
||||||
|
dir2="../$$dir2"; \
|
||||||
|
fi; \
|
||||||
|
dir0="$$dir0"/"$$first"; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||||
|
done; \
|
||||||
|
reldir="$$dir2"
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.gz
|
||||||
|
GZIP_ENV = --best
|
||||||
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
distcleancheck_listfiles = find . -type f -print
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
ALLEGRO_CONFIG = @ALLEGRO_CONFIG@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MKDIR_P = @MKDIR_P@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_URL = @PACKAGE_URL@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
abs_builddir = @abs_builddir@
|
||||||
|
abs_srcdir = @abs_srcdir@
|
||||||
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_CXX = @ac_ct_CXX@
|
||||||
|
allegro_CFLAGS = @allegro_CFLAGS@
|
||||||
|
allegro_LIBS = @allegro_LIBS@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
builddir = @builddir@
|
||||||
|
datadir = @datadir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
docdir = @docdir@
|
||||||
|
dvidir = @dvidir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
|
htmldir = @htmldir@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localedir = @localedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
pdfdir = @pdfdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
psdir = @psdir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
SUBDIRS = src
|
||||||
|
all: all-recursive
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
am--refresh:
|
||||||
|
@:
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
|
||||||
|
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||||
|
$(am__cd) $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --gnu Makefile
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
echo ' $(SHELL) ./config.status'; \
|
||||||
|
$(SHELL) ./config.status;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
$(RECURSIVE_TARGETS):
|
||||||
|
@fail= failcom='exit 1'; \
|
||||||
|
for f in x $$MAKEFLAGS; do \
|
||||||
|
case $$f in \
|
||||||
|
*=* | --[!k]*);; \
|
||||||
|
*k*) failcom='fail=yes';; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| eval $$failcom; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
$(RECURSIVE_CLEAN_TARGETS):
|
||||||
|
@fail= failcom='exit 1'; \
|
||||||
|
for f in x $$MAKEFLAGS; do \
|
||||||
|
case $$f in \
|
||||||
|
*=* | --[!k]*);; \
|
||||||
|
*k*) failcom='fail=yes';; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
dot_seen=no; \
|
||||||
|
case "$@" in \
|
||||||
|
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||||
|
*) list='$(SUBDIRS)' ;; \
|
||||||
|
esac; \
|
||||||
|
rev=''; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = "."; then :; else \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
rev="$$rev ."; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| eval $$failcom; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
ctags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
set x; \
|
||||||
|
here=`pwd`; \
|
||||||
|
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||||
|
include_option=--etags-include; \
|
||||||
|
empty_fix=.; \
|
||||||
|
else \
|
||||||
|
include_option=--include; \
|
||||||
|
empty_fix=; \
|
||||||
|
fi; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test ! -f $$subdir/TAGS || \
|
||||||
|
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
|
shift; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
if test $$# -gt 0; then \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
"$$@" $$unique; \
|
||||||
|
else \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$unique; \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& $(am__cd) $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
test -d "$(distdir)" || mkdir "$(distdir)"
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
list='$(DISTFILES)'; \
|
||||||
|
dist_files=`for file in $$list; do echo $$file; done | \
|
||||||
|
sed -e "s|^$$srcdirstrip/||;t" \
|
||||||
|
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||||
|
case $$dist_files in \
|
||||||
|
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||||
|
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||||
|
sort -u` ;; \
|
||||||
|
esac; \
|
||||||
|
for file in $$dist_files; do \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test -d "$(distdir)/$$file"; then \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f "$(distdir)/$$file" \
|
||||||
|
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d "$(distdir)/$$subdir" \
|
||||||
|
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||||
|
$(am__relativize); \
|
||||||
|
new_distdir=$$reldir; \
|
||||||
|
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||||
|
$(am__relativize); \
|
||||||
|
new_top_distdir=$$reldir; \
|
||||||
|
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||||
|
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||||
|
($(am__cd) $$subdir && \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
top_distdir="$$new_top_distdir" \
|
||||||
|
distdir="$$new_distdir" \
|
||||||
|
am__remove_distdir=: \
|
||||||
|
am__skip_length_check=: \
|
||||||
|
am__skip_mode_fix=: \
|
||||||
|
distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
-test -n "$(am__skip_mode_fix)" \
|
||||||
|
|| find "$(distdir)" -type d ! -perm -755 \
|
||||||
|
-exec chmod u+rwx,go+rx {} \; -o \
|
||||||
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||||
|
|| chmod -R a+r "$(distdir)"
|
||||||
|
dist-gzip: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-bzip2: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-lzma: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-xz: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-tarZ: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-shar: distdir
|
||||||
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-zip: distdir
|
||||||
|
-rm -f $(distdir).zip
|
||||||
|
zip -rq $(distdir).zip $(distdir)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist dist-all: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
case '$(DIST_ARCHIVES)' in \
|
||||||
|
*.tar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||||
|
*.tar.bz2*) \
|
||||||
|
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||||
|
*.tar.lzma*) \
|
||||||
|
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
|
||||||
|
*.tar.xz*) \
|
||||||
|
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||||
|
*.tar.Z*) \
|
||||||
|
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||||
|
*.shar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
||||||
|
*.zip*) \
|
||||||
|
unzip $(distdir).zip ;;\
|
||||||
|
esac
|
||||||
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
|
mkdir $(distdir)/_build
|
||||||
|
mkdir $(distdir)/_inst
|
||||||
|
chmod a-w $(distdir)
|
||||||
|
test -d $(distdir)/_build || exit 0; \
|
||||||
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||||
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||||
|
&& am__cwd=`pwd` \
|
||||||
|
&& $(am__cd) $(distdir)/_build \
|
||||||
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||||
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||||
|
distuninstallcheck \
|
||||||
|
&& chmod -R a-w "$$dc_install_base" \
|
||||||
|
&& ({ \
|
||||||
|
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||||
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||||
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||||
|
&& rm -rf "$$dc_destdir" \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||||
|
&& rm -rf $(DIST_ARCHIVES) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||||
|
&& cd "$$am__cwd" \
|
||||||
|
|| exit 1
|
||||||
|
$(am__remove_distdir)
|
||||||
|
@(echo "$(distdir) archives ready for distribution: "; \
|
||||||
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
|
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||||
|
distuninstallcheck:
|
||||||
|
@$(am__cd) '$(distuninstallcheck_dir)' \
|
||||||
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||||
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||||
|
if test -n "$(DESTDIR)"; then \
|
||||||
|
echo " (check DESTDIR support)"; \
|
||||||
|
fi ; \
|
||||||
|
$(distuninstallcheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
distcleancheck: distclean
|
||||||
|
@if test '$(srcdir)' = . ; then \
|
||||||
|
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi
|
||||||
|
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||||
|
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||||
|
$(distcleancheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
all-am: Makefile
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
install: install-recursive
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
install-data: install-data-recursive
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
`test -z '$(STRIP)' || \
|
||||||
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-generic distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-recursive
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-recursive
|
||||||
|
|
||||||
|
html-am:
|
||||||
|
|
||||||
|
info: info-recursive
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
|
||||||
|
install-dvi: install-dvi-recursive
|
||||||
|
|
||||||
|
install-dvi-am:
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
||||||
|
install-html: install-html-recursive
|
||||||
|
|
||||||
|
install-html-am:
|
||||||
|
|
||||||
|
install-info: install-info-recursive
|
||||||
|
|
||||||
|
install-info-am:
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
install-pdf: install-pdf-recursive
|
||||||
|
|
||||||
|
install-pdf-am:
|
||||||
|
|
||||||
|
install-ps: install-ps-recursive
|
||||||
|
|
||||||
|
install-ps-am:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf $(top_srcdir)/autom4te.cache
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
pdf: pdf-recursive
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-recursive
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am:
|
||||||
|
|
||||||
|
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
|
||||||
|
install-am install-strip tags-recursive
|
||||||
|
|
||||||
|
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
|
||||||
|
all all-am am--refresh check check-am clean clean-generic \
|
||||||
|
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
|
||||||
|
dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
|
||||||
|
distclean distclean-generic distclean-tags distcleancheck \
|
||||||
|
distdir distuninstallcheck dvi dvi-am html html-am info \
|
||||||
|
info-am install install-am install-data install-data-am \
|
||||||
|
install-dvi install-dvi-am install-exec install-exec-am \
|
||||||
|
install-html install-html-am install-info install-info-am \
|
||||||
|
install-man install-pdf install-pdf-am install-ps \
|
||||||
|
install-ps-am install-strip installcheck installcheck-am \
|
||||||
|
installdirs installdirs-am maintainer-clean \
|
||||||
|
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||||
|
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
0
NEWS
Normal file
0
NEWS
Normal file
0
README
Normal file
0
README
Normal file
31
Readme-LINUX.txt
Normal file
31
Readme-LINUX.txt
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
PCem v8.1 Linux supplement
|
||||||
|
|
||||||
|
|
||||||
|
You will need the following libraries :
|
||||||
|
|
||||||
|
Allegro 4.x
|
||||||
|
OpenAL
|
||||||
|
ALut
|
||||||
|
|
||||||
|
and their dependencies.
|
||||||
|
|
||||||
|
Open a terminal window, navigate to the PCem directory then enter
|
||||||
|
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
|
||||||
|
then ./pcem to run.
|
||||||
|
|
||||||
|
|
||||||
|
The Linux port is currently entirely unpolished, and mainly exists as a starting point for
|
||||||
|
anyone who wants to make a better port.
|
||||||
|
|
||||||
|
The menu is not available all the time. Press CTRL-ALT-PGDN to open it.
|
||||||
|
|
||||||
|
The mouse does not work very well, at least on my machine. This is most likely an Allegro issue.
|
||||||
|
|
||||||
|
Fullscreen mode is not present.
|
||||||
|
|
||||||
|
Video acceleration is not used at all, so performance is inferior to the Windows version.
|
||||||
|
|
||||||
|
CD-ROM support currently only accesses /dev/cdrom. It has not been heavily tested.
|
1179
aclocal.m4
vendored
Normal file
1179
aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
compile
Normal file
1
compile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.11/compile
|
1533
config.guess
vendored
Normal file
1533
config.guess
vendored
Normal file
File diff suppressed because it is too large
Load diff
1693
config.sub
vendored
Normal file
1693
config.sub
vendored
Normal file
File diff suppressed because it is too large
Load diff
69
configure.ac
Normal file
69
configure.ac
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
# configure.ac for PCem
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_PREREQ([2.61])
|
||||||
|
AC_INIT(PCem, v10.1, Tom Walker <tommowalker@tommowalker.co.uk>, pcem)
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_CXX
|
||||||
|
AM_PROG_CC_C_O
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to enable debugging])
|
||||||
|
AC_ARG_ENABLE(debug,
|
||||||
|
AC_HELP_STRING([--enable-debug], [build debug executable]))
|
||||||
|
if test "$enable_debug" = "yes"; then
|
||||||
|
CFLAGS="-Wall -O0 -g -D_DEBUG"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
CFLAGS="-O3"
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for cpu])
|
||||||
|
case "${host_cpu}" in
|
||||||
|
i?86)
|
||||||
|
CPU=i386
|
||||||
|
AC_MSG_RESULT(${host_cpu})
|
||||||
|
;;
|
||||||
|
x86_64)
|
||||||
|
CPU=x86_64
|
||||||
|
AC_MSG_RESULT(${host_cpu})
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_ERROR([Unsupported CPU.])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
AM_CONDITIONAL(CPU_I386, test "$CPU" = "i386")
|
||||||
|
AM_CONDITIONAL(CPU_X86_64, test "$CPU" = "x86_64")
|
||||||
|
|
||||||
|
#AC_MSG_CHECKING([for libz])
|
||||||
|
#AX_CHECK_ZLIB
|
||||||
|
|
||||||
|
AM_CONDITIONAL(OS_WIN, test "$OS" = "win")
|
||||||
|
AM_CONDITIONAL(OS_LINUX, test "$OS" = "linux")
|
||||||
|
|
||||||
|
# Do not run test for Allegro with Win32/MinGW version, as binary builds have
|
||||||
|
# `allegro-config' missing.
|
||||||
|
# NOTE: For the following Autoconf macro to be supported, you need to extract
|
||||||
|
# allegro.m4 from the DOS/Windows Allegro sources (the file is contained
|
||||||
|
# in `misc') and copy it to this directory or MSYS's `/share/aclocal'.
|
||||||
|
if test "$OS" != "win"; then
|
||||||
|
AM_PATH_ALLEGRO(, , AC_MSG_ERROR(building PCem requires Allegro to be installed))
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_LIB([openal], [alGetError], [], \
|
||||||
|
[echo "You need to install the OpenAL library."
|
||||||
|
exit -1])
|
||||||
|
AC_CHECK_LIB([alut], [alutInit], [], \
|
||||||
|
[echo "You need to install the ALUT library."
|
||||||
|
exit -1])
|
||||||
|
|
||||||
|
AC_CHECK_LIB([pthread], [pthread_create])
|
||||||
|
|
||||||
|
AC_OUTPUT([Makefile src/Makefile])
|
1
depcomp
Normal file
1
depcomp
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.11/depcomp
|
1
install-sh
Normal file
1
install-sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.11/install-sh
|
1
missing
Normal file
1
missing
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.11/missing
|
BIN
nvr/430vx.nvr
Normal file
BIN
nvr/430vx.nvr
Normal file
Binary file not shown.
BIN
nvr/440fx.nvr
Normal file
BIN
nvr/440fx.nvr
Normal file
Binary file not shown.
BIN
nvr/586mc1.nvr
Normal file
BIN
nvr/586mc1.nvr
Normal file
Binary file not shown.
BIN
nvr/acer386.nvr
Normal file
BIN
nvr/acer386.nvr
Normal file
Binary file not shown.
BIN
nvr/acerm3a.nvr
Normal file
BIN
nvr/acerm3a.nvr
Normal file
Binary file not shown.
BIN
nvr/acerv35n.nvr
Normal file
BIN
nvr/acerv35n.nvr
Normal file
Binary file not shown.
BIN
nvr/adgold.bin
Normal file
BIN
nvr/adgold.bin
Normal file
Binary file not shown.
BIN
nvr/ami286.nvr
Normal file
BIN
nvr/ami286.nvr
Normal file
Binary file not shown.
BIN
nvr/ami386.nvr
Normal file
BIN
nvr/ami386.nvr
Normal file
Binary file not shown.
BIN
nvr/ami486.nvr
Normal file
BIN
nvr/ami486.nvr
Normal file
Binary file not shown.
BIN
nvr/at.nvr
Normal file
BIN
nvr/at.nvr
Normal file
Binary file not shown.
BIN
nvr/cmdpc30.nvr
Normal file
BIN
nvr/cmdpc30.nvr
Normal file
Binary file not shown.
BIN
nvr/dell200.nvr
Normal file
BIN
nvr/dell200.nvr
Normal file
Binary file not shown.
BIN
nvr/deskpro386.nvr
Normal file
BIN
nvr/deskpro386.nvr
Normal file
Binary file not shown.
BIN
nvr/dtk386.nvr
Normal file
BIN
nvr/dtk386.nvr
Normal file
Binary file not shown.
BIN
nvr/dtk486.nvr
Normal file
BIN
nvr/dtk486.nvr
Normal file
Binary file not shown.
BIN
nvr/endeavor.nvr
Normal file
BIN
nvr/endeavor.nvr
Normal file
Binary file not shown.
BIN
nvr/europc.nvr
Normal file
BIN
nvr/europc.nvr
Normal file
Binary file not shown.
BIN
nvr/hot-433.nvr
Normal file
BIN
nvr/hot-433.nvr
Normal file
Binary file not shown.
BIN
nvr/ibmps1_2011.nvr
Normal file
BIN
nvr/ibmps1_2011.nvr
Normal file
Binary file not shown.
BIN
nvr/ibmps1_2121.nvr
Normal file
BIN
nvr/ibmps1_2121.nvr
Normal file
Binary file not shown.
BIN
nvr/kn97.nvr
Normal file
BIN
nvr/kn97.nvr
Normal file
Binary file not shown.
BIN
nvr/mb500n.nvr
Normal file
BIN
nvr/mb500n.nvr
Normal file
Binary file not shown.
BIN
nvr/megapc.nvr
Normal file
BIN
nvr/megapc.nvr
Normal file
Binary file not shown.
BIN
nvr/p54tp4xe.nvr
Normal file
BIN
nvr/p54tp4xe.nvr
Normal file
Binary file not shown.
BIN
nvr/p55t2p4.nvr
Normal file
BIN
nvr/p55t2p4.nvr
Normal file
Binary file not shown.
BIN
nvr/p55tp4n.nvr
Normal file
BIN
nvr/p55tp4n.nvr
Normal file
Binary file not shown.
BIN
nvr/p55tp4xe.nvr
Normal file
BIN
nvr/p55tp4xe.nvr
Normal file
Binary file not shown.
BIN
nvr/p55tvp4.nvr
Normal file
BIN
nvr/p55tvp4.nvr
Normal file
Binary file not shown.
BIN
nvr/p55va.nvr
Normal file
BIN
nvr/p55va.nvr
Normal file
Binary file not shown.
BIN
nvr/p5sp4.nvr
Normal file
BIN
nvr/p5sp4.nvr
Normal file
Binary file not shown.
BIN
nvr/pc1512.nvr
Normal file
BIN
nvr/pc1512.nvr
Normal file
Binary file not shown.
BIN
nvr/pc1640.nvr
Normal file
BIN
nvr/pc1640.nvr
Normal file
Binary file not shown.
BIN
nvr/pc200.nvr
Normal file
BIN
nvr/pc200.nvr
Normal file
Binary file not shown.
BIN
nvr/pc2086.nvr
Normal file
BIN
nvr/pc2086.nvr
Normal file
Binary file not shown.
BIN
nvr/pc3086.nvr
Normal file
BIN
nvr/pc3086.nvr
Normal file
Binary file not shown.
BIN
nvr/plato.nvr
Normal file
BIN
nvr/plato.nvr
Normal file
Binary file not shown.
BIN
nvr/px386.nvr
Normal file
BIN
nvr/px386.nvr
Normal file
Binary file not shown.
BIN
nvr/r418.nvr
Normal file
BIN
nvr/r418.nvr
Normal file
Binary file not shown.
BIN
nvr/revenge.nvr
Normal file
BIN
nvr/revenge.nvr
Normal file
Binary file not shown.
BIN
nvr/sis496.nvr
Normal file
BIN
nvr/sis496.nvr
Normal file
Binary file not shown.
BIN
nvr/tandy1000hx.bin
Normal file
BIN
nvr/tandy1000hx.bin
Normal file
Binary file not shown.
BIN
nvr/tandy1000sl2.bin
Normal file
BIN
nvr/tandy1000sl2.bin
Normal file
Binary file not shown.
BIN
nvr/vli486sv2g.nvr
Normal file
BIN
nvr/vli486sv2g.nvr
Normal file
Binary file not shown.
BIN
nvr/win486.nvr
Normal file
BIN
nvr/win486.nvr
Normal file
Binary file not shown.
775
readme.txt
Normal file
775
readme.txt
Normal file
|
@ -0,0 +1,775 @@
|
||||||
|
PCem v10.1
|
||||||
|
|
||||||
|
PCem is licensed under the GPL, see COPYING for more details.
|
||||||
|
|
||||||
|
Changes since v10:
|
||||||
|
|
||||||
|
- Fixed buffer overruns in PIIX and ET4000/W32p emulation
|
||||||
|
- Add command line options to start in fullscreen and to specify config file
|
||||||
|
- Emulator doesn't die when the CPU jumps to an unexecutable address
|
||||||
|
- Removed Voodoo memory dump on exit
|
||||||
|
|
||||||
|
|
||||||
|
PCem emulates the following machines:
|
||||||
|
|
||||||
|
IBM 5150 PC (1981)
|
||||||
|
The original PC. This shipped in 1981 with a 4.77mhz 8088, 64k of RAM, and a cassette port.
|
||||||
|
Disc drives quickly became standard, along with more memory.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ibmpc\pc102782.bin
|
||||||
|
ibmpc\basicc11.f6
|
||||||
|
ibmpc\basicc11.f8
|
||||||
|
ibmpc\basicc11.fa
|
||||||
|
ibmpc\basicc11.fc
|
||||||
|
|
||||||
|
|
||||||
|
IBM 5160 XT (1983)
|
||||||
|
From a hardware perspective, this is a minor tweak of the original PC. It originally shipped
|
||||||
|
with 128k of RAM and a 10mb hard disc, both of which could be easily fitted to the 1981 machine.
|
||||||
|
However, this was targetted as businesses and was more successful than the original.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ibmxt\5000027.u19
|
||||||
|
ibmxt\1501512.u18
|
||||||
|
|
||||||
|
|
||||||
|
IBM PCjr (1984)
|
||||||
|
A home machine, which had better graphics and sound than most XTs but was not hardware compatible
|
||||||
|
with the PC.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ibmpcjr\bios.rom
|
||||||
|
|
||||||
|
|
||||||
|
IBM AT (1984)
|
||||||
|
This was the 'next generation' PC, fully 16-bit with an 80286. The original model came with a 6mhz
|
||||||
|
286, which ran three times as fast as the XT. This model also introduced EGA.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ibmat\at111585.0
|
||||||
|
ibmat\at111585.1
|
||||||
|
|
||||||
|
|
||||||
|
Olivetti M24 (1984)
|
||||||
|
An enhanced XT clone, also known as the AT&T PC 6300. Has an 8086 CPU, and an unusual 'double-res'
|
||||||
|
CGA display.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
olivetti_m24\olivetti_m24_version_1.43_low.bin
|
||||||
|
olivetti_m24\olivetti_m24_version_1.43_high.bin
|
||||||
|
|
||||||
|
|
||||||
|
Tandy 1000 (1985)
|
||||||
|
This is a clone of the unsuccessful IBM PCjr, which added better graphics and sound to the XT,
|
||||||
|
but removed much expandability plus some other hardware (such as the DMA controller). The Tandy
|
||||||
|
puts back the DMA controller and ISA slots, making it a much more useful machine. Many games
|
||||||
|
from the late 80s support the Tandy.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
tandy\tandy1t1.020
|
||||||
|
|
||||||
|
|
||||||
|
DTK Clone XT (1986)
|
||||||
|
A generic clone XT board.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
dtk\DTK_ERSO_2.42_2764.bin
|
||||||
|
|
||||||
|
|
||||||
|
Amstrad PC1512 (1986)
|
||||||
|
This was Amstrad's first entry into the PC clone market (after the CPC and PCW machines), and
|
||||||
|
was the first cheap PC available in the UK, selling for only £500. It was a 'turbo' clone,
|
||||||
|
having an 8mhz 8086, as opposed to an 8088, and had 512k RAM as standard. It also had a
|
||||||
|
perculiar modification to its onboard CGA controller - the 640x200 mode had 16 colours instead
|
||||||
|
of the usual 2. This was put to good use by GEM, which shipped with the machine.
|
||||||
|
|
||||||
|
Amstrad's CGA implementation has a few oddities, these are emulated as best as possible. This
|
||||||
|
mainly affects games defining unusual video modes, though 160x100x16 still works (as on the real
|
||||||
|
machine).
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
pc1512\40043.v1
|
||||||
|
pc1512\40044.v2
|
||||||
|
pc1512\40078.ic127
|
||||||
|
|
||||||
|
|
||||||
|
Amstrad PC1640 (1987)
|
||||||
|
Amstrad's followup to the PC1512, the PC1640 had 640k of RAM and onboard EGA, but was otherwise
|
||||||
|
mostly the same.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
pc1640\40043.v3
|
||||||
|
pc1640\40044.v3
|
||||||
|
pc1640\40100
|
||||||
|
|
||||||
|
|
||||||
|
Sinclair PC200/Amstrad PC20 (1988)
|
||||||
|
This was Amstrad's entry to the 16-bit home computer market, intended to compete with the Atari
|
||||||
|
ST and Commodore Amiga. It's similar to the PC1512, but is based on Amstrad's portable PPC512
|
||||||
|
system. With stock CGA and PC speaker, it couldn't compare with the ST or Amiga.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
pc200\pc20v2.0
|
||||||
|
pc200\pc20v2.1
|
||||||
|
pc200\40109.bin
|
||||||
|
|
||||||
|
|
||||||
|
Schneider Euro PC (1988)
|
||||||
|
A German XT clone. An 'all-in-one' system like the Sinclair PC200. I don't know much about this
|
||||||
|
machine to be honest! This doesn't appear to work with the XTIDE BIOS, so therefore this is the
|
||||||
|
only model that does not support hard discs.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
europc\50145
|
||||||
|
europc\50146
|
||||||
|
|
||||||
|
|
||||||
|
(c)Anonymous Generic Turbo XT BIOS (1988?)
|
||||||
|
This is a BIOS whose source code was made available on Usenet in 1988. It appears to be an
|
||||||
|
anonymous BIOS from an XT clone board. It was then heavily modified to fix bugs. The history of
|
||||||
|
this BIOS (and the source code) is at http://dizzie.narod.ru/bios.txt
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
genxt\pcxt.rom
|
||||||
|
|
||||||
|
|
||||||
|
AMI XT clone (1989)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
amixt\AMI_8088_BIOS_31JAN89.BIN
|
||||||
|
|
||||||
|
|
||||||
|
DTK XT clone (1988)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
dtk\DTK_ERSO_2.42_2764.bin
|
||||||
|
|
||||||
|
|
||||||
|
VTech Laser Turbo XT (1987)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ltxt\27C64.bin
|
||||||
|
|
||||||
|
|
||||||
|
VTech Laser XT3 (1989)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
lxt3\27C64D.bin
|
||||||
|
|
||||||
|
|
||||||
|
Phoenix XT clone (1986)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
pxxt\000p001.bin
|
||||||
|
|
||||||
|
|
||||||
|
Juko XT clone (1988)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
jukopc\000o001.bin
|
||||||
|
|
||||||
|
|
||||||
|
Commodore PC30-III (1988)
|
||||||
|
A fairly generic 286 clone.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
cmdpc30\commodore pc 30 iii even.bin
|
||||||
|
cmdpc30\commodore pc 30 iii odd.bin
|
||||||
|
|
||||||
|
|
||||||
|
Amstrad PC2086 (1989)
|
||||||
|
The PC2086 is essentially a PC1640 with VGA and 3.5" floppy drives.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
pc2086\40179.ic129
|
||||||
|
pc2086\40180.ic132
|
||||||
|
pc2086\40186.ic171
|
||||||
|
|
||||||
|
|
||||||
|
Amstrad PC3086 (1990)
|
||||||
|
The PC3086 is a version of the PC2086 with a more standard case.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
pc3086\fc00.bin
|
||||||
|
pc3086\c000.bin
|
||||||
|
|
||||||
|
|
||||||
|
Dell System 200 (1990?)
|
||||||
|
This is a pretty generic 286 clone with a Phoenix BIOS.
|
||||||
|
|
||||||
|
HIMEM.SYS doesn't appear to work on this one, for some reason.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
dells200\dell0.bin
|
||||||
|
dells200\dell1.bin
|
||||||
|
|
||||||
|
|
||||||
|
AMI 286 clone (1990)
|
||||||
|
This is a generic 286 clone with an AMI BIOS.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ami286\amic206.bin
|
||||||
|
|
||||||
|
|
||||||
|
IBM PS/1 Model 2011 (1990)
|
||||||
|
This is a 286 with integrated VGA and a basic GUI and DOS 4.01 in ROM.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ibmps1\f80000.bin
|
||||||
|
|
||||||
|
|
||||||
|
Compaq Deskpro 386 (1989)
|
||||||
|
An early 386 system. I don't think this BIOS is from the original 1986 version
|
||||||
|
(the very first 386 system), but from a 1989 refresh.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
deskpro386\109592-005.U11.bin
|
||||||
|
deskpro386\109591-005.U13.bin
|
||||||
|
|
||||||
|
|
||||||
|
Acermate 386SX/25N (1992?)
|
||||||
|
An integrated 386SX clone, with onboard Oak SVGA and IO.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
acer386\acer386.bin
|
||||||
|
acer386\oti067.bin
|
||||||
|
|
||||||
|
|
||||||
|
DTK 386SX clone (1990)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
dtk386\3cto001.bin
|
||||||
|
|
||||||
|
|
||||||
|
Phoenix 386 clone (1989)
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
px386\3iip001l.bin
|
||||||
|
px386\3iip001h.bin
|
||||||
|
|
||||||
|
|
||||||
|
Amstrad MegaPC (1992)
|
||||||
|
A 386SX clone (otherwise known as the PC7386SX) with a built-in Sega Megadrive. Only the PC section
|
||||||
|
is emulated, obv.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
megapc\41651-bios lo.u18
|
||||||
|
megapc\211253-bios hi.u19
|
||||||
|
|
||||||
|
|
||||||
|
AMI 386 clone (1994)
|
||||||
|
This is a generic 386 clone with an AMI BIOS. The BIOS came from my 386DX/40, the motherboard is
|
||||||
|
dated June 1994.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ami386\ami386.bin
|
||||||
|
|
||||||
|
|
||||||
|
AMI 486 clone (1993)
|
||||||
|
This is a generic 486 clone with an AMI BIOS. The BIOS came from my 486SX/25, bought in December
|
||||||
|
1993.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ami486\ami486.bin
|
||||||
|
|
||||||
|
|
||||||
|
AMI WinBIOS 486 clone (1994)
|
||||||
|
A 486 clone with a newer AMI BIOS.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
win486\ali1429g.amw
|
||||||
|
|
||||||
|
|
||||||
|
Award SiS 496/497 (1995)
|
||||||
|
A 486 clone using the SiS 496/497 chipset, with PCI bus and Award BIOS.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
sis496\SIS496-1.AWA
|
||||||
|
|
||||||
|
|
||||||
|
Intel Premiere/PCI (Batman's Revenge) (1994)
|
||||||
|
A Socket 4 based board with 430LX chipset.
|
||||||
|
|
||||||
|
Has an odd bug where on soft-reset, the memory count never ends. Hard-reset works okay.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
revenge\1009AF2_.BI0
|
||||||
|
revenge\1009AF2_.BI1
|
||||||
|
|
||||||
|
|
||||||
|
Intel Advanced/EV (Endeavor) (1995)
|
||||||
|
A Socket 5/7 based board with 430FX chipset. The real board has a Sound Blaster Vibra 16 on board,
|
||||||
|
which is not emulated - use a discrete card instead. Some Advanced/EVs also had a Trio64 on board,
|
||||||
|
the emulated board does not have this either.
|
||||||
|
|
||||||
|
Has essentially the same BIOS as the Premiere/PCI, and the same soft-reset bug.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
endeavor\1006CB0_.BI0
|
||||||
|
endeavor\1006CB0_.BI1
|
||||||
|
|
||||||
|
|
||||||
|
Award 430VX PCI (1996)
|
||||||
|
A generic Socket 5/7 board with 430VX chipset.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
430vx\55XWUQ0E.BIN
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PCem emulates the following graphics adapters :
|
||||||
|
|
||||||
|
MDA
|
||||||
|
The original PC adapter. This displays 80x25 text in monochrome.
|
||||||
|
|
||||||
|
|
||||||
|
Hercules
|
||||||
|
A clone of MDA, with the addition of a high-resolution 720x348 graphics mode.
|
||||||
|
|
||||||
|
|
||||||
|
CGA
|
||||||
|
The most common of the original adapters, supporting 40x25 and 80x25 text, and
|
||||||
|
320x200 in 4 colours, 640x200 in 2 colours, and a composite mode giving 160x200
|
||||||
|
in 16 colours.
|
||||||
|
|
||||||
|
|
||||||
|
IBM EGA
|
||||||
|
The original 1984 IBM EGA card, with 256k VRAM.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
ibm_6277356_ega_card_u44_27128.bin
|
||||||
|
|
||||||
|
|
||||||
|
Trident 8900D SVGA
|
||||||
|
A low cost SVGA board circa 1992/1993. Not the greatest board in it's day, but
|
||||||
|
it has a reasonable VESA driver and (buggy) 15/16/24-bit colour modes.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
trident.bin
|
||||||
|
|
||||||
|
|
||||||
|
Trident TGUI9440
|
||||||
|
A later Trident board with GUI acceleration. Windows 9x doesn't include drivers
|
||||||
|
for this, so they have to be downloaded and installed separately.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
9440.vbi
|
||||||
|
|
||||||
|
|
||||||
|
Tseng ET4000AX SVGA
|
||||||
|
A somewhat better SVGA board than the Trident, here you get better compatibility
|
||||||
|
and speed (on the real card, not the emulator) in exchange for being limited to
|
||||||
|
8-bit colour.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
et4000.bin
|
||||||
|
|
||||||
|
|
||||||
|
Diamond Stealth 32 SVGA
|
||||||
|
An ET4000/W32p based board, has 15/16/24-bit colour modes, plus acceleration.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
et4000w32.bin
|
||||||
|
|
||||||
|
|
||||||
|
Paradise Bahamas 64
|
||||||
|
An S3 Vision864 based board.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
bahamas64.bin
|
||||||
|
|
||||||
|
|
||||||
|
Number Nine 9FX
|
||||||
|
An S3 Trio64 based board.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
s3_764.bin
|
||||||
|
|
||||||
|
|
||||||
|
ATI VGA Edge-16
|
||||||
|
A basic SVGA clone.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
vgaedge16.vbi
|
||||||
|
|
||||||
|
|
||||||
|
ATI VGA Charger
|
||||||
|
A basic SVGA clone, similar to the Edge-16.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
bios.bin
|
||||||
|
|
||||||
|
|
||||||
|
ATI Graphics Pro Turbo
|
||||||
|
A Mach64GX based board. Probably the best of the emulated boards for use in
|
||||||
|
Windows.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
mach64gx/bios.bin
|
||||||
|
|
||||||
|
|
||||||
|
OAK OTI-067
|
||||||
|
A basic SVGA clone.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
oti067/bios.bin
|
||||||
|
|
||||||
|
|
||||||
|
Diamond Stealth 3D 2000
|
||||||
|
An S3 ViRGE/325 based board.
|
||||||
|
|
||||||
|
PCem emulates the ViRGE S3D engine in software. This works with most games I tried, but
|
||||||
|
there may be some issues. The Direct3D drivers for the /325 are fairly poor (often showing
|
||||||
|
as missing triangles), so use of the /DX instead is recommended.
|
||||||
|
|
||||||
|
The streams processor (video overlay) is also emulated, however many features are missing.
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
s3virge.bin
|
||||||
|
|
||||||
|
|
||||||
|
S3 ViRGE/DX
|
||||||
|
An S3 ViRGE/DX based board. The drivers that come with Windows are similar to those for the
|
||||||
|
/325, however better ones do exist (try the 8-21-1997 version). With the correct drivers,
|
||||||
|
many early Direct3D games work okay (if slowly).
|
||||||
|
|
||||||
|
ROM files needed:
|
||||||
|
|
||||||
|
86c375_1.bin
|
||||||
|
|
||||||
|
|
||||||
|
3DFX Voodoo Graphics
|
||||||
|
3D accelerator. Widely supported in late 90s games.
|
||||||
|
|
||||||
|
PCem emulates this in software. The emulation isn't quite as fast as the real thing, but in
|
||||||
|
most games the emulated CPU is the bottleneck rather than the 3DFX, unless you insist on
|
||||||
|
running in 800x600. PCem can split rendering over two threads - this doesn't double performance,
|
||||||
|
but can give a noticeable improvement.
|
||||||
|
|
||||||
|
PCem can emulate 6 and 8 MB configurations, but defaults to 4 MB for compatibility. It can also
|
||||||
|
emulate the screen filter present on the original card, though this does at present have a
|
||||||
|
noticeable performance hit.
|
||||||
|
|
||||||
|
Almost everything I've tried works okay, with a very few exceptions - Screamer 2 and Rally have
|
||||||
|
serious issues, and Need For Speed II SE and III don't draw the map correctly.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Some models have fixed graphics adapters :
|
||||||
|
|
||||||
|
IBM PCjr
|
||||||
|
CGA with various new modes - 160x200x16, 320x200x16, 640x200x4.
|
||||||
|
|
||||||
|
Olivetti M24
|
||||||
|
CGA with double-res text modes and a 640x400 mode. I haven't seen a dump of the font
|
||||||
|
ROM for this yet, so if one is not provided the MDA font will be used - which looks slightly odd
|
||||||
|
as it is 14-line instead of 16-line.
|
||||||
|
|
||||||
|
Tandy 1000
|
||||||
|
Clone of PCjr video. Widely supported in 80s games.
|
||||||
|
|
||||||
|
Amstrad PC1512
|
||||||
|
CGA with a new mode (640x200x16). Only supported in GEM to my knowledge.
|
||||||
|
|
||||||
|
Amstrad PC1640
|
||||||
|
Paradise EGA.
|
||||||
|
|
||||||
|
Amstrad PC2086/PC3086
|
||||||
|
Paradise PVGA1. An early SVGA clone with 256kb VRAM.
|
||||||
|
|
||||||
|
IBM PS/1 Model 2011
|
||||||
|
Stock VGA with 256kb VRAM.
|
||||||
|
|
||||||
|
Amstrad MegaPC
|
||||||
|
Paradise 90C11. A development of the PVGA1, with 512kb VRAM.
|
||||||
|
|
||||||
|
Acer 386SX/25N
|
||||||
|
Oak OTI-067. Another 512kb SVGA clone.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PCem emulates the following sound devices :
|
||||||
|
|
||||||
|
PC speaker
|
||||||
|
The standard beeper on all PCs. Supports samples/RealSound.
|
||||||
|
|
||||||
|
Tandy PSG
|
||||||
|
The Texas Instruments chip in the PCjr and Tandy 1000. Supports 3 voices plus
|
||||||
|
noise. I reused the emulator in B-em for this (slightly modified).
|
||||||
|
|
||||||
|
Gameblaster
|
||||||
|
The Creative Labs Gameblaster/Creative Music System, Creative's first sound card
|
||||||
|
introduced in 1987. Has two Philips SAA1099, giving 12 voices of square waves plus 4 noise
|
||||||
|
voices. In stereo!
|
||||||
|
|
||||||
|
Adlib
|
||||||
|
Has a Yamaha YM3812, giving 9 voices of 2 op FM, or 6 voices plus a rhythm section. PCem
|
||||||
|
uses the DOSBox dbopl emulator.
|
||||||
|
|
||||||
|
Adlib Gold
|
||||||
|
OPL3 with YM318Z 12-bit digital section. Possibly some bugs (not a lot of software to test).
|
||||||
|
|
||||||
|
Sound Blaster
|
||||||
|
Several Sound Blasters are emulated :
|
||||||
|
SB v1.0 - The original. Limited to 22khz, and no auto-init DMA (can cause crackles sometimes).
|
||||||
|
SB v1.5 - Adds auto-init DMA
|
||||||
|
SB v2.0 - Upped to 41khz
|
||||||
|
SB Pro v1.0 - Stereo, with twin OPL2 chips.
|
||||||
|
SB Pro v2.0 - Stereo, with OPL 3 chip
|
||||||
|
SB 16 - 16 bit stereo
|
||||||
|
SB AWE32 - SB 16 + wavetable MIDI. This requires a ROM dump from a real AWE32.
|
||||||
|
All are set to Address 220, IRQ 7 and DMA 1 (and High DMA 5). IRQ and DMA can be changed for the
|
||||||
|
SB16 & AWE32 in the drivers.
|
||||||
|
The relevant SET line for autoexec.bat is
|
||||||
|
SET BLASTER = A220 I7 D1 Tx - where Tx is T1 for SB v1.0, T3 for SB v2.0, T4 for SB Pro,
|
||||||
|
and T6 for SB16.
|
||||||
|
|
||||||
|
AWE32 requires a ROM dump called awe32.raw. AWE-DUMP is a utility which can get a dump from a real
|
||||||
|
card. Most EMU8000 functionality should work, however filters are not correct and reverb/chorus
|
||||||
|
effects are not currently emulated.
|
||||||
|
|
||||||
|
Gravis Ultrasound
|
||||||
|
32 voice sample playback. Port address is fixed to 240, IRQ and DMA can be changed from the drivers.
|
||||||
|
Emulation is improved significantly over previous versions.
|
||||||
|
|
||||||
|
Windows Sound System
|
||||||
|
16-bit digital + OPL3. Note that this only emulates WSS itself, and should not be used with drivers
|
||||||
|
from compatible boards with additional components (eg Turtle Beach Monte Carlo)
|
||||||
|
|
||||||
|
Innovation SSI-2001
|
||||||
|
SID6581. Emulated using resid-fp. Board is fixed to port 280.
|
||||||
|
|
||||||
|
|
||||||
|
Other stuff emulated :
|
||||||
|
|
||||||
|
Serial mouse
|
||||||
|
A Microsoft compatible serial mouse on COM1. Compatible drivers are all over the place for this.
|
||||||
|
|
||||||
|
M24 mouse
|
||||||
|
I haven't seen a DOS mouse driver for this yet, but the regular scancode mode works, as does the
|
||||||
|
Windows 1.x driver.
|
||||||
|
|
||||||
|
PC1512 mouse
|
||||||
|
The PC1512's perculiar quadrature mouse. You need Amstrad's actual driver for this one.
|
||||||
|
|
||||||
|
PS/2 mouse
|
||||||
|
A PS/2 mouse is emulated on the MegaPC, 386SX/25N and Premiere/PCI models. As with serial,
|
||||||
|
compatible drivers are common.
|
||||||
|
|
||||||
|
ATAPI CD-ROM
|
||||||
|
Works with OAKCDROM.SYS. It can only work with actual CD-ROM drives at the minute, so to use ISO images
|
||||||
|
you need a virtual CD drive.
|
||||||
|
|
||||||
|
|
||||||
|
XTIDE :
|
||||||
|
|
||||||
|
The XTIDE board is emulated for machines that don't natively support IDE hard discs.
|
||||||
|
|
||||||
|
You will need to download the XTIDE BIOS seperately. Of the various versions, ide_at.bin and ide_xt.bin
|
||||||
|
should be placed in the ROMS directory. ide_xt is used on all XT models, and ide_at is used on the IBM AT
|
||||||
|
and Commodore PC30-III machines.
|
||||||
|
|
||||||
|
The BIOS is available at :
|
||||||
|
|
||||||
|
http://code.google.com/p/xtideuniversalbios/
|
||||||
|
|
||||||
|
v2.0.0 beta 1 is the version I've mostly tested. v2.0.0 beta 3 is known to have some issues.
|
||||||
|
|
||||||
|
For the PS/1, you will need v1.1.5. The PS/1 is a bit fussy with XTIDE, and I've found that it works best
|
||||||
|
when the XTIDE configuration has 'Full Operating Mode' disabled. This version must be called
|
||||||
|
ide_at_1_1_5.bin and should also be placed in the ROMS directory.
|
||||||
|
|
||||||
|
|
||||||
|
Notes :
|
||||||
|
|
||||||
|
- The time on the PC1512 clock is wrong. The date is correct, though since the PC1512's bios isn't
|
||||||
|
Y2k compliant, it thinks it's 1988.
|
||||||
|
|
||||||
|
- The envelope system on the Gameblaster isn't emulated. The noise may not be right either.
|
||||||
|
|
||||||
|
- Some of the more unusual VGA features are not emulated. I haven't found anything that uses them yet.
|
||||||
|
|
||||||
|
- On some versions of Windows the AWE32 is not set up correctly, claiming a resource conflict. To correct
|
||||||
|
this open the relevant item in Device Manager, choose 'Set Configuration Manually' and accept the
|
||||||
|
options presented.
|
||||||
|
|
||||||
|
|
||||||
|
Software tested:
|
||||||
|
|
||||||
|
MS-DOS 3.3
|
||||||
|
MS-DOS 6.22
|
||||||
|
- Most of the supplied software seems to work, eg Drivespace, Defrag, Scandisk, QBASIC
|
||||||
|
etc
|
||||||
|
|
||||||
|
Windows 1.03
|
||||||
|
Windows 2.03
|
||||||
|
Windows/286 2.1
|
||||||
|
Windows/386 2.1
|
||||||
|
Windows 3.0
|
||||||
|
Windows 3.1
|
||||||
|
Windows 3.11 for Workgroups
|
||||||
|
Windows NT 3.1
|
||||||
|
Windows NT 3.51
|
||||||
|
Windows NT 4
|
||||||
|
Windows 95
|
||||||
|
Windows 95 OSR 2
|
||||||
|
Windows 98
|
||||||
|
Windows 98 SE
|
||||||
|
Windows ME
|
||||||
|
Windows 2000
|
||||||
|
Windows XP
|
||||||
|
|
||||||
|
OS/2 1.0 - hard disk must be formatted beforehand
|
||||||
|
OS/2 1.21 - hard disk must be formatted beforehand
|
||||||
|
OS/2 1.3
|
||||||
|
OS/2 2.0
|
||||||
|
OS/2 Warp 3
|
||||||
|
OS/2 Warp 4
|
||||||
|
|
||||||
|
BeOS 5 Personal Edition (only seems to work correctly on Award SiS 496/497)
|
||||||
|
|
||||||
|
Mandrake Linux 7.1
|
||||||
|
RedHat Linux 7.1 (Seawolf)
|
||||||
|
SUSE Linux 6.3
|
||||||
|
|
||||||
|
NetBSD 6.1.5
|
||||||
|
|
||||||
|
Office 97
|
||||||
|
Word for Windows 2.0
|
||||||
|
Works for Windows 3.0
|
||||||
|
|
||||||
|
Alien vs Predator
|
||||||
|
All New World of Lemmings
|
||||||
|
Alley Cat
|
||||||
|
Breakneck
|
||||||
|
Civilization (DOS and Windows versions)
|
||||||
|
Colin Mcrae Rally
|
||||||
|
Colonization
|
||||||
|
Command and Conquer : Red Alert (DOS and Windows versions)
|
||||||
|
Croc (demo, ViRGE and 3DFX)
|
||||||
|
Curse of Monkey Island
|
||||||
|
Dawn Patrol
|
||||||
|
Deus Ex (3DFX) (slow)
|
||||||
|
Discworld 2
|
||||||
|
Doom
|
||||||
|
Duke Nukem 3D
|
||||||
|
Dune (floppy and CD versions)
|
||||||
|
Ecstatica
|
||||||
|
Epic Pinball
|
||||||
|
Expendable (3DFX) (slow)
|
||||||
|
Final Fantasy VII (3DFX)
|
||||||
|
Forsaken (3DFX)
|
||||||
|
G-Police (ViRGE and 3DFX)
|
||||||
|
Grand Theft Auto (3DFX)
|
||||||
|
Grand Theft Auto 2 (3DFX)
|
||||||
|
Grim Fandango (ViRGE and 3DFX)
|
||||||
|
Half-Life (3DFX)
|
||||||
|
Incoming (3DFX)
|
||||||
|
Interstate '76
|
||||||
|
Jazz Jackrabbit
|
||||||
|
Jazz Jackrabbit 2
|
||||||
|
Jedi Knight (3DFX)
|
||||||
|
Kings Quest (PC booter, PCjr and Tandy 1000)
|
||||||
|
Kings Quest II (booter)
|
||||||
|
Lemmings
|
||||||
|
Lemmings 2 : The Tribes
|
||||||
|
Lotus III
|
||||||
|
Mortal Kombat Trilogy (DOS and Windows versions)
|
||||||
|
Mystic Towers
|
||||||
|
Need for Speed II SE (3DFX)
|
||||||
|
Need for Speed III
|
||||||
|
Network Q RAC Rally
|
||||||
|
Oddworld : Abe's Oddysee
|
||||||
|
Overlord
|
||||||
|
Pinball Fantasies
|
||||||
|
Populous : The Beginning (3DFX)
|
||||||
|
Power Drive
|
||||||
|
Prince of Persia
|
||||||
|
Pro Pinball : Big Race USA
|
||||||
|
Pro Pinball : The Web
|
||||||
|
Psycho Pinball
|
||||||
|
Quake (3DFX)
|
||||||
|
Quake II (3DFX)
|
||||||
|
Rebel Assault
|
||||||
|
Return of Arcade
|
||||||
|
Rise of the Triad
|
||||||
|
Rollercoaster Tycoon
|
||||||
|
Screamer
|
||||||
|
Screamer Rally (not 3DFX)
|
||||||
|
Secret of Monkey Island
|
||||||
|
Sensible World of Soccer
|
||||||
|
Simcity 2000 (DOS, Windows 3.1, Windows 95 and OS/2 versions)
|
||||||
|
Simcity 3000
|
||||||
|
SiN (3DFX)
|
||||||
|
Stargunner
|
||||||
|
System Shock
|
||||||
|
Terminal Velocity
|
||||||
|
The 7th Guest
|
||||||
|
The Humans
|
||||||
|
Theme Hospital (DOS and Windows versions)
|
||||||
|
Theme Park
|
||||||
|
Tomb Raider (ViRGE and 3DFX)
|
||||||
|
Tomb Raider II (3DFX)
|
||||||
|
Total Annihilation
|
||||||
|
Transport Tycoon
|
||||||
|
Turok (3DFX)
|
||||||
|
Tyrian
|
||||||
|
UFO : Enemy Unknown
|
||||||
|
Ultima Underworld II
|
||||||
|
Unreal
|
||||||
|
Unreal Tournament (3DFX)
|
||||||
|
Wacky Wheels
|
||||||
|
Wing Commander III
|
||||||
|
Wolfenstein 3D
|
||||||
|
Worms
|
||||||
|
X-Com : Apocalypse
|
||||||
|
X-Com : Terror From The Deep
|
||||||
|
X-Wing
|
||||||
|
|
1
roms/430vx/roms.txt
Normal file
1
roms/430vx/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/acer386/roms.txt
Normal file
1
roms/acer386/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/ami286/roms.txt
Normal file
1
roms/ami286/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/ami386/roms.txt
Normal file
1
roms/ami386/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/ami486/roms.txt
Normal file
1
roms/ami486/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/cmdpc30/roms.txt
Normal file
1
roms/cmdpc30/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/dells200/roms.txt
Normal file
1
roms/dells200/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/dtk/roms.txt
Normal file
1
roms/dtk/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/endeavor/roms.txt
Normal file
1
roms/endeavor/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/europc/roms.txt
Normal file
1
roms/europc/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/genxt/roms.txt
Normal file
1
roms/genxt/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/hot-433/roms.txt
Normal file
1
roms/hot-433/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/ibmat/roms.txt
Normal file
1
roms/ibmat/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/ibmpc/roms.txt
Normal file
1
roms/ibmpc/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/ibmxt/roms.txt
Normal file
1
roms/ibmxt/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/mach64gx/roms.txt
Normal file
1
roms/mach64gx/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
BIN
roms/mda.rom
Normal file
BIN
roms/mda.rom
Normal file
Binary file not shown.
1
roms/megapc/roms.txt
Normal file
1
roms/megapc/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/olivetti_m24/roms.txt
Normal file
1
roms/olivetti_m24/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/oti067/roms.txt
Normal file
1
roms/oti067/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/pc1512/roms.txt
Normal file
1
roms/pc1512/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/pc1640/roms.txt
Normal file
1
roms/pc1640/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/pc200/roms.txt
Normal file
1
roms/pc200/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/pc2086/roms.txt
Normal file
1
roms/pc2086/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/pc3086/roms.txt
Normal file
1
roms/pc3086/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/revenge/roms.txt
Normal file
1
roms/revenge/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/sis496/roms.txt
Normal file
1
roms/sis496/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/tandy/roms.txt
Normal file
1
roms/tandy/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
1
roms/win486/roms.txt
Normal file
1
roms/win486/roms.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This directory needs to contain some ROM files.
|
380
src/386.c
Normal file
380
src/386.c
Normal file
|
@ -0,0 +1,380 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "ibm.h"
|
||||||
|
#include "x86.h"
|
||||||
|
#include "x87.h"
|
||||||
|
#include "mem.h"
|
||||||
|
#include "cpu.h"
|
||||||
|
#include "fdc.h"
|
||||||
|
#include "timer.h"
|
||||||
|
|
||||||
|
#include "386_common.h"
|
||||||
|
|
||||||
|
#define CPU_BLOCK_END()
|
||||||
|
|
||||||
|
extern int codegen_flags_changed;
|
||||||
|
|
||||||
|
x86seg *ea_seg;
|
||||||
|
|
||||||
|
extern int nmi_enable;
|
||||||
|
|
||||||
|
int inscounts[256];
|
||||||
|
uint32_t oldpc2;
|
||||||
|
|
||||||
|
int trap;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
extern int cpl_override;
|
||||||
|
|
||||||
|
int has_fpu;
|
||||||
|
extern int fpucount;
|
||||||
|
int times;
|
||||||
|
uint16_t rds;
|
||||||
|
uint16_t ea_rseg;
|
||||||
|
|
||||||
|
int is486;
|
||||||
|
int cgate32;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
uint8_t romext[32768];
|
||||||
|
uint8_t *ram,*rom;
|
||||||
|
uint32_t biosmask;
|
||||||
|
|
||||||
|
uint32_t rmdat32;
|
||||||
|
#define rmdat rmdat32
|
||||||
|
#define fetchdat rmdat32
|
||||||
|
uint32_t backupregs[16];
|
||||||
|
extern int oddeven;
|
||||||
|
int inttype,abrt;
|
||||||
|
|
||||||
|
|
||||||
|
uint32_t oldcs2;
|
||||||
|
uint32_t oldecx;
|
||||||
|
uint32_t op32;
|
||||||
|
|
||||||
|
|
||||||
|
uint32_t *eal_r, *eal_w;
|
||||||
|
|
||||||
|
uint16_t *mod1add[2][8];
|
||||||
|
uint32_t *mod1seg[8];
|
||||||
|
|
||||||
|
static inline void fetch_ea_32_long(uint32_t rmdat)
|
||||||
|
{
|
||||||
|
eal_r = eal_w = NULL;
|
||||||
|
easeg = ea_seg->base;
|
||||||
|
ea_rseg = ea_seg->seg;
|
||||||
|
if (rm == 4)
|
||||||
|
{
|
||||||
|
uint8_t sib = rmdat >> 8;
|
||||||
|
|
||||||
|
switch (mod)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
eaaddr = cpu_state.regs[sib & 7].l;
|
||||||
|
cpu_state.pc++;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
cpu_state.pc++;
|
||||||
|
eaaddr = ((uint32_t)(int8_t)getbyte()) + cpu_state.regs[sib & 7].l;
|
||||||
|
// pc++;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
eaaddr = (fastreadl(cs + cpu_state.pc + 1)) + cpu_state.regs[sib & 7].l;
|
||||||
|
cpu_state.pc += 5;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/*SIB byte present*/
|
||||||
|
if ((sib & 7) == 5 && !mod)
|
||||||
|
eaaddr = getlong();
|
||||||
|
else if ((sib & 6) == 4 && !ssegs)
|
||||||
|
{
|
||||||
|
easeg = ss;
|
||||||
|
ea_rseg = SS;
|
||||||
|
ea_seg = &_ss;
|
||||||
|
}
|
||||||
|
if (((sib >> 3) & 7) != 4)
|
||||||
|
eaaddr += cpu_state.regs[(sib >> 3) & 7].l << (sib >> 6);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eaaddr = cpu_state.regs[rm].l;
|
||||||
|
if (mod)
|
||||||
|
{
|
||||||
|
if (rm == 5 && !ssegs)
|
||||||
|
{
|
||||||
|
easeg = ss;
|
||||||
|
ea_rseg = SS;
|
||||||
|
ea_seg = &_ss;
|
||||||
|
}
|
||||||
|
if (mod == 1)
|
||||||
|
{
|
||||||
|
eaaddr += ((uint32_t)(int8_t)(rmdat >> 8));
|
||||||
|
cpu_state.pc++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eaaddr += getlong();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (rm == 5)
|
||||||
|
{
|
||||||
|
eaaddr = getlong();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (easeg != 0xFFFFFFFF && ((easeg + eaaddr) & 0xFFF) <= 0xFFC)
|
||||||
|
{
|
||||||
|
uint32_t addr = easeg + eaaddr;
|
||||||
|
if ( readlookup2[addr >> 12] != -1)
|
||||||
|
eal_r = (uint32_t *)(readlookup2[addr >> 12] + addr);
|
||||||
|
if (writelookup2[addr >> 12] != -1)
|
||||||
|
eal_w = (uint32_t *)(writelookup2[addr >> 12] + addr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void fetch_ea_16_long(uint32_t rmdat)
|
||||||
|
{
|
||||||
|
eal_r = eal_w = NULL;
|
||||||
|
easeg = ea_seg->base;
|
||||||
|
ea_rseg = ea_seg->seg;
|
||||||
|
if (!mod && rm == 6)
|
||||||
|
{
|
||||||
|
eaaddr = getword();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (mod)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
eaaddr = 0;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
eaaddr = (uint16_t)(int8_t)(rmdat >> 8); cpu_state.pc++;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
eaaddr = getword();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
eaaddr += (*mod1add[0][rm]) + (*mod1add[1][rm]);
|
||||||
|
if (mod1seg[rm] == &ss && !ssegs)
|
||||||
|
{
|
||||||
|
easeg = ss;
|
||||||
|
ea_rseg = SS;
|
||||||
|
ea_seg = &_ss;
|
||||||
|
}
|
||||||
|
eaaddr &= 0xFFFF;
|
||||||
|
}
|
||||||
|
if (easeg != 0xFFFFFFFF && ((easeg + eaaddr) & 0xFFF) <= 0xFFC)
|
||||||
|
{
|
||||||
|
uint32_t addr = easeg + eaaddr;
|
||||||
|
if ( readlookup2[addr >> 12] != -1)
|
||||||
|
eal_r = (uint32_t *)(readlookup2[addr >> 12] + addr);
|
||||||
|
if (writelookup2[addr >> 12] != -1)
|
||||||
|
eal_w = (uint32_t *)(writelookup2[addr >> 12] + addr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#define fetch_ea_16(rmdat) cpu_state.pc++; mod=(rmdat >> 6) & 3; reg=(rmdat >> 3) & 7; rm = rmdat & 7; if (mod != 3) { fetch_ea_16_long(rmdat); if (abrt) return 0; }
|
||||||
|
#define fetch_ea_32(rmdat) cpu_state.pc++; mod=(rmdat >> 6) & 3; reg=(rmdat >> 3) & 7; rm = rmdat & 7; if (mod != 3) { fetch_ea_32_long(rmdat); } if (abrt) return 0
|
||||||
|
|
||||||
|
#include "x86_flags.h"
|
||||||
|
|
||||||
|
#define getbytef() ((uint8_t)(fetchdat)); cpu_state.pc++
|
||||||
|
#define getwordf() ((uint16_t)(fetchdat)); cpu_state.pc+=2
|
||||||
|
#define getbyte2f() ((uint8_t)(fetchdat>>8)); cpu_state.pc++
|
||||||
|
#define getword2f() ((uint16_t)(fetchdat>>8)); cpu_state.pc+=2
|
||||||
|
extern int xout;
|
||||||
|
|
||||||
|
int oldi;
|
||||||
|
|
||||||
|
uint32_t testr[9];
|
||||||
|
extern int dontprint;
|
||||||
|
|
||||||
|
#undef NOTRM
|
||||||
|
#define NOTRM if (!(msw & 1) || (eflags & VM_FLAG))\
|
||||||
|
{ \
|
||||||
|
x86_int(6); \
|
||||||
|
return 0; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define OP_TABLE(name) ops_ ## name
|
||||||
|
|
||||||
|
#define CLOCK_CYCLES(c) cycles -= (c)
|
||||||
|
#define CLOCK_CYCLES_ALWAYS(c) cycles -= (c)
|
||||||
|
|
||||||
|
#include "x86_ops.h"
|
||||||
|
|
||||||
|
#undef NOTRM
|
||||||
|
#define NOTRM if (!(msw & 1) || (eflags & VM_FLAG))\
|
||||||
|
{ \
|
||||||
|
x86_int(6); \
|
||||||
|
break; \
|
||||||
|
}
|
||||||
|
|
||||||
|
void exec386(int cycs)
|
||||||
|
{
|
||||||
|
uint8_t temp;
|
||||||
|
uint32_t addr;
|
||||||
|
int tempi;
|
||||||
|
int cycdiff;
|
||||||
|
int oldcyc;
|
||||||
|
|
||||||
|
cycles+=cycs;
|
||||||
|
// output=3;
|
||||||
|
while (cycles>0)
|
||||||
|
{
|
||||||
|
cycdiff=0;
|
||||||
|
oldcyc=cycles;
|
||||||
|
timer_start_period(cycles << TIMER_SHIFT);
|
||||||
|
// pclog("%i %02X\n", ins, ram[8]);
|
||||||
|
while (cycdiff<100)
|
||||||
|
{
|
||||||
|
/* testr[0]=EAX; testr[1]=EBX; testr[2]=ECX; testr[3]=EDX;
|
||||||
|
testr[4]=ESI; testr[5]=EDI; testr[6]=EBP; testr[7]=ESP;*/
|
||||||
|
/* testr[8]=flags;*/
|
||||||
|
// oldcs2=oldcs;
|
||||||
|
// oldpc2=oldpc;
|
||||||
|
opcode_realstart:
|
||||||
|
oldcs=CS;
|
||||||
|
oldpc=cpu_state.pc;
|
||||||
|
oldcpl=CPL;
|
||||||
|
op32=use32;
|
||||||
|
|
||||||
|
dontprint=0;
|
||||||
|
|
||||||
|
ea_seg = &_ds;
|
||||||
|
ssegs = 0;
|
||||||
|
|
||||||
|
opcodestart:
|
||||||
|
fetchdat = fastreadl(cs + cpu_state.pc);
|
||||||
|
|
||||||
|
if (!abrt)
|
||||||
|
{
|
||||||
|
trap = flags & T_FLAG;
|
||||||
|
opcode = fetchdat & 0xFF;
|
||||||
|
fetchdat >>= 8;
|
||||||
|
|
||||||
|
if (output == 3)
|
||||||
|
{
|
||||||
|
pclog("%04X(%06X):%04X : %08X %08X %08X %08X %04X %04X %04X(%08X) %04X %04X %04X(%08X) %08X %08X %08X SP=%04X:%08X %02X %04X %i %08X %08X %i %i %02X %02X %02X %02X %02X %f %02X%02X %02X%02X %02X%02X %02X\n",CS,cs,cpu_state.pc,EAX,EBX,ECX,EDX,CS,DS,ES,es,FS,GS,SS,ss,EDI,ESI,EBP,SS,ESP,opcode,flags,ins,0, ldt.base, CPL, stack32, pic.pend, pic.mask, pic.mask2, pic2.pend, pic2.mask, pit.c[0], ram[0xB270+0x3F5], ram[0xB270+0x3F4], ram[0xB270+0x3F7], ram[0xB270+0x3F6], ram[0xB270+0x3F9], ram[0xB270+0x3F8], ram[0x4430+0x0D49]);
|
||||||
|
}
|
||||||
|
cpu_state.pc++;
|
||||||
|
x86_opcodes[(opcode | op32) & 0x3ff](fetchdat);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!use32) cpu_state.pc &= 0xffff;
|
||||||
|
|
||||||
|
if (abrt)
|
||||||
|
{
|
||||||
|
flags_rebuild();
|
||||||
|
// pclog("Abort\n");
|
||||||
|
// if (CS == 0x228) pclog("Abort at %04X:%04X - %i %i %i\n",CS,pc,notpresent,nullseg,abrt);
|
||||||
|
/* if (testr[0]!=EAX) pclog("EAX corrupted %08X\n",pc);
|
||||||
|
if (testr[1]!=EBX) pclog("EBX corrupted %08X\n",pc);
|
||||||
|
if (testr[2]!=ECX) pclog("ECX corrupted %08X\n",pc);
|
||||||
|
if (testr[3]!=EDX) pclog("EDX corrupted %08X\n",pc);
|
||||||
|
if (testr[4]!=ESI) pclog("ESI corrupted %08X\n",pc);
|
||||||
|
if (testr[5]!=EDI) pclog("EDI corrupted %08X\n",pc);
|
||||||
|
if (testr[6]!=EBP) pclog("EBP corrupted %08X\n",pc);
|
||||||
|
if (testr[7]!=ESP) pclog("ESP corrupted %08X\n",pc);*/
|
||||||
|
/* if (testr[8]!=flags) pclog("FLAGS corrupted %08X\n",pc);*/
|
||||||
|
tempi = abrt;
|
||||||
|
abrt = 0;
|
||||||
|
x86_doabrt(tempi);
|
||||||
|
if (abrt)
|
||||||
|
{
|
||||||
|
abrt = 0;
|
||||||
|
CS = oldcs;
|
||||||
|
cpu_state.pc = oldpc;
|
||||||
|
pclog("Double fault %i\n", ins);
|
||||||
|
pmodeint(8, 0);
|
||||||
|
if (abrt)
|
||||||
|
{
|
||||||
|
abrt = 0;
|
||||||
|
softresetx86();
|
||||||
|
pclog("Triple fault - reset\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cycdiff=oldcyc-cycles;
|
||||||
|
|
||||||
|
if (trap)
|
||||||
|
{
|
||||||
|
flags_rebuild();
|
||||||
|
// oldpc=pc;
|
||||||
|
// oldcs=CS;
|
||||||
|
if (msw&1)
|
||||||
|
{
|
||||||
|
pmodeint(1,0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
writememw(ss,(SP-2)&0xFFFF,flags);
|
||||||
|
writememw(ss,(SP-4)&0xFFFF,CS);
|
||||||
|
writememw(ss,(SP-6)&0xFFFF,cpu_state.pc);
|
||||||
|
SP-=6;
|
||||||
|
addr = (1 << 2) + idt.base;
|
||||||
|
flags&=~I_FLAG;
|
||||||
|
flags&=~T_FLAG;
|
||||||
|
cpu_state.pc=readmemw(0,addr);
|
||||||
|
loadcs(readmemw(0,addr+2));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (nmi && nmi_enable)
|
||||||
|
{
|
||||||
|
oldpc = cpu_state.pc;
|
||||||
|
oldcs = CS;
|
||||||
|
// pclog("NMI\n");
|
||||||
|
x86_int(2);
|
||||||
|
nmi_enable = 0;
|
||||||
|
}
|
||||||
|
else if ((flags&I_FLAG) && pic_intpending)
|
||||||
|
{
|
||||||
|
temp=picinterrupt();
|
||||||
|
if (temp!=0xFF)
|
||||||
|
{
|
||||||
|
// if (temp == 0x54) pclog("Take int 54\n");
|
||||||
|
// if (output) output=3;
|
||||||
|
// if (temp == 0xd) pclog("Hardware int %02X %i %04X(%08X):%08X\n",temp,ins, CS,cs,pc);
|
||||||
|
// if (temp==0x54) output=3;
|
||||||
|
flags_rebuild();
|
||||||
|
if (msw&1)
|
||||||
|
{
|
||||||
|
pmodeint(temp,0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
writememw(ss,(SP-2)&0xFFFF,flags);
|
||||||
|
writememw(ss,(SP-4)&0xFFFF,CS);
|
||||||
|
writememw(ss,(SP-6)&0xFFFF,cpu_state.pc);
|
||||||
|
SP-=6;
|
||||||
|
addr = (temp << 2) + idt.base;
|
||||||
|
flags&=~I_FLAG;
|
||||||
|
flags&=~T_FLAG;
|
||||||
|
oxpc=cpu_state.pc;
|
||||||
|
cpu_state.pc=readmemw(0,addr);
|
||||||
|
loadcs(readmemw(0,addr+2));
|
||||||
|
// if (temp==0x76) pclog("INT to %04X:%04X\n",CS,pc);
|
||||||
|
}
|
||||||
|
// pclog("Now at %04X(%08X):%08X\n", CS, cs, pc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ins++;
|
||||||
|
insc++;
|
||||||
|
|
||||||
|
if (timetolive)
|
||||||
|
{
|
||||||
|
timetolive--;
|
||||||
|
if (!timetolive)
|
||||||
|
fatal("Life expired\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tsc += cycdiff;
|
||||||
|
|
||||||
|
timer_end_period(cycles << TIMER_SHIFT);
|
||||||
|
}
|
||||||
|
}
|
2
src/386.h
Normal file
2
src/386.h
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
extern void cpu_386_flags_extract();
|
||||||
|
extern void cpu_386_flags_rebuild();
|
288
src/386_common.h
Normal file
288
src/386_common.h
Normal file
|
@ -0,0 +1,288 @@
|
||||||
|
extern uint16_t ea_rseg;
|
||||||
|
|
||||||
|
#undef readmemb
|
||||||
|
#undef writememb
|
||||||
|
|
||||||
|
|
||||||
|
#define readmemb(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1 || (s)==0xFFFFFFFF)?readmemb386l(s,a): *(uint8_t *)(readlookup2[(uint32_t)((s)+(a))>>12] + (uint32_t)((s) + (a))) )
|
||||||
|
#define readmemq(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1 || (s)==0xFFFFFFFF || (((s)+(a))&0xFFF)>0xFF8)?readmemql(s,a):*(uint64_t *)(readlookup2[(uint32_t)((s)+(a))>>12]+(uint32_t)((s)+(a))))
|
||||||
|
|
||||||
|
#define writememb(s,a,v) if (writelookup2[(uint32_t)((s)+(a))>>12]==-1 || (s)==0xFFFFFFFF) writememb386l(s,a,v); else *(uint8_t *)(writelookup2[(uint32_t)((s) + (a)) >> 12] + (uint32_t)((s) + (a))) = v
|
||||||
|
|
||||||
|
#define writememw(s,a,v) if (writelookup2[(uint32_t)((s)+(a))>>12]==-1 || (s)==0xFFFFFFFF || (((s)+(a))&0xFFF)>0xFFE) writememwl(s,a,v); else *(uint16_t *)(writelookup2[(uint32_t)((s) + (a)) >> 12] + (uint32_t)((s) + (a))) = v
|
||||||
|
#define writememl(s,a,v) if (writelookup2[(uint32_t)((s)+(a))>>12]==-1 || (s)==0xFFFFFFFF || (((s)+(a))&0xFFF)>0xFFC) writememll(s,a,v); else *(uint32_t *)(writelookup2[(uint32_t)((s) + (a)) >> 12] + (uint32_t)((s) + (a))) = v
|
||||||
|
#define writememq(s,a,v) if (writelookup2[(uint32_t)((s)+(a))>>12]==-1 || (s)==0xFFFFFFFF || (((s)+(a))&0xFFF)>0xFF8) writememql(s,a,v); else *(uint64_t *)(writelookup2[(uint32_t)((s) + (a)) >> 12] + (uint32_t)((s) + (a))) = v
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#define check_io_perm(port) if (!IOPLp || (eflags&VM_FLAG)) \
|
||||||
|
{ \
|
||||||
|
int tempi = checkio(port); \
|
||||||
|
if (abrt) return 1; \
|
||||||
|
if (tempi) \
|
||||||
|
{ \
|
||||||
|
pclog("No I/O permission on port %04Xh\n", port); \
|
||||||
|
x86gpf("check_io_perm(): no permission",0); \
|
||||||
|
return 1; \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define checkio_perm(port) if (!IOPLp || (eflags&VM_FLAG)) \
|
||||||
|
{ \
|
||||||
|
tempi = checkio(port); \
|
||||||
|
if (abrt) break; \
|
||||||
|
if (tempi) \
|
||||||
|
{ \
|
||||||
|
x86gpf("checkio_perm(): no permission",0); \
|
||||||
|
break; \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define check_io_perm(port) if (msw&1 && ((CPL > IOPL) || (eflags&VM_FLAG))) \
|
||||||
|
{ \
|
||||||
|
int tempi = checkio(port); \
|
||||||
|
if (abrt) return 1; \
|
||||||
|
if (tempi) \
|
||||||
|
{ \
|
||||||
|
pclog("No I/O permission on port %04Xh\n", port); \
|
||||||
|
x86gpf("check_io_perm(): no permission",0); \
|
||||||
|
return 1; \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define checkio_perm(port) if (msw&1 && ((CPL > IOPL) || (eflags&VM_FLAG))) \
|
||||||
|
{ \
|
||||||
|
tempi = checkio(port); \
|
||||||
|
if (abrt) break; \
|
||||||
|
if (tempi) \
|
||||||
|
{ \
|
||||||
|
x86gpf("checkio_perm(): no permission",0); \
|
||||||
|
break; \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define CHECK_READ(chseg, low, high) \
|
||||||
|
if ((low < (chseg)->limit_low) || (high > (chseg)->limit_high)) \
|
||||||
|
{ \
|
||||||
|
x86gpf("Limit check (READ)", 0); \
|
||||||
|
return 1; \
|
||||||
|
} \
|
||||||
|
if (msw&1 && !(eflags&VM_FLAG) && !((chseg)->access & 0x80)) \
|
||||||
|
{ \
|
||||||
|
if ((chseg) == &_ss) \
|
||||||
|
x86ss(NULL,(chseg)->seg & 0xfffc); \
|
||||||
|
else \
|
||||||
|
pclog("Read from seg not present", (chseg)->seg & 0xfffc); \
|
||||||
|
return 1; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define CHECK_WRITE(chseg, low, high) \
|
||||||
|
if ((low < (chseg)->limit_low) || (high > (chseg)->limit_high) || !((chseg)->access & 2)) \
|
||||||
|
{ \
|
||||||
|
x86gpf("Limit check (WRITE)", 0); \
|
||||||
|
return 1; \
|
||||||
|
} \
|
||||||
|
if (msw&1 && !(eflags&VM_FLAG) && !((chseg)->access & 0x80)) \
|
||||||
|
{ \
|
||||||
|
if ((chseg) == &_ss) \
|
||||||
|
x86ss(NULL,(chseg)->seg & 0xfffc); \
|
||||||
|
else \
|
||||||
|
x86np("Write to seg not present", (chseg)->seg & 0xfffc); \
|
||||||
|
return 1; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#define CHECK_WRITE_REP(chseg, low, high) \
|
||||||
|
if ((low < (chseg)->limit_low) || (high > (chseg)->limit_high)) \
|
||||||
|
{ \
|
||||||
|
x86gpf("Limit check (WRITE_REP)", 0); \
|
||||||
|
if (1 != 1) break; \
|
||||||
|
} \
|
||||||
|
if (msw&1 && !(eflags&VM_FLAG) && !((chseg)->access & 0x80)) \
|
||||||
|
{ \
|
||||||
|
if ((chseg) == &_ss) \
|
||||||
|
x86ss(NULL,(chseg)->seg & 0xfffc); \
|
||||||
|
else \
|
||||||
|
x86np("Write (REP) to seg not present", (chseg)->seg & 0xfffc); \
|
||||||
|
break; \
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CHECK_WRITE_REP(chseg, low, high) \
|
||||||
|
if (msw&1 && !(eflags&VM_FLAG) && !((chseg)->access & 0x80)) \
|
||||||
|
{ \
|
||||||
|
if ((chseg) == &_ss) \
|
||||||
|
x86ss(NULL,(chseg)->seg & 0xfffc); \
|
||||||
|
else \
|
||||||
|
x86np("Write (REP) to seg not present", (chseg)->seg & 0xfffc); \
|
||||||
|
break; \
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#define NOTRM if (!(msw & 1) || (eflags & VM_FLAG))\
|
||||||
|
{ \
|
||||||
|
x86_int(6); \
|
||||||
|
return 1; \
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static inline uint8_t fastreadb(uint32_t a)
|
||||||
|
{
|
||||||
|
uint8_t *t;
|
||||||
|
|
||||||
|
if ((a >> 12) == pccache)
|
||||||
|
return *((uint8_t *)&pccache2[a]);
|
||||||
|
t = getpccache(a);
|
||||||
|
if (abrt)
|
||||||
|
return;
|
||||||
|
pccache = a >> 12;
|
||||||
|
pccache2 = t;
|
||||||
|
return *((uint8_t *)&pccache2[a]);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint16_t fastreadw(uint32_t a)
|
||||||
|
{
|
||||||
|
uint8_t *t;
|
||||||
|
uint16_t val;
|
||||||
|
if ((a&0xFFF)>0xFFE)
|
||||||
|
{
|
||||||
|
val = readmemb(0, a);
|
||||||
|
val |= (readmemb(0, a + 1) << 8);
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
if ((a>>12)==pccache) return *((uint16_t *)&pccache2[a]);
|
||||||
|
t = getpccache(a);
|
||||||
|
if (abrt)
|
||||||
|
return;
|
||||||
|
|
||||||
|
pccache = a >> 12;
|
||||||
|
pccache2 = t;
|
||||||
|
return *((uint16_t *)&pccache2[a]);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint32_t fastreadl(uint32_t a)
|
||||||
|
{
|
||||||
|
uint8_t *t;
|
||||||
|
uint32_t val;
|
||||||
|
if ((a&0xFFF)<0xFFD)
|
||||||
|
{
|
||||||
|
if ((a>>12)!=pccache)
|
||||||
|
{
|
||||||
|
t = getpccache(a);
|
||||||
|
if (abrt)
|
||||||
|
return 0;
|
||||||
|
pccache2 = t;
|
||||||
|
pccache=a>>12;
|
||||||
|
//return *((uint32_t *)&pccache2[a]);
|
||||||
|
}
|
||||||
|
return *((uint32_t *)&pccache2[a]);
|
||||||
|
}
|
||||||
|
val =readmemb(0,a);
|
||||||
|
val |=(readmemb(0,a+1)<<8);
|
||||||
|
val |=(readmemb(0,a+2)<<16);
|
||||||
|
val |=(readmemb(0,a+3)<<24);
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint8_t getbyte()
|
||||||
|
{
|
||||||
|
cpu_state.pc++;
|
||||||
|
return fastreadb(cs + (cpu_state.pc - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint16_t getword()
|
||||||
|
{
|
||||||
|
cpu_state.pc+=2;
|
||||||
|
return fastreadw(cs+(cpu_state.pc-2));
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint32_t getlong()
|
||||||
|
{
|
||||||
|
cpu_state.pc+=4;
|
||||||
|
return fastreadl(cs+(cpu_state.pc-4));
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint64_t getquad()
|
||||||
|
{
|
||||||
|
cpu_state.pc+=8;
|
||||||
|
return fastreadl(cs+(cpu_state.pc-8)) | ((uint64_t)fastreadl(cs+(cpu_state.pc-4)) << 32);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static inline uint8_t geteab()
|
||||||
|
{
|
||||||
|
if (mod == 3)
|
||||||
|
return (rm & 4) ? cpu_state.regs[rm & 3].b.h : cpu_state.regs[rm&3].b.l;
|
||||||
|
if (eal_r)
|
||||||
|
return *(uint8_t *)eal_r;
|
||||||
|
return readmemb(easeg, eaaddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint16_t geteaw()
|
||||||
|
{
|
||||||
|
if (mod == 3)
|
||||||
|
return cpu_state.regs[rm].w;
|
||||||
|
// cycles-=3;
|
||||||
|
if (eal_r)
|
||||||
|
return *(uint16_t *)eal_r;
|
||||||
|
return readmemw(easeg, eaaddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint32_t geteal()
|
||||||
|
{
|
||||||
|
if (mod == 3)
|
||||||
|
return cpu_state.regs[rm].l;
|
||||||
|
// cycles-=3;
|
||||||
|
if (eal_r)
|
||||||
|
return *eal_r;
|
||||||
|
return readmeml(easeg, eaaddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint64_t geteaq()
|
||||||
|
{
|
||||||
|
return readmemq(easeg, eaaddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint8_t geteab_mem()
|
||||||
|
{
|
||||||
|
if (eal_r) return *(uint8_t *)eal_r;
|
||||||
|
return readmemb(easeg,eaaddr);
|
||||||
|
}
|
||||||
|
static inline uint16_t geteaw_mem()
|
||||||
|
{
|
||||||
|
if (eal_r) return *(uint16_t *)eal_r;
|
||||||
|
return readmemw(easeg,eaaddr);
|
||||||
|
}
|
||||||
|
static inline uint32_t geteal_mem()
|
||||||
|
{
|
||||||
|
if (eal_r) return *eal_r;
|
||||||
|
return readmeml(easeg,eaaddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void seteaq(uint64_t v)
|
||||||
|
{
|
||||||
|
writememql(easeg, eaaddr, v);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define seteab(v) if (mod!=3) { if (eal_w) *(uint8_t *)eal_w=v; else writememb386l(easeg,eaaddr,v); } else if (rm&4) cpu_state.regs[rm&3].b.h=v; else cpu_state.regs[rm].b.l=v
|
||||||
|
#define seteaw(v) if (mod!=3) { if (eal_w) *(uint16_t *)eal_w=v; else writememwl(easeg,eaaddr,v); } else cpu_state.regs[rm].w=v
|
||||||
|
#define seteal(v) if (mod!=3) { if (eal_w) *eal_w=v; else writememll(easeg,eaaddr,v); } else cpu_state.regs[rm].l=v
|
||||||
|
|
||||||
|
#define seteab_mem(v) if (eal_w) *(uint8_t *)eal_w=v; else writememb386l(easeg,eaaddr,v);
|
||||||
|
#define seteaw_mem(v) if (eal_w) *(uint16_t *)eal_w=v; else writememwl(easeg,eaaddr,v);
|
||||||
|
#define seteal_mem(v) if (eal_w) *eal_w=v; else writememll(easeg,eaaddr,v);
|
||||||
|
|
||||||
|
#define getbytef() ((uint8_t)(fetchdat)); cpu_state.pc++
|
||||||
|
#define getwordf() ((uint16_t)(fetchdat)); cpu_state.pc+=2
|
||||||
|
#define getbyte2f() ((uint8_t)(fetchdat>>8)); cpu_state.pc++
|
||||||
|
#define getword2f() ((uint16_t)(fetchdat>>8)); cpu_state.pc+=2
|
||||||
|
|
||||||
|
|
||||||
|
#define rmdat rmdat32
|
||||||
|
#define fetchdat rmdat32
|
||||||
|
|
||||||
|
void x86_int(int num);
|
1544
src/386_dynarec.c
Normal file
1544
src/386_dynarec.c
Normal file
File diff suppressed because it is too large
Load diff
57
src/386_dynarec_ops.c
Normal file
57
src/386_dynarec_ops.c
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
#include "ibm.h"
|
||||||
|
#include "cpu.h"
|
||||||
|
#include "x86.h"
|
||||||
|
#include "x86_ops.h"
|
||||||
|
#include "x87.h"
|
||||||
|
#include "x86_flags.h"
|
||||||
|
#include "mem.h"
|
||||||
|
#include "codegen.h"
|
||||||
|
|
||||||
|
#define CPU_BLOCK_END() cpu_block_end = 1
|
||||||
|
|
||||||
|
#include "386_common.h"
|
||||||
|
|
||||||
|
|
||||||
|
extern uint16_t *mod1add[2][8];
|
||||||
|
extern uint32_t *mod1seg[8];
|
||||||
|
|
||||||
|
static inline void fetch_ea_32_long(uint32_t rmdat)
|
||||||
|
{
|
||||||
|
eal_r = eal_w = NULL;
|
||||||
|
easeg = ea_seg->base;
|
||||||
|
ea_rseg = ea_seg->seg;
|
||||||
|
if (easeg != 0xFFFFFFFF && ((easeg + eaaddr) & 0xFFF) <= 0xFFC)
|
||||||
|
{
|
||||||
|
uint32_t addr = easeg + eaaddr;
|
||||||
|
if ( readlookup2[addr >> 12] != -1)
|
||||||
|
eal_r = (uint32_t *)(readlookup2[addr >> 12] + addr);
|
||||||
|
if (writelookup2[addr >> 12] != -1)
|
||||||
|
eal_w = (uint32_t *)(writelookup2[addr >> 12] + addr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void fetch_ea_16_long(uint32_t rmdat)
|
||||||
|
{
|
||||||
|
eal_r = eal_w = NULL;
|
||||||
|
easeg = ea_seg->base;
|
||||||
|
ea_rseg = ea_seg->seg;
|
||||||
|
if (easeg != 0xFFFFFFFF && ((easeg + eaaddr) & 0xFFF) <= 0xFFC)
|
||||||
|
{
|
||||||
|
uint32_t addr = easeg + eaaddr;
|
||||||
|
if ( readlookup2[addr >> 12] != -1)
|
||||||
|
eal_r = (uint32_t *)(readlookup2[addr >> 12] + addr);
|
||||||
|
if (writelookup2[addr >> 12] != -1)
|
||||||
|
eal_w = (uint32_t *)(writelookup2[addr >> 12] + addr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#define fetch_ea_16(rmdat) cpu_state.pc++; if (mod != 3) fetch_ea_16_long(rmdat);
|
||||||
|
#define fetch_ea_32(rmdat) cpu_state.pc++; if (mod != 3) fetch_ea_32_long(rmdat);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define OP_TABLE(name) dynarec_ops_ ## name
|
||||||
|
#define CLOCK_CYCLES(c)
|
||||||
|
#define CLOCK_CYCLES_ALWAYS(c) cycles -= (c)
|
||||||
|
|
||||||
|
#include "386_ops.h"
|
1371
src/386_ops.h
Normal file
1371
src/386_ops.h
Normal file
File diff suppressed because it is too large
Load diff
3509
src/808x.c
Normal file
3509
src/808x.c
Normal file
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue