This is PROLOG.NSM, one of the bookend code modules for assembling the results of compiling C86NC5C.C into NASM assembler source, and thence into an executable. This is the leading bookend code matched to EPILOG.NSM, the trailing bookend code. Both of these are to be tailored to the main C module, to support it. See EPILOG.NSM for further comments.


;;========================================================60
;; File: PROLOG  .NSM  By: s_dubrovich@yahoo.com
;; Last: 01-Feb-10 09:40:01 PM
;; Prev: 10-Jan-10 10:11:21 PM
;; Init: 10-Jan-10 10:11:21 PM
;; Vers: 0.0.3
;; Note: Prolog to small-c ver 10-Jan-10
;;
;;========================================================60
;; --== Define COM Code Section ==--
;;========================================================60
  [MAP ALL CURRFILE.MAP]
  [SECTION .cseg vstart=0100h]
Start:
  mov  sp, Stk_Top ;; 0FFF0h  ;; at top of segment
  call czmain  ;; small-c v. 10-Jan-10, start label.

  mov  ah, 0
  int  16h   ;; pause for keypress
  int  19h   ;; reboot

;;========================================================60
;; --== Define Data Section as following Code Section ==--
;; -= F I R S T   D A T A =-
;;========================================================60
  [SECTION .dseg vstart=(0100h + EOcseg)] ;; first .dseg
SN_CTRL:  DB  0,0,0,0,0,0,0,0  ;; - S/N, or Control Number -

;;========================================================60
;; - =   E O   P R O L O G   = -
;;========================================================60

6:50 PM 2/6/2010