Category : Assembly Language Source Code
Archive   : ASPIC.ZIP
Filename : ECHO.ASM

 
Output of file : ECHO.ASM contained in archive : ASPIC.ZIP
***************************************************************
* DEMONSTRATION OF ECHO and ERROR *
* sets the error report to go to ECHO.ERR, *
* and prints some text to the screen, and to a file: *
* ECHO.OUT *
***************************************************************
*= $1000
.ERROR {="ECHO.ERR"} ;redirects errors to ECHO.ERR
.ECHO NORMAL ECHO
.ECHO {="ECHO.OUT"}, TO A FILE ;echo redirected to a file
.ECHO "MORE to the console..."
.ECHO " and MORE...",$A
.ECHO {+"ECHO.OUT"},"COMSPEC=",#COMSPEC,$A
.byte 1000 ;warning
2BAD = 2 ;error
XYZZY ;bad mnemonic
.ECHO From now on, output goes to ECHO.OUT
.ECHO {+"ECHO.OUT"} ;redirects all further output
.ECHO This goes to ECHO.OUT
XYZ = 5 ;(ok)
XYZ = 6 ;error (redefined)

.ECHO "And THIS," ;all redirected
.ECHO " (and this),"
.ECHO " AND THIS",$a,$a22
.ECHO {} ;restores output to console

ABC = ..LOOP ;warning (forward reference)
.ECHO "More to the console",$a

.WARN "User warning"
.ERROR "User error"
.FATAL "User defined error" ;this one is fatal.


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASPIC.ZIP
Filename : ECHO.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/