I decided to trace the actual ProDOS 2.03 code to see what it did. Kind of odd. The original code does ORA #$80 here, but the test is with #$AF , the '/' with the MSB set. Further along in the code, it does AND #$7F for all the characters from the path string and compares with #$2F , the '/' with MSB clear. The ProDOS manual states that all strings should have the MSB clear, so what's with all the MSB setting and clearing? I dunno. If you were to match the original code, you could do the initial ORA #$80 and compare to #$AF , or match the later code with AND #$7F followed by the compare as it stands in your version. Maybe whoever wrote the initial code was just trying to cover the bases
I decided to trace the actual ProDOS 2.03 code to see what it did. Kind of odd. The original code does
ORA #$80here, but the test is with#$AF, the '/' with the MSB set. Further along in the code, it doesAND #$7Ffor all the characters from the path string and compares with#$2F, the '/' with MSB clear. The ProDOS manual states that all strings should have the MSB clear, so what's with all the MSB setting and clearing? I dunno. If you were to match the original code, you could do the initialORA #$80and compare to#$AF, or match the later code withAND #$7Ffollowed by the compare as it stands in your version. Maybe whoever wrote the initial code was just trying to cover the bases