jayacotton / macro-library

Macro library. All kinds of 8080 code macros, works on CP/M
6 stars 0 forks source link

find bombs on CP/M 3 #13

Closed jayacotton closed 3 years ago

jayacotton commented 3 years ago

Looks like the fail is at the first directory read. Maybe the FCB is bigger.

jayacotton commented 3 years ago

The bug is at seldriv. This macro uses a bit of tricky code to get at the cp/m drive table. Its not working on cp/m 3

jayacotton commented 3 years ago

In cp/m 3 you can intercept error conditions, so, seldriv is not needed and is skipped. We depend on cp/m 3 to tell us when a drive is not available.

This introduces a new bug for latter. If there is a gap in the drive table, the code will fail to find all the drives.