fixed big in psp, wrong mem_size
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@287
This commit is contained in:
parent
2f16cccfee
commit
bc4b24a8bb
1 changed files with 1 additions and 4 deletions
|
@ -199,8 +199,7 @@ void DOS_PSP::MakeNew(Bit16u mem_size)
|
|||
/* Clear it first */
|
||||
for (Bitu i=0;i<sizeof(sPSP);i++) mem_writeb(pt+i,0);
|
||||
// Set size
|
||||
// SaveIt(((sPSP*)Phys2Host(pt))->next_seg,0,mem_size);
|
||||
sSave(sPSP,next_seg,seg+mem_size);
|
||||
sSave(sPSP,next_seg,mem_size);
|
||||
/* far call opcode */
|
||||
sSave(sPSP,far_call,0xea);
|
||||
// sSave(sPSP,cmp_entry
|
||||
|
@ -215,8 +214,6 @@ void DOS_PSP::MakeNew(Bit16u mem_size)
|
|||
sSave(sPSP,prev_psp,RealMake(dos.psp,0));
|
||||
/* terminate 22,break 23,crititcal error 24 address stored */
|
||||
SaveVectors();
|
||||
/* Memory size */
|
||||
sSave(sPSP,next_seg,seg+mem_size);
|
||||
/* Process DTA */
|
||||
sSave(sPSP,dta,RealMake(seg,128));
|
||||
/* FCBs are filled with 0 */
|
||||
|
|
Loading…
Add table
Reference in a new issue