Error in Turbo Pascal Example

ID: Q32399


SUMMARY

There is an error on Page C-2 of the "Microsoft Mouse Programmer's Reference Guide," Appendix C, "Making Calls from Borland Turbo Pascal Programs."


MORE INFORMATION

The code on Page C-2 reads as follows:


      if (m1 = 20) then            {Special returns   }
         m2 := CpuReg.ES;

      m1 := CpuReg.AX;             {Return values back}
      m2 := CpuReg.BX;             { to parameters    }
      m3 := CpuReg.CX;
      m4 := CpuReg.DX;

    end;
end;  {mouse} 
The code should read as follows:

      m1 := CpuReg.AX;             {Return values back}
      m2 := CpuReg.BX;             { to parameters    }
      m3 := CpuReg.CX;
      m4 := CpuReg.DX;

      if (m1 = 20) then            {Special returns   }
         m2 := CpuReg.ES;

    end;
end;  {mouse} 

Additional query words:

Keywords :
Version :
Platform : MS-DOS
Issue type :


Last Reviewed: December 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.