-
Notifications
You must be signed in to change notification settings - Fork 2
/
perversion.h
45 lines (34 loc) · 1.61 KB
/
perversion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#if 0
File name: perversi.h
x86 Emulating Debugger (EDB)
Copyright (C) 1991-1993 Serge Pachkovsky
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 1, 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.
If you need to contact me, feel free to write to [email protected]
or to Serge Pachkovsky, Erligatterweg 61, Zuerich CH 8038, Switzerland
#endif
/*
* start_program sets emulated CPU environment on real CPU.
* !!!! This will never return to caller.
* break_point_interrupt should not be called directly !
*/
void LIBSYM start_program( void ) ;
void LIBSYM break_point_interrupt( void ) ;
WORD LIBSYM huge_write( int handle, void far *mem, WORD cnt ) ;
/*
* break_point will be called then int3 encounters in program.
* It should NOT return to caller. (All real CPU registers will
* be copied to emulator images).
*/
void LIBSYM fill_IDT( DWORD IDT[ 256 ], void (*break_point)( void ) ) ;
void LIBSYM copy_RAM( WORD dest, WORD src, WORD size ) ;
void LIBSYM swap_RAM( BYTE far *a, BYTE far *b, DWORD size ) ;