complete the assembler and the rom, fix some bugs