home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_27_1988_Transactor_Publishing.d64
/
shellram.sda
/
SHELLCENV.A
< prev
next >
Wrap
Text File
|
2023-02-26
|
1KB
|
58 lines
;
; shellram
;
; By: Adrian Pepper
; Toronto, Ontario
;
; based on, but heavily modified from
; the Pro-Line/Spinnaker
; C POWER/POWER C shell for the
; Commodore 64 home computer.
;
; The shell was modified to reduce
; the size of the code, and arrange
; things so memory page 22 (hex $16)
; will be free for use as a "RAMdisk
; Interface Page", for use with the
; Commodore 1764 256K RAM expander
; for the Commodore 64
;
; This (basically) allows all programs
; designed to run under the shell to
; operate with the RAM disk
;
;
; shellcenv.a
;
; This is the definitions of locations
; in the POWER C Shell which are referenced
; from within C programs. It is important
; that these be set up for C programs
; to work properly.
;
.def usrprog ; start of C program
.def fstatbl ; table of file i/o statuses
.def cgetcnt ; needed by c$getchar
.def cgetlim ; ...
.def sysdev ; device number of system disk
.def sysdrv ; device number of system drive
.def wrkdev ; device number of work disk
.def wrkdrv ; device number of work drive
.def stdinfl ; flag indicating stdin redirected
.def stdoufl ; flag indicating stdout redirected
.def argstk ; where C function args go (as for main())
;
usrprog=$1800
fstatbl=$17e7
cgetcnt=$17f7
cgetlim=$17f8
sysdev=usrprog-6
sysdrv=usrprog-5
wrkdev=usrprog-4
wrkdrv=usrprog-3
stdinfl=usrprog-2
stdoufl=usrprog-1
;
argstk=$033c ;; ie cassette buffer
;