Two Causes of Interrupt 0 in MASM Program

This article was previously published under Q27587
This article has been archived. It is offered "as is" and will no longer be updated.
SUMMARY
When running a program created by the Microsoft Macro Assembler,an "integer divide by 0" may be generated. In MASM version 6.0and later, the error number generated will be R6003. Thedocumentation 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 Assemblerversion 5.0 Programmer's Guide under DIV/IDIV, is the quotientoverflowing its target register.
kbinf 5.00 5.10 5.10a 6.00 6.00a 6.00b
Properties

Article ID: 27587 - Last Review: 08/23/2013 17:14:21 - Revision: 1.1

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

  • kbnosurvey kbarchive KB27587
Feedback