home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / ZCPR33 / A-R / MOVE21B.BUG < prev    next >
Text File  |  2000-06-30  |  674b  |  22 lines

  1.                     Jan 21  1988
  2. MOVE21B can trash disks.
  3.  
  4. WRFLAG in MOVE21B does not seem to be initialized to zero.
  5. It works fine when loaded from disk as the linker probably put
  6. a zero there.
  7.  
  8. If you run successfully and then try to run it again with a GO
  9. command the WRFLAG is never reset to zero and if the arguments
  10. to the GO command are bad it will not exit after giving help but
  11. will run on and trash the disk.  I have had individual files
  12. distributed over more than one user area.
  13.  
  14. The fix is to put the following two lines somewhere close to the
  15. start of the program,  right before the call to Z3INIT works fine.
  16.  
  17.     xor    a
  18.     ld    (WRFLAG),a
  19.  
  20.  
  21.                           Charlie Irvine
  22.