I'd probably do something like this:
x = 0
t1 = (n-1)*4
L: t5 = a[t1] * b[t1]
x = x + t5
t1 = t1 - 4
if t1 >= 0 goto L
I don't know what the target machine is, but the last two instructions could typically be done with something like SUB
/ JNS
(which saves a comparison).