home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / CRYS250.ZIP / C0MULTI.ASM next >
Encoding:
Assembly Source File  |  1994-11-01  |  623 b   |  37 lines

  1. ;***************************************************************************
  2. ;*    Ce fichier contient le code de démarrage pour faire un fichier
  3. ;*    executable contenant plusieur segment séparé
  4. ;*
  5. ;* Programmé par Sébastien Granjoux
  6. ;* Commencé le ??/??/94
  7. ;* Modification le 1/11/94
  8.  
  9. DOSSEG
  10. IDEAL
  11.  
  12. P386N
  13. MODEL    SMALL
  14. EXTRN    main:near
  15.  
  16. CODESEG
  17.  
  18.     mov    bx,ss
  19.     mov    ax,es
  20.     sub    bx,ax
  21.     mov    ax,sp
  22.     add    ax,15
  23.     shr    ax,4
  24.     add    bx,ax
  25.  
  26.     mov    ah,4ah    ; rend la mémoire inutilisé
  27.     int    21h
  28.  
  29.     mov    ax,_DATA
  30.     mov    ds,ax
  31.  
  32.     call    main          ; le programme peut renvoyer un code d'erreur dans AL
  33.  
  34.     mov    ah,4Ch
  35.     int    21h
  36.  
  37. END