Fix but, stack should be word-aligned, and fp should be double-word aligned. The code can run on both local and external memory now