home *** CD-ROM | disk | FTP | other *** search
/ PC Open 19 / pcopen19.iso / Zipped / PART231.ZIP / SOURCES.ZIP / EXT.ASM < prev    next >
Encoding:
Assembly Source File  |  1998-01-12  |  791 b   |  61 lines

  1. .MODEL    SMALL
  2. .DATA
  3.     ASSUME    CS:DGROUP, DS:DGROUP, SS:DGROUP
  4.     PUBLIC    _EXT
  5. _EXT    PROC
  6.     ;
  7.     ;  Dummy boot record for extended DOS partition
  8.     ;
  9.     ;  MBR loads this boot record at 0000:7C00h
  10.     ;
  11.     jmp    entry
  12.     ;
  13. MSG    EQU    (M1-_EXT)
  14. NL    EQU    (M2-_EXT)
  15.     ;
  16. M1:    DB 0Dh,0Ah
  17.     DB "Extended DOS partition is not bootable",0Dh,0Ah
  18.     DB "Press any key to reboot... ", 0
  19. M2:    DB 0Dh,0Ah,0
  20.     ;
  21.     ;
  22. entry:
  23.     mov    bl, MSG
  24.     call    PRINT
  25.  
  26.     mov    ah, 0    ;  Get a key
  27.     int    16h
  28.  
  29.     mov    bl, NL
  30.     call    PRINT
  31.  
  32.     int    19h    ;  Reboot 
  33.  
  34. _EXT    ENDP
  35.     ;
  36.     ;  PRINT
  37.     ;
  38. PRINT    PROC
  39.     push    ax
  40.     mov    ah, 0Eh
  41.     mov    bh, 00h
  42.     lea    si, [bx+7C00h]
  43. P1:
  44.     lodsb
  45.     or    al, al
  46.     jz    P2
  47.     int    10h
  48.     jmp    P1
  49. P2:
  50.     pop    ax
  51.     ret
  52. PRINT    ENDP
  53.  
  54. GAP    PROC
  55. GAPLEN    EQU    (1FEh-(GAP-_EXT))
  56.     DB    GAPLEN DUP(0)    
  57. GAP    ENDP
  58.  
  59.     DB    055h, 0AAh
  60. END
  61.