CompuServe Messages

void UnLock(lock)? Bah!

    08-Sep-90 02:52:54
Fm: Don Curtis/SYSOP 76703,4321
To: Thomas Holaday 70407,534
Tom, The quote is: "Except as noted, system library functions use registers d0,d1,a0 and a1 as scratch registers and you MUST consider their former contents to be LOST after a system library call. The contents of other registers will be preserved. System functions which provide a result return the result in d0." (empahsis by me) I'd say that's pretty definate. The AmigaDOS manual (the 2 older versions I have) make no mention of what's going on in d0 during an unlock() call. The simply say that the lock has to be passed in d1. Since there is no return from unlock()…then the contents of d0 must (based on the above quote) be considered lost. Or that's the way I read it. Don