Advertising
- Someone
- Sunday, March 11th, 2007 at 11:21:34am MDT
- "ldr r10, [r9], #4 \n\t" /* load two samples */
- #ifdef HAVE_AS3514
- /* The AS3514 reads 3 bytes at a time, it seems, ignoring the lowest.
- This code seems to work well, but we may have to mask off the extra
- bits - at the expense of a few extra cycles in the FIQ */
- "mov r10, r10, ror #2\n\t" /* put left sample at the top bits */
- "str r10, [r12, #0x40]\n\t" /* write top sample, lower sample ignored */
- "mov r10, r10, ror #16\n\t" /* put left sample at the top bits */
- "str r10, [r12, #0x40]\n\t" /* then write it */
- #else
- "mov r10, r10, ror #16\n\t" /* put left sample at the top bits */
- "str r10, [r12, #0x40]\n\t" /* write top sample, lower sample ignored */
- "mov r10, r10, lsl #16\n\t" /* shift lower sample up */
- "str r10, [r12, #0x40]\n\t" /* then write it */
- #endif
- "subs r8, r8, #4 \n\t" /* check if we have more samples */
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.