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 / CCP / CCPPATCH.ASM < prev    next >
Assembly Source File  |  2000-06-30  |  839b  |  24 lines

  1. ; This patch causes the CCP of a cp/m 2.x system to look on drive A
  2. ; when you are logged into a drive other than A and call for a .COM
  3. ; file that does not exist on that drive.  Giving an explicit drive
  4. ; reference overrides this feature, so that you can always force
  5. ; the file to be loaded from a specific drive.
  6. ;
  7. msize    equ    60        ; set this to your nominal system size
  8. ;
  9. cpmb    equ    (msize-20)*1024+3400h    ; start of CCP in given sys size
  10. ;
  11.     org    cpmb+6dbh
  12.     jz    patch        ; replaces "jz cpmb+76bh"
  13. ;
  14.     org    cpmb+7f2h    ; replaces an unused area of NOP's
  15. patch:
  16.     lxi    h,cpmb+7f0h    ; get drive from current command
  17.     ora    m        ; accum was 0 on entry, so this fetches drive
  18.     jnz    cpmb+76bh    ; command has explicit drive...give error
  19.     inr    m        ; force explicit reference to drive A
  20.     lxi    d,cpmb+7d6h    ; we need de set up when we
  21.     jmp    cpmb+6cdh    ; re-enter ccp
  22. ;
  23.     end
  24.