Skip to content

ProDOS 2.4.2: Bitsy Bye leaves paths for BASIS.SYSTEM with high bits set #68

Description

@inexorabletash

Description

When launching an interpreter (e.g. BASIC.SYSTEM or BASIS.SYSTEM), in addition to populating the interpreter's $2006 with the path to the file, the Bitsy Bye / BASIS.SYSTEM convention is to set $280 to the containing path of the target, and $380 to the path to the interpreter.

Expected Behavior

I'd expect both of these paths to be ProDOS's usual ASCII (7 bit values, so high bit clear)

Actual Behavior

  • The directory path in $280 appears to have the '/' character with high bit set (to $AF) but the characters with high bit clear.
  • The interpreter path in $380 has high bits set for all characters.

Steps to Reproduce

  1. Boot ProDOS 2.4.2
  2. Launch a BASIC file
  3. Break into the monitor (or use an emulator's debugger) and inspect $280 / $380

Context

I'm not aware of any code that uses $280 / $380, but if this convention is going to be established then it should be well defined. I've updated A2DeskTop to populate $380 when invoking an interpreter, and I'm leaving it with high bits clear.

NOTE: Edited to correct: Bitsy populates the path at $280 to the full containing path of the target (e.g. "/VOL/DIR") not just the volume.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions