mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 17:35:07 +00:00
[NTVDM]
Remove unnecessary indentation and clarify the code a bit. svn path=/branches/ntvdm/; revision=60919
This commit is contained in:
parent
e4946e8b85
commit
7c036fd0f7
|
@ -130,14 +130,13 @@ VOID WINAPI InitializeInt32(WORD BiosSegment)
|
|||
{
|
||||
LPDWORD IntVecTable = (LPDWORD)BaseAddress;
|
||||
LPBYTE BiosCode = (LPBYTE)SEG_OFF_TO_PTR(BiosSegment, 0);
|
||||
|
||||
USHORT i;
|
||||
WORD CommonStub, BopSeqOffset, Offset;
|
||||
|
||||
CommonStub = Offset = 0x00;
|
||||
CommonStub = Offset = 0;
|
||||
|
||||
/* Write the common stub code */
|
||||
{
|
||||
|
||||
// BOP_SEQ:
|
||||
BiosCode[Offset++] = 0xF8; // clc
|
||||
|
||||
|
@ -163,7 +162,6 @@ VOID WINAPI InitializeInt32(WORD BiosSegment)
|
|||
BiosCode[Offset++] = 0x04;
|
||||
|
||||
BiosCode[Offset++] = 0xCF; // iret
|
||||
}
|
||||
|
||||
/* Generate ISR stubs and fill the IVT */
|
||||
for (i = 0x00; i <= 0xFF; i++)
|
||||
|
@ -178,12 +176,11 @@ VOID WINAPI InitializeInt32(WORD BiosSegment)
|
|||
BiosCode[Offset++] = 0x6A; // push 0
|
||||
BiosCode[Offset++] = 0x00;
|
||||
|
||||
BopSeqOffset = CommonStub - Offset - 3;
|
||||
BopSeqOffset = CommonStub - (Offset + 3);
|
||||
|
||||
BiosCode[Offset+0] = 0xE9; // jmp near BOP_SEQ
|
||||
BiosCode[Offset+1] = LOBYTE(BopSeqOffset);
|
||||
BiosCode[Offset+2] = HIBYTE(BopSeqOffset);
|
||||
Offset+=3;
|
||||
BiosCode[Offset++] = 0xE9; // jmp near BOP_SEQ
|
||||
BiosCode[Offset++] = LOBYTE(BopSeqOffset);
|
||||
BiosCode[Offset++] = HIBYTE(BopSeqOffset);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue