Updating the Irvine32 Link Library

Updated 4/19/2011

There may be times when you want to modify the Irvine32 library, perhaps to fix a bug, or to add your own functions. If you do that, your changes will be overwritten the next time you download an updated copy of Irvine32.lib from the book's Web site.

The Irvine32 library functions are located in two source files: Irvine32.asm, and floatio.asm. Be sure to make a backup copy of any files you plan to modify.

Instructions:

  1. Download and install the latest version of the book's example programs. Make a backup copy of c:\Irvine\Irvine32.lib.
  2. Open the Visual Studio project found inside the c:\Irvine\Examples\Lib32\Project_sample folder.
  3. Add the Irvine32.asm, floatio.asm, and LibTest.asm files from the c:\Irvine\Examples\Lib32 folder to the project.
  4. Modify the LibTest.asm program so that it tests any library functions that you might have modified, and test your program.
  5. Close Visual Studio (optional).
  6. Run the Visual Studio Command Prompt by doing the following select All Programs, select Visual Studio 2010, select Visual Studio Tools, and select Visual Studio Command Prompt (2010).
  7. Inside the command window, type:  cd  c:\Irvine\Examples\Lib32  and press Enter. This will change the current directory location.
  8. At the command prompt, type:  makeLib and press Enter.

You should see the following output showing that the LIB program has created the Irvine32 link library:

Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

 Assembling: Irvine32.asm<
Microsoft (R) Macro Assembler Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 

 Assembling: floatio.asm 
Microsoft (R) Library Manager Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 

Press any key to continue . . .
Final Step:
Copy the new Irvine32.lib file to the c:\Irvine folder.