writing main function of assembler