2019-01-07 01:23:56 +00:00
|
|
|
# path - CMD executable path command for ProDOS
|
2019-01-07 00:44:54 +00:00
|
|
|
|
|
|
|
Build with [ca65](https://cc65.github.io/doc/ca65.html)
|
|
|
|
|
|
|
|
Installation:
|
|
|
|
* Copy target to ProDOS disk
|
2019-01-07 01:23:56 +00:00
|
|
|
* From BASIC.SYSTEM prompt, run: `-PATH` from STARTUP (or by hand)
|
2019-01-07 00:44:54 +00:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
```
|
2019-01-07 01:23:56 +00:00
|
|
|
PATH - view current search path
|
|
|
|
PATH prefix - set search path
|
2019-01-07 00:44:54 +00:00
|
|
|
```
|
|
|
|
|
2019-01-08 07:11:00 +00:00
|
|
|
Once set, binary files of type `CMD` in the specified directory can be invoked by name.
|
|
|
|
* CMD file is loaded at $4000 and invoked; should return (`rts`) on completion
|
|
|
|
* The command line will be present at $200 (`GETLN` input buffer).
|
2019-01-07 01:23:56 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
```
|
|
|
|
] -/hd/path - install it
|
|
|
|
] PATH /hd/cmds - set PATH
|
|
|
|
] PATH - verify path
|
|
|
|
/hd/cmds
|
|
|
|
] BELL - will invoke /hd/cmds/BELL if present
|
2019-01-08 07:11:00 +00:00
|
|
|
] HELLO - will invoke /hd/cmds/HELLO if present
|
2019-01-07 01:23:56 +00:00
|
|
|
```
|
2019-01-07 00:44:54 +00:00
|
|
|
|
|
|
|
Notes:
|
2019-01-08 16:08:54 +00:00
|
|
|
* Allocates a buffer to store the code and path
|
2019-01-07 01:23:56 +00:00
|
|
|
* Can be invoked as lower case (e.g. `path ...`)
|
2019-01-08 07:11:00 +00:00
|
|
|
* Applesoft BASIC commands are unaffected (but can't be CMD names)
|
2019-01-08 16:08:54 +00:00
|
|
|
|
|
|
|
Future:
|
|
|
|
* Support multi-segment paths (e.g. `/hd/cmds:/hd2/more.cmds`)
|