Circular buffer in assembly of TMS320C6713
I have a filter (FIR) with 40 coefficients which take up 80 bytes total (2 bytes each). I am trying to implement a circular buffer for this filter but the size of the buffer must be a power of 2. The closest power of 2 I can use is 128 so that all the coefficients are included. After accessing the 40 coefficients though the pointer will go out of bounds. What can I do to solve this? Thanks in advance!
See also questions close to this topic
 memory access in assembly syntax differences

Arithmetic operations in assembly
SYS_EXIT equ 1 SYS_READ equ 3 SYS_WRITE equ 4 STDIN equ 0 STDOUT equ 1 segment .data msg db "Please enter a digit ", 0xA,0xD len equ $ msg segment .bss number1 resb 2 number2 resb 2 result resb 1 result2 resb 1 segment .text msg2 db "Please enter a second digit", 0xA,0xD len2 equ $ msg2 msg3 db "The sum is: " len3 equ $ msg3 msg4 db "The minus is: " len4 equ $ msg4 global _start _start: mov eax, SYS_WRITE ; System write mov ebx, STDOUT ; System output mov ecx, msg ; What to write mov edx, len ; Length to write int 0x80 ; Interupt Kernel mov eax, SYS_READ ; System read mov ebx, STDIN ; mov ecx, number1 mov edx, 2 int 0x80 mov eax, SYS_WRITE mov ebx, STDOUT mov ecx, msg2 mov edx, len2 int 0x80 mov eax, SYS_READ mov ebx, STDIN mov ecx, number2 mov edx, 2 int 0x80 call add add: mov eax, SYS_WRITE mov ebx, STDOUT mov ecx, msg3 mov edx, len3 int 0x80 ;load number1 into eax and subtract '0' to convert from ASCII to decimal mov eax, [number1] sub eax, '0' ; do the same for number2 mov ebx, [number2] sub ebx, '0' ; add eax and ebx, storing the result in eax add eax, ebx ; add '0' to eax to convert the digit from decimal to ASCII add eax, '0' ; store the result in result mov [result], eax ; print the result digit mov eax, SYS_WRITE mov ebx, STDOUT mov ecx, result mov edx, 1 int 0x80 ret minus: mov eax, SYS_WRITE mov ebx, STDOUT mov ecx, msg4 mov edx, len4 int 0x80 ;load number1 into eax and subtract '0' to convert from ASCII to decimal mov eax, [number1] sub eax, '0' ; do the same for number2 mov ebx, [number2] sub ebx, '0' ; add eax and ebx, storing the result in eax sub eax, ebx ; add '0' to eax to convert the digit from decimal to ASCII add eax, '0' ; store the result in result mov [result2], eax ; print the result digit mov eax, SYS_WRITE mov ebx, STDOUT mov ecx, result mov edx, 1 int 0x80 ret mul: ;load number1 into eax and subtract '0' to convert from ASCII to decimal mov al, [number1] sub al, '0' ; do the same for number2 mov bl, [number2] sub bl, '0' ; add eax and ebx, storing the result in eax mul bl ; add '0' to eax to convert the digit from decimal to ASCII add al, '0' ; store the result in result mov [result], al ; print the result digit mov eax, SYS_WRITE mov ebx, STDOUT mov ecx, result mov edx, 1 int 0x80 ret exit: mov eax, SYS_EXIT xor ebx, ebx int 0x80
The above code is what i have done so far, I tried to add the numbers but add function seems to be called twice as shown in the picture below. What am i trying to do is to add, subtract, multiply and divide the two numbers. How can i do that and when i try to add 2 numbers sometimes it gave me this output Segmentation fault.

jmp and jsr runtime error (Address Out Of Memory Range)
We wrote a code which includes 2000 lines in assembly language, we are having trouble with the commands jmp and jsr sometimes we get runtime error and sometimes not and everything works properly.
Any idea?

Conditional Average in MDX with multiple Filters
I am very new to MDX and I'm afraid this is beyond my comprehension but maybe you can help:
There is a cube with a Time Dimension with Years and Months [Date].[Year].[Member] and [Date].[Month].[Member] and a Factory Dimension [Factory].[Number].[Member]. The Measure I need the Average of is called [Measures].[Orders].
Now what I need is the Average of the Orders of factories [01] and [02] for January 2016 and July 2016.
Here is what I came up with. The Syntax is working but the results are wrong:
WITH MEMBER [Measures].[myAverageValue] AS ( Avg ( [Factory].[Number].&[01] ,[Measures].[Orders] ) + Avg ( [Factory].[Number].&[02] , [Measures].[Anzahl Sdg] ) ) /2  I just want the average of both averages SELECT {[Measures].[myAverageValue]} ON 0 FROM [Cube] WHERE ([DATE].[Year].[Year].&[20160101T00:00:00] &[Date].[Month].[Month].&[20160601T00:00:00] &[Date].[Month].[Month].&[20160101T00:00:00] )
Ideally the result would be the average of both average factory values in July 2016 + January 2016.
Sorry if this seems a bit beginner like.
Greetings!

Filter local name from an email address
I get a database from an email server containing something close to 3 millions of email addresses that were sent.
But, as you can imagine, most of this addresses are spam emails, and I trying to remove they from this list.
Filtering some domains and invalid formats using regular expressions, i reach 400145 remain addresses.
But, looking at the results, some emails like YSXCVZXFASDFKLS@gmail.com still on the list, because until now i didn't apply any filter based on the local name.
My question is: How can I filter the remaining email adresses based on the local name? I try to find a pattern, but are emails like pp3@gmail.com, Yaxv@hotmail.com, how can I differ this ones from the valid email addresses like ebcom@gmail.com?

how to know filter coefficient of bilinear resampling?
I am trying to implement the rescaling algorithm using bilinear filtering. I want to use a kernel for fast and efficient.
When I need to reduce the size to 1/2, I just need a kernel with [1/4 1/4; 1/4 1/4]  a 2x2 kernel with each coefficient is 1/4.
Now, I need to reduce the size to 4/5, I read that we must repeat 5x5 each time, still use 2x2 filters but has 16 different sets of 4 filter coefficients. How I implement this? How do I know the filter coefficients?

Which operation in the FFT that is disturbed with the NAN values
I know that FFT function cannot work with NAN values. We used either inerpolation to get ride of those NAN or we replace the NAN with zeros. Yet, I am wondering why FFT cannot work with NAN?. FFT basically makes a summation of the time series after multiply with different harmonics, and most libraries have function that perform summation while skipping NAN values. Thanks

Matlab cos signal from defined frequency course
how come the spectrogram of this code is at its max at approximately 4400Hz instead of 2400Hz in the last timestep of the stft? (frequencyCourse(end) = 100, meshingOrder = 24 > f = 2400)
startTime = 0; %s endTime = 30; %s startIAS = 15; %Hz endIAS = 100; %Hz meshingOrder = 24; fs = 100000; %Hz t = startTime:1/fs:endTime1/fs; frequencyCourse = linspace(startIAS, endIAS, length(t)); signal = cos(2*pi*meshingOrder*frequencyCourse.*t); spectrogram(signal, hanning(2^13), 0, 2^14, fs, 'yaxis')
Here's a picture:
It works fine as long as I use chirp instead of my self constructed signal, it's not an option though, since more specific courses are to come.

how to create a circularly simmetric gaussian distribution which is orthogonal?
I would like to create a 2D noise like speckle which follows a circular gaussian distribution at the same time it should be a orthogonal matrix. Can some one suggest a way to do it in Matlab