home *** CD-ROM | disk | FTP | other *** search
- include compiler.inc
-
- ttl ABORT, 1.07, 11-21-86 cr
-
- dseg
- extrn _ftb:byte
-
- m1 db 10, 'ERROR: ',0
- m2 db 10, 'Run Aborted', 10, 0
- cseg
-
- xtfs <fputs, exit>
-
- procdef abort, <<msg, ptr>, <ercd, word>>
-
- lea si,_ftb[10] ;stderr stream ptr
- lea ax,m1 ;leadin
- callit fputs <<si, preg, ds>, <ax, preg, ds>>
- callit fputs <<si, preg, ds>, <msg, ptr>>
- lea ax,m2 ;trailer
- callit fputs <<si, preg, ds>, <ax, preg, ds>>
- callit exit <<ercd,word>>
-
- pend abort
-
- finish
-
- end
-