merged Shadow President and Bio Menace into one hack
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2310
This commit is contained in:
parent
3f0ac17ceb
commit
933642091d
1 changed files with 2 additions and 4 deletions
|
@ -362,18 +362,16 @@ void DOS_SetupMemory(void) {
|
|||
* buggy games, which compare against the interrupt table. (probably a
|
||||
* broken linked list implementation) */
|
||||
// BioMenace (segment of int2<0x8000)
|
||||
mem_writeb((DOS_MEM_START+1)<<4,0xcf);// iret
|
||||
RealSetVec(0x02,(DOS_MEM_START+1)<<16);
|
||||
callbackhandler.Allocate(&DOS_default_handler,"DOS default int");
|
||||
//Shadow president wants int 4 to point to this.
|
||||
real_writeb(0x70,0,(Bit8u)0xFE); //GRP 4
|
||||
real_writeb(0x70,1,(Bit8u)0x38); //Extra Callback instruction
|
||||
real_writew(0x70,2,callbackhandler.Get_callback()); //The immediate word
|
||||
real_writeb(0x70,4,(Bit8u)0xCF); //An IRET Instruction
|
||||
real_writed(0,0x04*4,0x700000);
|
||||
//claim some more ints to this location
|
||||
real_writed(0,0x01*4,0x700000);
|
||||
real_writed(0,0x02*4,0x700000); //BioMenace
|
||||
real_writed(0,0x03*4,0x700000);
|
||||
real_writed(0,0x04*4,0x700000); //Shadow President
|
||||
// real_writed(0,0x0f*4,0x700000); //Always a tricky one (soundblaster irq)
|
||||
|
||||
DOS_MCB mcb((Bit16u)DOS_MEM_START+2);
|
||||
|
|
Loading…
Add table
Reference in a new issue