Two Causes of Interrupt 0 in MASM Program (27587)



The information in this article applies to:

  • Microsoft Macro Assembler (MASM) 5.0
  • Microsoft Macro Assembler (MASM) 5.1
  • Microsoft Macro Assembler (MASM) 5.1a
  • Microsoft Macro Assembler (MASM) 6.0
  • Microsoft Macro Assembler (MASM) 6.0a
  • Microsoft Macro Assembler (MASM) 6.0b

This article was previously published under Q27587

SUMMARY

When running a program created by the Microsoft Macro Assembler, an "integer divide by 0" may be generated. In MASM version 6.0 and later, the error number generated will be R6003. The documentation for MASM version 6.0 gives the following explanation:
   Run-time error R6003

   integer divide by 0

   An attempt was made to divide an integer by 0, giving an
   undefined result.
				
Another possible cause, documented in the Microsoft Macro Assembler version 5.0 Programmer's Guide under DIV/IDIV, is the quotient overflowing its target register.

Modification Type:MinorLast Reviewed:10/29/2003
Keywords:KB27587