edwatkeys@pro-sol.cts.com (Ed Watkeys) (05/01/91)
I know that amoung other things, program selectors are supposed to put the full pathname of the loader SYS file at $280, but I was wondering if there is anything weird about it, like being a C string (zero delimited). Also, is there always a slash at the end, never a slash at the end, or sometimes a slash at the end, so don't assume anything? Ed Watkeys III Internet: edwatkeys@pro-sol.cts.com ProLine: edwatkeys@pro-sol UUCP: crash!pro-sol!edwatkeys ARPA: crash!pro-sol!edwatkeys@nosc.mil BitNET: edwatkeys%pro-sol.cts.com@nosc.mil
dlyons@Apple.COM (David A. Lyons) (05/04/91)
In article <8951@crash.cts.com> edwatkeys@pro-sol.cts.com (Ed Watkeys) writes: >I know that amoung other things, program selectors are supposed to put the >full pathname of the loader SYS file at $280, but I was wondering if there >is anything weird about it, like being a C string (zero delimited). Also, >is there always a slash at the end, never a slash at the end, or sometimes >a slash at the end, so don't assume anything? > >Ed Watkeys III The pathname at $280 is the full *or partial* pathname of the SYS program being loaded. It is a Pascal string (leading length byte), no termination (you might find a $00 at the end, but it isn't guaranteed). I would be surprised to ever find a trailing slash, since that doesn't mean much after a filename. In Davex I found that it was a compatibility problem for some applications if the $280 pathname I created contained lower case letters or characters with bit 7 accidentally turned on. -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II System Software Engineer | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie:DAVE.LYONS CompuServe:72177,3233 Internet:dlyons@apple.com My opinions are my own, not Apple's.