I have recently discovered the following concerning Trap 3 with D0 = $45, ie IOF.MINF AKA FS.MDINF.
The manual states that the medium name is 10 bytes long left justified and padded with spaces. It also states that A1, which initially points to a 10-byte buffer (for the medium name), ends up pointing to the end of the name. Use this in QPC2 for RAM1, FLP1, WIN2 etc and you get what you expect. However, use this for DOS5, say and you get A1 pointing to the START of the name and the name itself is 12 bytes long. The really bad news is that this Trap can therefor write beyond the buffer, a good recipe for unexplained crashes. I wonder whether I should wait for an update or whether I should change the one program which uses this Trap and consequently exhibits odd behaviour occasionally. George _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
