home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
das_buch
/
tsr
/
nocbrk2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-06-04
|
508b
|
22 lines
PROGRAM NoCBrk2;
BEGIN
ASM
MOV AX,[PrefixSeg] {PSP seg}
MOV ES,AX
MOV AX,ES:[2CH] {environment seg}
MOV ES,AX
MOV BYTE Ptr ES:[0],$CF {iret}
MOV AH,$4A {shrink block ES to...}
MOV BX,1 {...1 paragraph}
Int $21
MOV AX,ES {environment seg}
MOV BX,AX
Dec AX
MOV ES,AX {MCB of environment}
MOV WORD Ptr ES:[1],BX
MOV WORD Ptr [SaveInt1B],0
MOV WORD Ptr [SaveInt1B+2],BX
END;
END.