eager to know asm cli

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/05/2005 at 21:55, xxxxxxxx wrote:

User Information:
Cinema 4D Version:    
Platform:   Windows  ;   
Language(s) :

---------
Hi, i have 1 question about inline assembly.  as shown in the program listing below, if i remove "asm cli", "i=8, flag=5" statement will not be executed.....why the program doesn't work???  why inline assembly asm makes the difference?   I'm hoping that i can get the answer here. please and thanks.
#include <mc9s12dp256.h>        /* derivative information */
#include "pll.h"                /* defines _BUSCLOCK, sets bus frequency to _BUSCLOCK MHz */

void main(void) {
unsigned int  i, flag;
  /* set system clock frequency to _BUSCLOCK MHz (24 or 4) */
  PLL_Init();
  /* set port B as output (LEDs) */
  DDRB  = 0xff;       // Port B is output
  /* allow all interrupts */
  asm cli   //weirdness happen here
  
  i = 8;
  if (i==8) {
 
    flag=5;
 
  }
 
  /* forever */
  for(;;){}     // remove this to make things even worse...
}

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/05/2005 at 23:21, xxxxxxxx wrote:

Hi, this is a MAXON Cinema 4D plugin development forum, not a general-purpose C/C++/ASM forum. Unless this problem is related to a Cinema 4D C++ SDK plugin, you would do better on a general computer development/programming forum.

Additionally, you don't give the system (MacOS, Linux, Unix, Windows, DOS), compiler (CodeWarrior, MSC++, Borland, DJGPP etc.), or any other information that would help to narrow the problem. To which compiler is "asm cli" specific, for instance?

Thanks,