hi i start a new try. i am looking for a solution that uVision4 accept to put Variables(Parameters) of c-Code in to Asssembler Registers.
A reference to the "C166 User's Guide - Reference ASM" helped my not because this(my) problem isnot treated!
------------------------------------------------------------------------------------
_inline int vf_control( int offset, int slew, int anglespeed) { int retvalue; #pragma asm ( @w1=offset, @w2=slew, @w3=anglespeed, @4,@5 ) mov MCW,#0600H mov @5,ZEROS CoMUL @w2,@w3 CoSHL #8 CoADD @5, @w1 CoSTORE @4,MAS #pragma endasm (retvalue = @4 ) return retvalue; }
What is the problem now? Its typical c-code. The same in other files.
#ifndef _SUBROUTINES_FOC_H_ #define _SUBROUTINES_FOC_H_
Subroutines_FOC.H(646): warning: last line of file ends without a newline #endif // #endif _SUBROUTINES_FOC_H_
Controls_FOC.H(170): warning: last line of file ends without a newline Scheduler.H(489): warning: last line of file ends without a newline t end of source: internal error: assertion failed: copy_from_source_to_asm_func_buffer: bad lexical escape (D:\edg\src\lexical.c, line 6205)
What is the problem now?
It's exactly what it says:
warning: last line of file ends without a newline
How hard can that be to understand?
just an enter in all last lines of the c-code it did it!