home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / novados / nvdshbug.fix < prev    next >
Encoding:
Text File  |  1993-06-08  |  1.4 KB  |  39 lines

  1. NovaDOS Function 6 bug and fix
  2.  
  3. Novados Release H has a minor bug in fn 6 when obtaining direct console 
  4. input.  The NovaDOS console status does a one character lookahead to check 
  5. for ^S/^C during extended console output.  This character should be detected 
  6. by the next console status call (either internal or external) and returned 
  7. by the next call for character input.  While fns 1 and 10 work quite 
  8. correctly in this regard, fn 6 bypasses the buffered character, leaving it 
  9. stored until flushed by either fn 1 or 10.  This problem surfaced with Rob 
  10. Friefeld's excellent LSH command line editor which uses fn 6 for command 
  11. line input.  Characters typed during program loads or command processor 
  12. operation were reappearing in mysterious places other than on the LSH 
  13. command line!
  14.  
  15. The fix, in NVDS-1.Z80, is easy, and involves no increase in code size. At 
  16. the label dcio:, the corrected code should read as follows:
  17.  
  18. ;
  19. ;
  20. ; Corrected code:            Corrected from:
  21. ;
  22. dcio:    inc    e
  23.     jr    z,dcio0
  24.     inc    e
  25.     jp    nz,conout
  26.     call    const
  27.     jr    exit
  28. dcio0:    call    gconst             ; call const
  29.     or    a
  30.     ret    z
  31.     call    getch            ; call conin
  32.     jr    exit
  33.  
  34. A copy of the corrected code module is on Z-node 77, (512) 444-8691.  
  35. Please leave comments or bug reports for me on the RBBS section.
  36.    
  37.                                      Lindsay Haisley
  38.  
  39.