/* Disables the generation IRQ interrupts and stores information on whether or not the interrupts were already disabled before explicitly disabling them with this function. Normally used as a pair together with IrqInterruptRestore during a critical section.  */
void IrqInterruptDisable(void)
/* Disables the generation IRQ interrupts and stores information on whether or not the interrupts were already disabled before explicitly disabling them with this function. Normally used as a pair together with IrqInterruptRestore during a critical section.  */
void IrqInterruptDisable(void)
{
	if (irqNesting == 0) 
	{
  	asm 
    {
      tpa
      sei
      staa  irqCCRregSave
    }
	}
	irqNesting++;
}