home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / memory / xm / xmos.asm < prev   
Encoding:
Assembly Source File  |  1990-10-09  |  1.1 KB  |  79 lines

  1.         .386
  2.  
  3. thiscodesel    =    18h
  4.         
  5.         include    xmhd.inc
  6.         include    xmmac.mac
  7.         include    xmmsg.def
  8.  
  9. _DATA        segment    para public USE16 'DATA'
  10.         extrn    DosLog:word
  11.         ends
  12.  
  13.  
  14. _TEXT        segment    para public USE16 'CODE'
  15. IF PCAT
  16.         extrn    P8259: near
  17. ENDIF
  18.         extrn    a20_on:near, a20_off:near
  19. _TEXT        ends
  20.  
  21.         
  22.         
  23.         
  24. _DATA        segment    para public USE16 'DATA'
  25.         public    endcode
  26.  
  27. RealGateSP    dw    ?
  28. EndCode        db    0
  29.  
  30. _DATA        ends
  31. ;
  32. ;
  33. _TEXT        segment    para public USE16 'CODE'
  34.         assume    cs:_TEXT, ds:_DATA
  35.         public    OSExit
  36.         
  37. OSExit        proc    near
  38. IF  PCAT
  39.         push    ax
  40.         mov    ah, 08h            ;reloc ints to 8
  41.         call    P8259            ;program 8259
  42.         pop    ax
  43. ENDIF
  44. IF  FMR70        
  45.         call    a20_off
  46. ;        call    cpu_setup16
  47. ENDIF
  48. IF TransPort        
  49.         lea    si, DosLog
  50.         mov    cx, 0h
  51.         cld
  52. .dosout:    
  53.         lodsw
  54.         cmp    ax, 0
  55.         jz    .dosout1
  56.         push    ax
  57.         mov    al, cl
  58.         call    HexALs
  59.         mov    al,':'
  60.         call    putchar
  61.         pop    ax
  62.         call    Hex
  63. .dosout1:
  64.         inc    cx
  65.         cmp    cx, DosFuncMax
  66.         jbe    .dosout
  67.         call    CRLF
  68. ENDIF
  69. IF FMR70
  70.         call    a20_off
  71. ENDIF
  72.         mov    ah, 4ch
  73.         mov    al, EndCode
  74.         int    21h
  75. OSExit        endp
  76.  
  77. _TEXT        ends
  78.         end    
  79.