home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 364b.lha / PCQ_v1.1 / Runtime / Writers / writeln.asm < prev    next >
Encoding:
Assembly Source File  |  1990-04-08  |  441 b   |  29 lines

  1.  
  2. *    WriteLn.asm (of PCQ Pascal runtime library)
  3. *    Copyright (c) 1989 Patrick Quaid
  4.  
  5. *    Just write a line feed to a text file.
  6.  
  7. *    On Entry, the top of the stack holds the file rec address
  8.  
  9.     XREF    _p%WriteText
  10.     XREF    _p%IOResult
  11.  
  12.     SECTION    ONE
  13.  
  14.     XDEF    _p%WriteLn
  15. _p%WriteLn
  16.  
  17.     tst.l    _p%IOResult    ; just to be sure....
  18.     bne.s    1$
  19.     move.l    4(sp),a0
  20.     lea    eoln,a1
  21.     moveq.l    #1,d3        ; set up for call
  22.     jsr    _p%WriteText    ; write it
  23. 1$    rts
  24.  
  25. eoln    dc.b    10,0
  26.  
  27.     END
  28.  
  29.