ARM Technical Support Knowledge Articles

ERROR 167 (DECLARATION/ACTIVATION ERROR) FOR _MMOV_

Applies to: C166 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

I have written the following code to call the intrinsic _mmov_ function in order to use the ST10 MAC unit:

#include "reg262.h"
#include <st10mac.h>

void GetRasters(unsigned int near *pfont, unsigned int near *pCharcell, unsigned int Height)
{
  _mmov_((void near *)pCharcell,(void near *) pfont, Height);
}

I get the following error:

*** ERROR 167 .STD.C: intrinsic '_mmov_': declaration/activation error

CAUSE

There are a couple of restrictions on the mmov instruction:

RESOLUTION

Here are the two ways the _mmov_ function may be called:

#include <reg167.h>
#include <st10mac.h>

void main(void)
{
  unsigned int *s, *p;

  _mmov_(s, p, 2);
  while(1);
}

void GetRasters(unsigned int near *pfont, unsigned int near *pCharcell, unsigned int Height)  {
  _mmov_((void near *)pCharcell,(void near *) pfont, 10);
}

MORE INFORMATION

C166: MAC UNIT SUPPORT

Article last edited on: 2006-01-31 18:23:34

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential