Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
|
Hello c6x, For my application the C language is not usable. I wrote all software in assembler but now I heve some instructions that don't work correctly. As example I've this code to receive with interrupt from mcbsp0. _c_int11: ; Save used register on stack stw.d2 b0,*b15-- stw.d2 a1, *b15-- stw.d2 b1,*b15-- stw.d2 a5, *b15-- stw.d2 a11,*b15-- stw.d2 a13,*b15-- stw.d2 b3,*b15-- stw.d2 b7,*b15-- stw.d2 b9,*b15-- mvkl.s1 McBSP0_DRR, a11 mvkl.s1 rxCount,a5 mvkh.s1 McBSP0_DRR, a11 mvkh.s1 rxCount,a5 ldh.d1 *a11, b9 ; >>>>>>>>> THIS LDH WORK CORRECTLY nop 4 mvkl.s2 rxBuff,b3 mvkh.s2 rxBuff,b3 ldh.d1 *a5, a7 ; >>>>>>>>>> THIS DON'T WORK nop 4 add.d2 b3,b7,b11 stb.d2 b9, *b11 ; >>>>>>>>>> THIS DON'T WORK mvk.s2 100, b3 cmpeq.l2 b7, b3, b1 [b1] b.s2 $1 NOP 5 add.d1 1, a13, a5 . . . . I saw the memory attribute to see if there ìis WRITE permission ... These LDH or STH instruction don't work ! Why an instruction can't work correctly ? -- Best regards, flavio mailto: -------------------------------------- FLAVIO BERNARDOTTI AMC Italy srl Biometric Security Solutions Research and Development Department Via La Pira, 21 10028 TROFARELLO (TO) ITALY Tel. +39 011 6804011 Fax. +39 011 6804014 Dir. +39 380 7097051 Dir. +39 347 5610956 http://www.amcitaly.net http://www.biotracciabilita.info Personal sites: http://www.crackinguniversity2000.it http://www.bernardotti.it http://www.bernardotti.al.it |