how to creat using assemblly program's solution/project

Installing and using VSIDE tools for VLSI Solution's devices that contain a VSDSP signal processor.
franky_kin
User
Posts: 10
Joined: Thu 2015-11-26 4:26

Re: how to creat using assemblly program's solution/project

Post by franky_kin »

hi,i have a new question,when i add my program in ASM.S,it is succeed,but when i write my program in assembly and save as main.s, add to solution
build it ,
it display:error syntax err
near .end ***err***



why?
User avatar
Panu
VSDSP Expert
Posts: 2816
Joined: Tue 2010-06-22 13:43

Re: how to creat using assemblly program's solution/project

Post by Panu »

Could you post the code, please..

-Panu
franky_kin
User
Posts: 10
Joined: Thu 2015-11-26 4:26

Re: how to creat using assemblly program's solution/project

Post by franky_kin »

sir:
#ifdef VS1063
#include <vs1063.h>
#else
#include <vs1053.h>
#endif
//#include <vsasm.h>
.sect data_x, XData
.sect code, _main
.export _main
_main:
LDC 0xA, A0
AND NULL, NULL, A1
LDC 0xc, B0
AND NULL, NULL, B1
LDX (I6)+1, NULL //progx1b0d
LDC 0x0, A2
STX C1, (I6) ; STY C0, (I6)+1
STX LE, (I6) ; STY LC, (I6)+1
AND C, NULL, C; MVY B1, B1
LSL B, B; STX LS,(I6)
LDC 0x1F, LS
LOOP LS, loop_1b1b
LSLC C, C
SUB C, A, C; MVY B1, B1
NOP
JCS loop_1b1b
LSLC B, B
ADD C, A, C; MVY MR0, MR0
loop_1b1b :
LSLC C, C
LDX (I6)-1, LS
ADD B, NULL, A; LDX (I6) , LE
LSR C, B; LDY (I6)-1, LC
JR (I5)
LDX (I6)-1, C1; LDY (I6) , C0

.end
franky_kin
User
Posts: 10
Joined: Thu 2015-11-26 4:26

Re: how to creat using assemblly program's solution/project

Post by franky_kin »

i want to using your RTOS,but i have not ROTS's datasheet.could you give me some datasheet about ROTS.
Lasse
VLSI Staff
Posts: 27
Joined: Tue 2010-06-22 13:30

Re: how to creat using assemblly program's solution/project

Post by Lasse »

franky_kin wrote:it display:error syntax err
near .end ***err***
Whenever this happens to me, its because there is no newline character on the last line of the assembly source file. For some reason VSA wants that. So you could try adding a blank line at the end maybe.
Software Designer
VLSI Solution
User avatar
Henrik
VLSI Staff
Posts: 1209
Joined: Tue 2010-06-22 14:10

Re: how to creat using assemblly program's solution/project

Post by Henrik »

[Oops, answered to the thread without noticing there were many new messages answering the questions. Unnecessary information removed. Sorry.]

Kind regards,
- Henrik
Good signatures never die. They just fade away.
Post Reply