home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / 4 / fig4_16.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  605 b   |  21 lines

  1. CSEG    SEGMENT BYTE PUBLIC 'CODE'      ;establish segment order
  2. CSEG    ENDS
  3. DSEG    SEGMENT BYTE PUBLIC 'DATA'
  4. DSEG    ENDS
  5. COMGRP  GROUP   CSEG,DSEG               ;establish joint address base
  6. DSEG    SEGMENT
  7. ;Place your data fields here.
  8. DSEG    ENDS
  9. CSEG    SEGMENT
  10.  
  11.         ASSUME  CS:COMGRP,DS:COMGRP,ES:COMGRP,SS:COMGRP
  12.         ORG     0100H
  13.  
  14. BEGIN:
  15. ;Place your program text here.  Remember to use
  16. ;OFFSET COMGRP:LABEL whenever you use OFFSET.
  17.         MOV     AX,4C00H                ;terminate (MS-DOS 2.0 or later only)
  18.         INT     21H
  19. CSEG    ENDS
  20.         END     BEGIN
  21.