implement loader & fix endianess confusion between assembler and vm