DSPRelated.com
Forums

ERROR: Parallel branch is illegal in linear assembly

Started by Bernhard 'Gustl' Bauer March 18, 2010
Hi,
I copied this code snipped from a asm file to a sa file and get the
above error:

STW .D2 B10,*SP--[1] ; saving B10 on stack
|| MV .L1X B6,A8 ; move index to A8
|| MV .L2X A8,B6 ; move csize to B6
|| B .S1 NO_INT ; protect from ints
I wonder whats wrong? Must I rename my sa to asm? Or do I need a special
directive.

TIA

Gustl

_____________________________________
Gustl,

Are you wanting to write linear asm, or "real" asm ?

linear asm does not support || operations. The compiler will process the linear asm into "real" asm.

You would have to copy to a .asm file to use "real" asm.

I would recommend you void "real" asm if at all possible. It is hard to write and hard to get right.

- Andrew

----- Original Message ----
From: Bernhard 'Gustl' Bauer
To: C6x
Sent: Thu, March 18, 2010 2:55:22 AM
Subject: [c6x] ERROR: Parallel branch is illegal in linear assembly

Hi,
I copied this code snipped from a asm file to a sa file and get the
above error:

STW .D2 B10,*SP--[1] ; saving B10 on stack
|| MV .L1X B6,A8 ; move index to A8
|| MV .L2X A8,B6 ; move csize to B6
|| B .S1 NO_INT ; protect from ints
I wonder whats wrong? Must I rename my sa to asm? Or do I need a special
directive.

TIA

Gustl

_____________________________________

_____________________________________