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 / SUBMIT / JOB15.LBR / DOSPATCH next >
Text File  |  2000-06-30  |  1KB  |  39 lines

  1. A patch for cpm2.2 for submit jobs to execute while changing
  2. user numbers.  This co-operates with CCP+ v2.1 and JOB v1.5.
  3.  
  4. All values are shown for an unrelocated BDOS.  marked bytes
  5. may be different by a constant
  6.  
  7. Location
  8. (from start
  9. of BDOS)    Was    Becomes    Comment
  10. 06DE        3e    7e    mvi a,0e5 --> mov a,m
  11. 06DF        e5    fe
  12. 06E0        be    e5    cmp m       --> cpi 0e5
  13. 06E1        ca
  14. 06E2        d2          jz ...   unchanged
  15. 06E3        06 *
  16. 06E4        3a    18    lda usrno --> jr $+3
  17. 06E5        41    01
  18. 06E6        03 *        (code byte skipped)
  19. 06E7        be    b7    cmp m     --> ora a
  20.         
  21. The WAS items marked by '*' will vary with the location of
  22. the CPM system, and should not be altered.  The patch uses
  23. the Z80 JR instruction, so for Z80 systems only.  This has
  24. been carefully designed to be position independant.
  25.  
  26. When completed, the original CCP will no longer execute
  27. SUBMIT jobs when the user number is non-zero. It would never
  28. allow a submit job to change users, which can now be done
  29. when using CCP+ and JOB15.  (earlier versions of JOB will
  30. work if the job is started on user 0 only.)
  31.  
  32. This causes BDOS to return 0ffh for call 13 (reset disks)
  33. whenever a '$*.*' file exists on user 0.  This flag is
  34. used by CCP+, ZCPR, and the original CCP to decide whether
  35. to bother searching for the $$$.SUB file.  The original
  36. code only returned 0ffh when the file existed on the current
  37. user.
  38.         C.B.F 86/10/15
  39. ╗h