home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / ASM / LCFUNCS.ZIP / SKELETON.LC < prev    next >
Encoding:
Text File  |  1987-03-18  |  782 b   |  33 lines

  1.        page      60,132
  2.        .8087
  3.        include   lattice.mac
  4.        PSEG
  5. _MAIN  proc      near              ; you MUST have a procedure _MAIN !!!
  6.  
  7.        _fopen    fname,imode,fp1   ; Open input file    (console)
  8.        _fopen    fname,omode,fp2   ; Open output file   (console)
  9.        ..
  10.        ..
  11.        ..
  12.        ret
  13.  
  14. _MAIN  endp
  15.  
  16. ; Subroutine section
  17. ;
  18. ;
  19. ;
  20.        ENDPS
  21. ;
  22. ; DATA AREA
  23. ;
  24.        DSEG
  25. fp1    dw        ?                  ; file for input
  26. fp2    dw        ?                  ; file for output
  27.  
  28. fname  db        'CON:',0           ; name of file
  29. imode  db        'r',0              ; mode for read-only
  30. omode  db        'w',0              ; mode for write-only
  31.        ENDDS                       ; End of data segment
  32.        end
  33.