PATH command for Apple II ProDOS
Go to file
Joshua Bell 737b944c06 Don't require CLC, fix BELL, handle spaces in ECHO 2019-01-09 16:09:58 -08:00
.gitignore wip 2019-01-07 19:36:25 -08:00
Makefile Use BI's buffers. Add ECHO, that shows INBUF problem 2019-01-08 18:36:52 -08:00
README.md tweak readme 2019-01-09 09:18:40 -08:00
bell.cmd.s Don't require CLC, fix BELL, handle spaces in ECHO 2019-01-09 16:09:58 -08:00
echo.cmd.s Don't require CLC, fix BELL, handle spaces in ECHO 2019-01-09 16:09:58 -08:00
hello.cmd.s Don't require CLC, fix BELL, handle spaces in ECHO 2019-01-09 16:09:58 -08:00
path.s Don't require CLC, fix BELL, handle spaces in ECHO 2019-01-09 16:09:58 -08:00
prodos.inc Use BI's buffers. Add ECHO, that shows INBUF problem 2019-01-08 18:36:52 -08:00

README.md

path - CMD executable path command for ProDOS's BASIC.SYSTEM

Build with ca65

Installation:

  • Copy target to ProDOS disk
  • From BASIC.SYSTEM prompt, run: -PATH from STARTUP (or by hand)

Usage:

PATH            - view current search path
PATH prefix     - set search path

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 with carry clear completion
  • The command line will be present at $200 (GETLN input buffer).

Example:

] -/hd/path              - install it
] PATH /hd/cmds          - set PATH
] PATH                   - verify path
/hd/cmds
] BELL                   - will invoke /hd/cmds/BELL if present
] HELLO                  - will invoke /hd/cmds/HELLO if present

Notes:

  • Allocates a buffer to store the code and path
  • Can be invoked as lower case (e.g. path ...)
  • Applesoft BASIC commands are unaffected (but can't be CMD names)

Future:

  • Support multi-segment paths (e.g. /hd/cmds:/hd2/more.cmds)