home *** CD-ROM | disk | FTP | other *** search
/ Transactor / Transactor_27_1988_Transactor_Publishing.d64 / shellram.sda / SHELLCENV.A < prev    next >
Text File  |  2023-02-26  |  1KB  |  58 lines

  1. ;
  2. ; shellram
  3. ;
  4. ;  By: Adrian Pepper
  5. ;      Toronto, Ontario
  6. ;
  7. ;  based on, but heavily modified from
  8. ;  the Pro-Line/Spinnaker
  9. ;    C POWER/POWER C shell for the
  10. ;  Commodore 64 home computer.
  11. ;
  12. ;  The shell was modified to reduce
  13. ;  the size of the code, and arrange
  14. ;  things so memory page 22 (hex $16)
  15. ;  will be free for use as a "RAMdisk
  16. ;  Interface Page", for use with the
  17. ;  Commodore 1764 256K RAM expander
  18. ;  for the Commodore 64
  19. ;
  20. ;  This (basically) allows all programs
  21. ;  designed to run under the shell to
  22. ;  operate with the RAM disk
  23. ;
  24. ;
  25. ; shellcenv.a
  26. ;
  27. ;   This is the definitions of locations
  28. ;  in the POWER C Shell which are referenced
  29. ;  from within C programs.  It is important
  30. ;  that these be set up for C programs
  31. ;  to work properly.
  32. ;
  33.  .def usrprog  ; start of C program
  34.  .def fstatbl  ; table of file i/o statuses
  35.  .def cgetcnt  ; needed by c$getchar
  36.  .def cgetlim  ;  ...
  37.  .def sysdev   ; device number of system disk
  38.  .def sysdrv   ; device number of system drive
  39.  .def wrkdev   ; device number of work disk
  40.  .def wrkdrv   ; device number of work drive
  41.  .def stdinfl  ; flag indicating stdin redirected
  42.  .def stdoufl  ; flag indicating stdout redirected
  43.  .def argstk   ; where C function args go (as for main())
  44. ;
  45. usrprog=$1800
  46. fstatbl=$17e7
  47. cgetcnt=$17f7
  48. cgetlim=$17f8
  49. sysdev=usrprog-6
  50. sysdrv=usrprog-5
  51. wrkdev=usrprog-4
  52. wrkdrv=usrprog-3
  53. stdinfl=usrprog-2
  54. stdoufl=usrprog-1
  55. ;
  56. argstk=$033c  ;; ie cassette buffer
  57. ;
  58.