Two Causes of Interrupt 0 in MASM Program

Article translations Article translations
Article ID: 27587 - View products that this article applies to.
This article was previously published under Q27587
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

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.

Properties

Article ID: 27587 - Last Review: August 23, 2013 - Revision: 1.1
APPLIES TO
  • Microsoft Macro Assembler 5.0
  • Microsoft Macro Assembler 5.1 Standard Edition
  • Microsoft Macro Assembler 5.1a
  • Microsoft Macro Assembler 6.0 Standard Edition
  • Microsoft Macro Assembler 6.0a
  • Microsoft Macro Assembler 6.0b
Keywords: 
kbnosurvey kbarchive KB27587

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com