Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Sunday, March 11th, 2007 at 5:21:34pm UTC 

  1.         "ldr r10, [r9], #4    \n\t" /* load two samples */
  2. #ifdef HAVE_AS3514
  3.         /* The AS3514 reads 3 bytes at a time, it seems, ignoring the lowest.
  4.         This code seems to work well, but we may have to mask off the extra
  5.         bits - at the expense of a few extra cycles in the FIQ */
  6.         "mov r10, r10, ror #2\n\t" /* put left sample at the top bits */
  7.         "str r10, [r12, #0x40]\n\t" /* write top sample, lower sample ignored */
  8.         "mov r10, r10, ror #16\n\t" /* put left sample at the top bits */
  9.         "str r10, [r12, #0x40]\n\t" /* then write it */
  10. #else
  11.         "mov r10, r10, ror #16\n\t" /* put left sample at the top bits */
  12.         "str r10, [r12, #0x40]\n\t" /* write top sample, lower sample ignored */
  13.         "mov r10, r10, lsl #16\n\t" /* shift lower sample up */
  14.         "str r10, [r12, #0x40]\n\t" /* then write it */
  15. #endif
  16.         "subs r8, r8, #4      \n\t" /* check if we have more samples */

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right