{"id":48314030,"url":"https://github.com/a2stuff/prodos-path","last_synced_at":"2026-04-05T00:26:54.083Z","repository":{"id":66099422,"uuid":"164586343","full_name":"a2stuff/prodos-path","owner":"a2stuff","description":"PATH command for Apple II ProDOS","archived":false,"fork":false,"pushed_at":"2024-11-08T04:15:39.000Z","size":125,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-08T05:20:27.439Z","etag":null,"topics":["6502","apple-ii","apple2","prodos"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2stuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-08T07:08:13.000Z","updated_at":"2024-11-08T04:15:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"1420e604-8377-463a-ad83-5ab9c0f0feaa","html_url":"https://github.com/a2stuff/prodos-path","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/a2stuff/prodos-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2stuff%2Fprodos-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2stuff%2Fprodos-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2stuff%2Fprodos-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2stuff%2Fprodos-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2stuff","download_url":"https://codeload.github.com/a2stuff/prodos-path/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2stuff%2Fprodos-path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31419782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"ssl_error","status_checked_at":"2026-04-05T00:25:05.923Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["6502","apple-ii","apple2","prodos"],"created_at":"2026-04-05T00:26:53.342Z","updated_at":"2026-04-05T00:26:54.076Z","avatar_url":"https://github.com/a2stuff.png","language":"Assembly","readme":"# CMD executable PATH for ProDOS's BASIC.SYSTEM\n\n[![build](https://github.com/a2stuff/prodos-path/actions/workflows/main.yml/badge.svg)](https://github.com/a2stuff/prodos-path/actions/workflows/main.yml)\n\n💾 Disk images can be found on the [Releases](https://github.com/a2stuff/prodos-path/releases) page 💾\n\nBuild with [ca65](https://cc65.github.io/doc/ca65.html)\n\n## Instructions For Users\n\nInstallation:\n* Copy files from the floppy disk image to your Apple's hard disk, in a subdirectory e.g. `/HD/CMD`\n* From BASIC.SYSTEM prompt, run: `PATH`, e.g. `-/HD/CMD/PATH`, either from `STARTUP` or manually\n\nAfter installation, the usage is:\n```\nPATH prefix     - set search path(s) - colon delimited\nPATH            - view current search path(s)\ncmdname         - load and execute named CMD, if in PATH\n```\n\n* Once set, binary files of type `CMD` in the specified directories can be invoked by name.\n* Supports multi-segment, colon-separated paths, e.g. `/hd/cmds:/hd2/more.cmds`\n\nExample:\n```\n] -/hd/cmd/path          - install it\n] PATH /hd/cmd:/h2/bin   - set search path with two directories\n] PATH                   - verify search path\n/hd/cmd:/h2/bin\n] BELL                   - will invoke /hd/cmd/BELL if present\n] HELLO                  - will invoke /hd/cmd/HELLO if present\n] ONLINE                 - will invoke /hd/cmd/ONLINE if present\n```\n\nNotes:\n* `PATH` can be invoked as lower case (e.g. `path /hd/cmd`)\n* Commands can be invoked as lower case (e.g. `hello`)\n* A relative `PATH` (e.g. `path bin`) only works if an explicit prefix is set.\n  * Note that if no prefix has been set, or if you run `prefix /`, BASIC.SYSTEM will use the last accessed slot and drive and the `PREFIX` command will report that volume as a prefix even though it is empty.\n\n\nSample commands included:\n* `HELLO` - shows a short message, for testing purposes\n* `ECHO` - echoes back anything following the command\n* `CD` - like `PREFIX` but accepts `..`, e.g. `cd ../dir`\n* `ONLINE` - lists online volumes (volume name, slot and drive)\n* `MEM` - show memory stats for the BASIC environment\n* `COPY` - copy a single file, e.g. `copy /path/to/file,dstfile`\n* `TYPE` - show file contents (TXT, BAS, or BIN/other), e.g. `type filename`\n* `TOUCH` - apply current ProDOS date/time to a file's modification time, e.g. `touch filename`\n* `DATE` - prints the current ProDOS date and time\n* `CHTYPE` - change the type/auxtype of a file, e.g. `chtype file,T$F1,A$1234`\n    * `T` (type) and `A` (auxtype) are optional. If neither is specified, current types are shown.\n    * `S` and `D` arguments can be used to specify slot and drive.\n* `CHTIME` - change the modification date/time of a file, e.g. `chtime file,A$1234,B$5678`\n    * `A` (date) and `B` (time) are optional. If neither is specified, current values are shown.\n    * `S` and `D` arguments can be used to specify slot and drive.\n* `BELL` - emits the standard Apple II beep\n* `BUZZ` - emits the ProDOS \"nice little tone\"\n* `HIDE` / `UNHIDE` - sets / clears the \"invisible\" bit on a file, used in GS/OS Finder\n\n\n## Instructions For Developers\n\nBehavior of `PATH`:\n\n* Search order when a command is typed:\n   * ProDOS BASIC.SYSTEM intrinsics (`CAT`, `PREFIX`, etc)\n   * BASIC keywords (`LIST`, `PRINT`, etc)\n   * CMD files in paths, in listed order\n* Allocates a permanent buffer to store the code and path (2 pages)\n* Applesoft BASIC commands are unaffected (but can't be CMD names)\n   * Commands with BASIC keywords as _prefixes_ are allowed as long as the command continues with an alphabetic character. For example, `ONLINE` is allowed despite conflicting with the valid BASIC statement `ONLINE GOTO10` which is short for `ON LINE GOTO 10`.\n\nProtocol for `CMD` files:\n\n* CMD file is loaded at $4000 and invoked.\n* $4000-$5FFF is assumed reserved for the CMD file and any buffers it needs.\n* The command line will be present at $200 (`GETLN` input buffer).\n* Commands can use the BI parser for arguments. See `chtype.cmd.s` for an example.\n* Exit with `CLC` then `RTS` to return to the ProDOS BASIC prompt.\n    * To signal an error, `LDA` with a BI error code, then `SEC` and `RTS`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2stuff%2Fprodos-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2stuff%2Fprodos-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2stuff%2Fprodos-path/lists"}