!lm10
!rm76
Correction to "Assembly Source on Text Files"

Volume 1, Issue 2 of Apple Assembly Line contained a program for writing assembly source programs for the S-C Assembler II Version 4.0 on DOS text files.  Peter Bartlett of Chicago was trying to use it with a Corvus Hard Disk, and found a problem with the program.

The Corvus system will not accept a CLOSE command unless there is a file name on it (unlike regular DOS).  One solution is to delete the two calls to CLOSE.FILE at lines 1410 and 1570.

While talking with Peter I discovered a bug in my program, in the subroutine named ISSUE.DOS.COMMAND.  It is supposed to allow slot and drive parameters on the file name.  This was described in the write-up on page 11.  Two errors made it not work.

First, line 1910 says:
     1910        CMP #',      COMMA?
but the character in the A-register has the high bit set to one.  Cvhange line 1910 to:
     1910        CMP #$AC     COMMA?

Second, line 1940 says:
     1940        STA DOS.BUFFER,Y
Change it to:
     1940        STA DOS.BUFFER-1,Y

The line numbers above correspond to the printed listing in the AAL article.  They may not be exactly the same as the source code on Quarterly Disk #1.  If you have Quarterly Disk #1 with a serial number of 45 or higher, your copy is already fixed.
