home *** CD-ROM | disk | FTP | other *** search
- .MODEL SMALL
- .DATA
- ASSUME CS:DGROUP, DS:DGROUP, SS:DGROUP
- PUBLIC _EXT
- _EXT PROC
- ;
- ; Dummy boot record for extended DOS partition
- ;
- ; MBR loads this boot record at 0000:7C00h
- ;
- jmp entry
- ;
- MSG EQU (M1-_EXT)
- NL EQU (M2-_EXT)
- ;
- M1: DB 0Dh,0Ah
- DB "Extended DOS partition is not bootable",0Dh,0Ah
- DB "Press any key to reboot... ", 0
- M2: DB 0Dh,0Ah,0
- ;
- ;
- entry:
- mov bl, MSG
- call PRINT
-
- mov ah, 0 ; Get a key
- int 16h
-
- mov bl, NL
- call PRINT
-
- int 19h ; Reboot
-
- _EXT ENDP
- ;
- ; PRINT
- ;
- PRINT PROC
- push ax
- mov ah, 0Eh
- mov bh, 00h
- lea si, [bx+7C00h]
- P1:
- lodsb
- or al, al
- jz P2
- int 10h
- jmp P1
- P2:
- pop ax
- ret
- PRINT ENDP
-
- GAP PROC
- GAPLEN EQU (1FEh-(GAP-_EXT))
- DB GAPLEN DUP(0)
- GAP ENDP
-
- DB 055h, 0AAh
- END
-