Change the output code

According to the target instruction set, change the code.

Still has some problems, see progress.md.

Update design.md.