Description
This article is from the Programming VCOMM
FAQ, by nelson@desktop.nsc.com (Taed Nelson) with numerous
contributions by others.
9.3: RxCallback does not preserve EBX.
[Contributed by Walter Oney and Taed Nelson (nelson@lan.nsc.com).]
At a minimum, the default VCOMM RxCallback does not preserve the EBX register,
so you must "push EBX" prior to calling the callback, and "pop EBX"
afterwards. (Turning of compiler optimization will also solve it.)
It is unknown if it affects other callbacks or other registers.
For more detail, see Walter Oney's _Systems Programming in Windows 95_.
 
Continue to:
Share and Enjoy
Bookmark this story so others can enjoy it:
Tags
pc, OS, COMM port driver, Microsoft Windows, compilation