Release 950901
Thu Aug 31 17:19:57 1995 Alexandre Julliard <julliard@sunsite.unc.edu>
* [Configure]
Added compile-time option for IPC.
* [configure.in]
Added command-line options for language, IPC and malloc
debugging.
* [controls/menu.c]
WM_MENUSELECT was sometimes sent to the wrong window.
* [debugger/break.c]
For the 'next' command, only step over instruction that require
it. This allows 'next' to do the right thing with jmp and ret
instructions.
* [ipc/*.c] [memory/atom.c] [memory/global.c]
IPC can now be configured out at compile-time.
* [loader/task.c]
Bug fix in TASK_Reschedule() that could cause a task to be deleted
twice.
* [miscemu/dosmem.c] (New file)
Partial emulation of the BIOS data segment.
* [miscemu/instr.c]
Trap attempts to access selector 0x40 and remap the access to
segment __0040H.
* [tools/build.c]
Fixed bug in CallTo32_LargeStack() that caused problems when
compiling Wine with the -fomit-frame-pointer option.
* [windows/message.c]
Fixed bug in hardware event handling that could cause some events
to get ignored.
Sat Aug 26 13:12:59 IST 1995 Michael Veksler <mveksler@vnet.ibm.com>
* [ipc/README] [ipc/dde.tex]
LaTeX documentation for the ipc and DDE stuff.
Wed Aug 23 22:01:23 GMT 1995 Michael Veksler <mveksler@vnet.ibm.com>
* [ipc/Imakefile] [ipc/wine_test_stub.c]
Fixed IPC testing. Now it can be compiled with "make tests"
Wed Aug 23 21:04:14 1995 Fons Botman <botman@wab-tis.rabobank.nl>
* [if1632/kernel.spec] [include/windows.h] [misc/main.c]
Added GetWinDebugInfo/SetWinDebugInfo stub for player.exe
Sun Aug 20 13:49:42 1995 Marcus Meissner <msmeissn@faui01.informatik.uni-erlangen.de>
* [miscemu/int21.c]
Misc fix to int21,ah=40 (write) to match _lwrite().
AX=0x440A (check if handle is remote) added.
* [multimedia/mmsystem.c]
Moved mciSendString to mcistring.c.
* [multimedia/mcistring.c]
New file, string interface for MCI (not complete, not thoroughly
tested).
* [multimedia/audio.c]
IOCTL prints errors; one paranoid check disabled.
* [misc/file.c]
Misc operator precedence fixes.
* [if1632/gdi.spec] [objects/bitblt.c]
Stub for FastWindowFrame (parameters not correct).
Sat Aug 19 01:31:23 1995 Graham Menhennitt <gfm@werple.mira.net.au>
* [loader/ne_image.c]
Preliminary support for iterated segments.
Sat Aug 19 00:43:04 1995 Andrew Taylor (andrew@riscan.com)
* [windows/mapping.c]
In function MAPPING_FixIsotropic(), VportExt[XY] is multiplied by
the absolute value of (ydim / xdim) or (xdim / ydim).
Thu Aug 15 23:00:16 Gregory Trubetskoy <grisha@mira.com>
* [objects/oembitmap.c]
Added some includes for Windows 95.
* [include/sysmetrics.h]
Added some sysmetrics for Windows 95.
* [include/bitmaps/*95]
New files: obm_close_95, obm_closed_95, obm_reduce_95, obm_reduced_95
obm_zoom_95, obm_zoomd_95 - these are some pixmaps for Windows 95.
Thu Aug 10 12:00:00 1995 Jan Willamowius (jan@janhh.shnet.org)
* [misc/shell.c] [rc/sysres*.rc]
The caption of the ShellAbout dialog box is language specific and
should be defined in the resources.
1995-09-01 17:57:28 +02:00
|
|
|
/*
|
|
|
|
* Misc. emulation definitions
|
|
|
|
*
|
|
|
|
* Copyright 1995 Alexandre Julliard
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Release 950901
Thu Aug 31 17:19:57 1995 Alexandre Julliard <julliard@sunsite.unc.edu>
* [Configure]
Added compile-time option for IPC.
* [configure.in]
Added command-line options for language, IPC and malloc
debugging.
* [controls/menu.c]
WM_MENUSELECT was sometimes sent to the wrong window.
* [debugger/break.c]
For the 'next' command, only step over instruction that require
it. This allows 'next' to do the right thing with jmp and ret
instructions.
* [ipc/*.c] [memory/atom.c] [memory/global.c]
IPC can now be configured out at compile-time.
* [loader/task.c]
Bug fix in TASK_Reschedule() that could cause a task to be deleted
twice.
* [miscemu/dosmem.c] (New file)
Partial emulation of the BIOS data segment.
* [miscemu/instr.c]
Trap attempts to access selector 0x40 and remap the access to
segment __0040H.
* [tools/build.c]
Fixed bug in CallTo32_LargeStack() that caused problems when
compiling Wine with the -fomit-frame-pointer option.
* [windows/message.c]
Fixed bug in hardware event handling that could cause some events
to get ignored.
Sat Aug 26 13:12:59 IST 1995 Michael Veksler <mveksler@vnet.ibm.com>
* [ipc/README] [ipc/dde.tex]
LaTeX documentation for the ipc and DDE stuff.
Wed Aug 23 22:01:23 GMT 1995 Michael Veksler <mveksler@vnet.ibm.com>
* [ipc/Imakefile] [ipc/wine_test_stub.c]
Fixed IPC testing. Now it can be compiled with "make tests"
Wed Aug 23 21:04:14 1995 Fons Botman <botman@wab-tis.rabobank.nl>
* [if1632/kernel.spec] [include/windows.h] [misc/main.c]
Added GetWinDebugInfo/SetWinDebugInfo stub for player.exe
Sun Aug 20 13:49:42 1995 Marcus Meissner <msmeissn@faui01.informatik.uni-erlangen.de>
* [miscemu/int21.c]
Misc fix to int21,ah=40 (write) to match _lwrite().
AX=0x440A (check if handle is remote) added.
* [multimedia/mmsystem.c]
Moved mciSendString to mcistring.c.
* [multimedia/mcistring.c]
New file, string interface for MCI (not complete, not thoroughly
tested).
* [multimedia/audio.c]
IOCTL prints errors; one paranoid check disabled.
* [misc/file.c]
Misc operator precedence fixes.
* [if1632/gdi.spec] [objects/bitblt.c]
Stub for FastWindowFrame (parameters not correct).
Sat Aug 19 01:31:23 1995 Graham Menhennitt <gfm@werple.mira.net.au>
* [loader/ne_image.c]
Preliminary support for iterated segments.
Sat Aug 19 00:43:04 1995 Andrew Taylor (andrew@riscan.com)
* [windows/mapping.c]
In function MAPPING_FixIsotropic(), VportExt[XY] is multiplied by
the absolute value of (ydim / xdim) or (xdim / ydim).
Thu Aug 15 23:00:16 Gregory Trubetskoy <grisha@mira.com>
* [objects/oembitmap.c]
Added some includes for Windows 95.
* [include/sysmetrics.h]
Added some sysmetrics for Windows 95.
* [include/bitmaps/*95]
New files: obm_close_95, obm_closed_95, obm_reduce_95, obm_reduced_95
obm_zoom_95, obm_zoomd_95 - these are some pixmaps for Windows 95.
Thu Aug 10 12:00:00 1995 Jan Willamowius (jan@janhh.shnet.org)
* [misc/shell.c] [rc/sysres*.rc]
The caption of the ShellAbout dialog box is language specific and
should be defined in the resources.
1995-09-01 17:57:28 +02:00
|
|
|
*/
|
|
|
|
|
1994-12-10 14:02:28 +01:00
|
|
|
#ifndef __WINE_MISCEMU_H
|
|
|
|
#define __WINE_MISCEMU_H
|
|
|
|
|
2003-08-28 23:43:34 +02:00
|
|
|
#include <windef.h>
|
|
|
|
#include <selectors.h>
|
|
|
|
#include <wine/windef16.h>
|
Release 950606
Tue Jun 6 12:11:41 1995 Alexandre Julliard (julliard@sunsite.unc.edu)
* [controls/menu.c]
Fixed bug with drawing multi-column menus with vertical separator.
* [debugger/debug.l]
Fixed NULL-pointer reference after readline().
* [if1632/winprocs.spec] [miscemu/int21.c] [miscemu/interrupts.c]
Added interrupt vector emulation. Allows to retrieve an interrupt
vector and jump to it without crashing.
* [loader/ldt.c]
Moved ldt.c to memory directory.
* [loader/task.c]
Implemented LockCurrentTask() and GetInstanceData().
* [objects/bitblt.c]
Fixed a bug that caused StretchBlt() to use wrong colors when
stretching a monochrome bitmap to a color display.
* [objects/bitmap.c]
Fixed a segmented pointer bug in CreateBitmapIndirect().
* [tools/build.c]
Added possibility to have arguments for register functions; used
by interrupt vectors to remove the flags from the stack.
Generate a new function CallTo32_LargeStack(), that allows calling
a 32-bit function using the original 32-bit stack, for functions
that need more that 64k of stack.
Tue May 30 10:29:56 1995 Martin von Loewis <martin@informatik.hu-berlin.de>
* [if1632/shell.spec] [misc/shell.c]
DoEnvironmentSubst: fixed prototype
* [if1632/gdi.spec] [objects/palette.c]
SetSystemPaletteUse: new function
* [if1632/kernel.spec] [loader/resource.c]
DirectResAlloc: new function
* [if1632/user.spec] [windows/keyboard.c]
SetKeyboardState: new function
Mon May 29 12:58:28 1995 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
* [tools/build.c]
Prevent interrupts from destroying the args for a 32 bit function
by loading the correct value into %esp directly after %ss.
* [loader/ne_image.c] [loader/module.c]
The new instance must be created earlier in LoadModule(), so that
fixups referencing it will be handled correctly.
Initialize the local heap for a DGROUP in NE_LoadSegment().
* [objects/dib.c]
Like RLE8 bitmaps, RLE4 bitmaps don't always end with a proper code.
This used to crash Wine. Fixed.
* [objects/text.c]
Fix possible null pointer dereference in debugging output.
* [misc/commdlg.c]
Handle user input in the edit control better. Some bugs fixed.
* [memory/local.c]
Started implementing moveable blocks. This is unfinished (!), but
at least it does not seem to break things.
Wed May 24 13:26:36 1995 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
* [loader/module.c]
LoadModule(): DLLs occasionally have a data segment, and they work
much better if it is loaded :-)
LoadLibrary(): pass HMODULE instead of HINSTANCE to NE_InitializeDLLs.
FindModule(): also strip off the last backslash of the pathnames
(Winhelp tried to load C:\WINDOWS\SYSTEM\COMMDLG.DLL).
GetModuleHandle(): just call MODULE_FindModule, it does the same job,
only better.
* [loader/ne_image.c]
LocalInit() the heap of a DLL in NE_InitDLL. (This is probably
not really correct, it seems that all programs and DLLs try to do
this themselves. But they pass weird parameters.)
NE_InitializeDLLs should also call NE_InitDLL for the passed hModule.
* [loader/task.c] [misc/user.c]
Finish global initializations in InitTask instead of InitApp, or
all the DLLs will be initialized in InitTask without any available
window classes!
1995-06-06 18:40:35 +02:00
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
/* msdos/dosmem.c */
|
2003-08-28 23:43:34 +02:00
|
|
|
#include <pshpack1.h>
|
1999-03-13 19:00:52 +01:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WORD Com1Addr; /* 00: COM1 I/O address */
|
|
|
|
WORD Com2Addr; /* 02: COM2 I/O address */
|
|
|
|
WORD Com3Addr; /* 04: COM3 I/O address */
|
|
|
|
WORD Com4Addr; /* 06: COM4 I/O address */
|
|
|
|
WORD Lpt1Addr; /* 08: LPT1 I/O address */
|
|
|
|
WORD Lpt2Addr; /* 0a: LPT2 I/O address */
|
|
|
|
WORD Lpt3Addr; /* 0c: LPT3 I/O address */
|
|
|
|
WORD Lpt4Addr; /* 0e: LPT4 I/O address */
|
|
|
|
WORD InstalledHardware; /* 10: Installed hardware flags */
|
|
|
|
BYTE POSTstatus; /* 12: Power-On Self Test status */
|
|
|
|
WORD MemSize WINE_PACKED; /* 13: Base memory size in Kb */
|
|
|
|
WORD unused1 WINE_PACKED; /* 15: Manufacturing test scratch pad */
|
|
|
|
BYTE KbdFlags1; /* 17: Keyboard flags 1 */
|
|
|
|
BYTE KbdFlags2; /* 18: Keyboard flags 2 */
|
|
|
|
BYTE unused2; /* 19: Keyboard driver workspace */
|
|
|
|
WORD NextKbdCharPtr; /* 1a: Next character in kbd buffer */
|
|
|
|
WORD FirstKbdCharPtr; /* 1c: First character in kbd buffer */
|
|
|
|
WORD KbdBuffer[16]; /* 1e: Keyboard buffer */
|
|
|
|
BYTE DisketteStatus1; /* 3e: Diskette recalibrate status */
|
|
|
|
BYTE DisketteStatus2; /* 3f: Diskette motor status */
|
|
|
|
BYTE DisketteStatus3; /* 40: Diskette motor timeout */
|
|
|
|
BYTE DisketteStatus4; /* 41: Diskette last operation status */
|
|
|
|
BYTE DiskStatus[7]; /* 42: Disk status/command bytes */
|
|
|
|
BYTE VideoMode; /* 49: Video mode */
|
|
|
|
WORD VideoColumns; /* 4a: Number of columns */
|
|
|
|
WORD VideoPageSize; /* 4c: Video page size in bytes */
|
|
|
|
WORD VideoPageStartAddr; /* 4e: Video page start address */
|
2002-07-01 20:13:52 +02:00
|
|
|
BYTE VideoCursorPos[16]; /* 50: Cursor position for 8 pages, column/row order */
|
1999-03-13 19:00:52 +01:00
|
|
|
WORD VideoCursorType; /* 60: Video cursor type */
|
|
|
|
BYTE VideoCurPage; /* 62: Video current page */
|
|
|
|
WORD VideoCtrlAddr WINE_PACKED; /* 63: Video controller address */
|
|
|
|
BYTE VideoReg1; /* 65: Video mode select register */
|
|
|
|
BYTE VideoReg2; /* 66: Video CGA palette register */
|
|
|
|
DWORD ResetEntry WINE_PACKED; /* 67: Warm reset entry point */
|
|
|
|
BYTE LastIRQ; /* 6b: Last unexpected interrupt */
|
|
|
|
DWORD Ticks; /* 6c: Ticks since midnight */
|
|
|
|
BYTE TicksOverflow; /* 70: Timer overflow if past midnight */
|
|
|
|
BYTE CtrlBreakFlag; /* 71: Ctrl-Break flag */
|
|
|
|
WORD ResetFlag; /* 72: POST Reset flag */
|
|
|
|
BYTE DiskOpStatus; /* 74: Last hard-disk operation status */
|
|
|
|
BYTE NbHardDisks; /* 75: Number of hard disks */
|
|
|
|
BYTE DiskCtrlByte; /* 76: Disk control byte */
|
|
|
|
BYTE DiskIOPort; /* 77: Disk I/O port offset */
|
|
|
|
BYTE LptTimeout[4]; /* 78: Timeouts for parallel ports */
|
|
|
|
BYTE ComTimeout[4]; /* 7c: Timeouts for serial ports */
|
|
|
|
WORD KbdBufferStart; /* 80: Keyboard buffer start */
|
|
|
|
WORD KbdBufferEnd; /* 82: Keyboard buffer end */
|
|
|
|
BYTE RowsOnScreenMinus1; /* 84: EGA only */
|
|
|
|
WORD BytesPerChar WINE_PACKED; /* 85: EGA only */
|
|
|
|
BYTE ModeOptions; /* 87: EGA only */
|
|
|
|
BYTE FeatureBitsSwitches; /* 88: EGA only */
|
|
|
|
BYTE VGASettings; /* 89: VGA misc settings */
|
|
|
|
BYTE DisplayCombination; /* 8A: VGA display combinations */
|
|
|
|
BYTE DiskDataRate; /* 8B: Last disk data rate selected */
|
|
|
|
} BIOSDATA;
|
|
|
|
|
2003-08-28 23:43:34 +02:00
|
|
|
#include <poppack.h>
|
2002-05-29 00:44:53 +02:00
|
|
|
|
2000-10-15 02:37:50 +02:00
|
|
|
extern WORD DOSMEM_0000H;
|
2000-09-27 00:20:14 +02:00
|
|
|
extern WORD DOSMEM_BiosDataSeg;
|
|
|
|
extern WORD DOSMEM_BiosSysSeg;
|
Release 950901
Thu Aug 31 17:19:57 1995 Alexandre Julliard <julliard@sunsite.unc.edu>
* [Configure]
Added compile-time option for IPC.
* [configure.in]
Added command-line options for language, IPC and malloc
debugging.
* [controls/menu.c]
WM_MENUSELECT was sometimes sent to the wrong window.
* [debugger/break.c]
For the 'next' command, only step over instruction that require
it. This allows 'next' to do the right thing with jmp and ret
instructions.
* [ipc/*.c] [memory/atom.c] [memory/global.c]
IPC can now be configured out at compile-time.
* [loader/task.c]
Bug fix in TASK_Reschedule() that could cause a task to be deleted
twice.
* [miscemu/dosmem.c] (New file)
Partial emulation of the BIOS data segment.
* [miscemu/instr.c]
Trap attempts to access selector 0x40 and remap the access to
segment __0040H.
* [tools/build.c]
Fixed bug in CallTo32_LargeStack() that caused problems when
compiling Wine with the -fomit-frame-pointer option.
* [windows/message.c]
Fixed bug in hardware event handling that could cause some events
to get ignored.
Sat Aug 26 13:12:59 IST 1995 Michael Veksler <mveksler@vnet.ibm.com>
* [ipc/README] [ipc/dde.tex]
LaTeX documentation for the ipc and DDE stuff.
Wed Aug 23 22:01:23 GMT 1995 Michael Veksler <mveksler@vnet.ibm.com>
* [ipc/Imakefile] [ipc/wine_test_stub.c]
Fixed IPC testing. Now it can be compiled with "make tests"
Wed Aug 23 21:04:14 1995 Fons Botman <botman@wab-tis.rabobank.nl>
* [if1632/kernel.spec] [include/windows.h] [misc/main.c]
Added GetWinDebugInfo/SetWinDebugInfo stub for player.exe
Sun Aug 20 13:49:42 1995 Marcus Meissner <msmeissn@faui01.informatik.uni-erlangen.de>
* [miscemu/int21.c]
Misc fix to int21,ah=40 (write) to match _lwrite().
AX=0x440A (check if handle is remote) added.
* [multimedia/mmsystem.c]
Moved mciSendString to mcistring.c.
* [multimedia/mcistring.c]
New file, string interface for MCI (not complete, not thoroughly
tested).
* [multimedia/audio.c]
IOCTL prints errors; one paranoid check disabled.
* [misc/file.c]
Misc operator precedence fixes.
* [if1632/gdi.spec] [objects/bitblt.c]
Stub for FastWindowFrame (parameters not correct).
Sat Aug 19 01:31:23 1995 Graham Menhennitt <gfm@werple.mira.net.au>
* [loader/ne_image.c]
Preliminary support for iterated segments.
Sat Aug 19 00:43:04 1995 Andrew Taylor (andrew@riscan.com)
* [windows/mapping.c]
In function MAPPING_FixIsotropic(), VportExt[XY] is multiplied by
the absolute value of (ydim / xdim) or (xdim / ydim).
Thu Aug 15 23:00:16 Gregory Trubetskoy <grisha@mira.com>
* [objects/oembitmap.c]
Added some includes for Windows 95.
* [include/sysmetrics.h]
Added some sysmetrics for Windows 95.
* [include/bitmaps/*95]
New files: obm_close_95, obm_closed_95, obm_reduce_95, obm_reduced_95
obm_zoom_95, obm_zoomd_95 - these are some pixmaps for Windows 95.
Thu Aug 10 12:00:00 1995 Jan Willamowius (jan@janhh.shnet.org)
* [misc/shell.c] [rc/sysres*.rc]
The caption of the ShellAbout dialog box is language specific and
should be defined in the resources.
1995-09-01 17:57:28 +02:00
|
|
|
|
2002-11-27 21:18:50 +01:00
|
|
|
/* msdos/dosmem.c */
|
2000-07-30 15:32:10 +02:00
|
|
|
extern BOOL DOSMEM_Init(BOOL);
|
1998-12-10 11:47:26 +01:00
|
|
|
extern void DOSMEM_Tick(WORD timer);
|
1997-02-15 15:29:56 +01:00
|
|
|
extern WORD DOSMEM_AllocSelector(WORD);
|
2000-09-27 00:20:14 +02:00
|
|
|
extern LPVOID DOSMEM_GetBlock(UINT size, WORD* p);
|
2000-07-29 00:23:59 +02:00
|
|
|
extern BOOL DOSMEM_FreeBlock(void* ptr);
|
2003-02-19 23:11:04 +01:00
|
|
|
extern UINT DOSMEM_ResizeBlock(void* ptr, UINT size, BOOL exact);
|
2000-07-29 00:23:59 +02:00
|
|
|
extern UINT DOSMEM_Available(void);
|
1997-02-15 15:29:56 +01:00
|
|
|
extern LPVOID DOSMEM_MapRealToLinear(DWORD); /* real-mode to linear */
|
1999-02-26 12:11:13 +01:00
|
|
|
extern LPVOID DOSMEM_MapDosToLinear(UINT); /* linear DOS to Wine */
|
|
|
|
extern UINT DOSMEM_MapLinearToDos(LPVOID); /* linear Wine to DOS */
|
1997-02-15 15:29:56 +01:00
|
|
|
|
1994-12-10 14:02:28 +01:00
|
|
|
#endif /* __WINE_MISCEMU_H */
|