improve code for ndb_cpu_dasm function.