home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / ASM / STRTUP10.ZIP / STARTUP.ZIP / STARTUP / SUDATA.ASM < prev    next >
Encoding:
Assembly Source File  |  1997-02-28  |  2.6 KB  |  112 lines

  1.     page 60, 132
  2.     title    START_UP DATA - Common Data for Startup Procedures
  3.     name    SUDATA
  4. comment ÷
  5.     START_UP DATA                        V1.00
  6. ==========================================================================
  7. NAME
  8.     START_UP DATA
  9.  
  10. SYNOPSIS
  11.     None
  12.  
  13. DESCRIPTION
  14.     This code contains the common data for the startup procedure.
  15.     These are
  16.         DGRP         - Value of DGROUP
  17.         ENVIRON      - Segment address of ENVIRON
  18.         NEXTPARA     - Segment address of next memory paragraph
  19.         OSMAJOR      - Integer part of OS system
  20.         OSMINOR      - Decimal part of OS system
  21.         PSP         - Segment address of PSP
  22.         STACK_BOTTOM - Offset to stack bottom in DGROUP
  23.  
  24. CAUTION
  25.     None
  26.  
  27. RETURNS
  28.     NA
  29.  
  30. PROGRAMMING NOTES
  31.     This module is assembled and stored in the alib? libraries so that
  32.     storage for the common startup variables will be linked into the
  33.     program by the linker.
  34.  
  35.     Assembled with Microsoft MASM V6.11d
  36.  
  37.     There is no memory model dependent code.
  38.  
  39. REGISTER USAGE
  40.     None
  41.  
  42. MEMORY UTILIZATION
  43.     12 bytes for all memory models
  44.  
  45. EXTERNAL LIBRARIES
  46.     None
  47.     
  48. EXTERNAL PROCEDURES
  49.     None
  50.  
  51. INTERUPTS CALLED
  52.     None
  53.  
  54. GLOBAL NAMES
  55.     Following data is global
  56.         DGRP         - Value of DGROUP
  57.         STACK_BOTTOM - Offset to stack bottom in DGROUP
  58.         PSP         - Segment address of PSP
  59.         ENVIRON      - Segment address of ENVIRON
  60.         NEXTPARA     - Segment address of next memory paragraph
  61.         OSMAJOR      - Integer part of OS system
  62.         OSMINOR      - Decimal part of OS system
  63.  
  64. AUTHOR
  65.     Raymond Moon - 17 Dec 95
  66.  
  67.     Copyright (c) 1995 - Raymond Moon
  68.     ALL RIGHTS RESERVED
  69.  
  70. HISTORY
  71.     Version    - Date        - Remarks
  72.     1.00    - 17 Dec 95    - Orginal
  73.  
  74. ==========================================================================
  75.     ÷    End of Comment
  76.  
  77. ;----------------------------
  78. ;    Make the small memory model the default.
  79.  
  80. ifndef    memmod
  81. memmod    equ    <small>
  82. endif
  83.  
  84. ;----------------------------
  85. ;    Specify processor, memory model, language and ES register assume. 
  86.  
  87.     include procesor.inc            ; Specify target processor
  88. %    .model memmod, fortran
  89.     assume es:DGROUP
  90.  
  91. ;----------------------------
  92. ;    Include Files
  93.  
  94.     include startup.inc
  95.  
  96. ;=========================================================================
  97. ;    DATA
  98. ;=========================================================================
  99.  
  100.     .DATA?
  101.  
  102. DGRP        dw    ?    ; Value of DGROUP
  103. ENVIRON     dw    ?    ; Segment address of ENVIRON
  104. NEXTPARA    dw    ?    ; Segment address of next memory address
  105. OSMAJOR     db    ?    ; Integer part of OS system
  106. OSMINOR     db    ?    ; Decimal part of OS system
  107. PSP        dw    ?    ; Segment address of PSP
  108. STACK_BOTTOM    dw    ?    ; Offset to stack bottom in DGROUP
  109.  
  110. @CurSeg ends
  111.     end
  112.