Use %eax for general calculation and only move to %ebx at the end.