-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 70cda67.
- Loading branch information
Michael Chourdakis
committed
Jan 31, 2019
1 parent
70cda67
commit 01ca763
Showing
10 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ TEST_VMX = 1 | |
RESIDENT = 1 | ||
|
||
|
||
VDEBUG = 0 | ||
VDEBUG = 1 | ||
MDEBUG = 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
FORMAT MZ | ||
HEAP 0 | ||
|
||
|
||
segment DATA16 | ||
USE16 | ||
|
||
|
||
; main | ||
segment CODE16 | ||
USE16 | ||
|
||
error: | ||
|
||
mov ax,0x4C00 | ||
int 0x21 | ||
|
||
modesw dd 0 | ||
|
||
start16: | ||
|
||
; A raw (not DOS32A) DPMI client | ||
xchg bx,bx | ||
mov ax,1687h ; get address of DPMI host's | ||
int 2fh | ||
or ax,ax ; exit if no DPMI host | ||
jnz error | ||
mov word [modesw],di | ||
mov word [modesw+2],es | ||
or si,si ; check private data area size | ||
jz .l1 ; jump if no private data area | ||
|
||
mov bx,si ; allocate DPMI private area | ||
mov ah,48h ; allocate memory | ||
int 21h ; transfer to DOS | ||
jc error ; jump, allocation failed | ||
mov es,ax ; let ES=segment of data area | ||
|
||
.l1: | ||
mov ax,0 ; bit 0=0 indicates 16-bit app | ||
call [modesw] ; switch to protected mode | ||
jc error ; jump if mode switch failed | ||
; else we're in prot. mode now | ||
nop | ||
|
||
mov ax,0x4C00 | ||
int 0x21 | ||
|
||
SEGMENT ENDS | ||
entry CODE16:start16 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters