freebsd-ports/emulators/pcemu/files/patch-b1-cpule
Joerg Wunsch 6c96bb41e7 This is the last of the ports PRs assigned to me... and actually a
rather large patchset improving pcemu.  I therefore also decided to
bump the version number from 1.01a to 1.01b, David Hedley apparently
abandoned all work on pcemu anyway.

The exact details of Arne's patches can be studied in the PR, it's
something like 50 lines of explanation i don't want to quote in full
here.  In short, he submitted a number of improvements and a fix for
the hard disk emulation in pcemu's BIOS.  After a review, i decided to
leave the patches verbatim.

In addition and while i was at it, i added something i always ment to
do: the option to dynamically add floppy disks (and now also hard
disks) from within the .pcemurc file, so there's no need to recompile
if you just wanna get access to your floppy from within pcemu.
Comment it out again once you're done.

PR:		ports/5788
Submitted by:	<arnej@math.ntnu.no> Arne Henrik Juul
2000-02-21 22:40:56 +00:00

41 lines
1.6 KiB
Text

diff -ru Makefile.orig Makefile
--- Makefile.orig Wed Feb 18 10:51:27 1998
+++ Makefile Wed Feb 18 10:50:46 1998
@@ -18,7 +18,7 @@
# -DDEBUGGER compiles in the debugger
# -DKBUK if you have a UK style 102 key keyboard
-# -DBIG_ENDIAN if your computer is big-endian (Sparc, 68000 etc)
-# -DLITTLE_ENDIAN if your computer is little-endian (80x86 etc)
+# -DCPU_BIG_ENDIAN if your computer is big-endian (Sparc, 68000 etc)
+# -DCPU_LITTLE_ENDIAN if your computer is little-endian (80x86 etc)
# -DALIGNED_ACCESS if your computer requires words to be on even boundaries
# -DBIGCASE If your compiler/computer can handle 256 case switches
#
@@ -53,7 +53,7 @@
CC = gcc
#OPTIONS = -DBOOT720 -DBIG_ENDIAN -DALIGNED_ACCESS -DBIGCASE -DINLINE_FUNCTIONS
-OPTIONS = -DBOOT720 -DLITTLE_ENDIAN -DBIGCASE -DINLINE_FUNCTIONS \
+OPTIONS = -DBOOT720 -DCPU_LITTLE_ENDIAN -DBIGCASE -DINLINE_FUNCTIONS \
-DBOOTFILE=\"${LOCALPREFIX}/lib/pcemu/DriveA\"
#XROOT = /usr/local/X11R5
XROOT = /usr/X11R6
diff -ru cpu.h.orig cpu.h
--- cpu.h.orig Wed Jun 22 16:24:50 1994
+++ cpu.h Wed Feb 18 10:50:46 1998
@@ -113,13 +113,13 @@
format and back again. Obviously there is nothing to do for little-endian
machines... */
-#if defined(LITTLE_ENDIAN)
+#if defined(CPU_LITTLE_ENDIAN)
# define ChangeE(x) (WORD)(x)
#else
# define ChangeE(x) (WORD)(((x) << 8) | ((BYTE)((x) >> 8)))
#endif
-#if defined(LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
+#if defined(CPU_LITTLE_ENDIAN) && !defined(ALIGNED_ACCESS)
# define ReadWord(x) (*(x))
# define WriteWord(x,y) (*(x) = (y))
# define CopyWord(x,y) (*x = *y)