fixed assemble_code to work with a 64bit flag