|
@@ -85,6 +85,7 @@ int asmsh_exec(asmsh_t *sh, const char *cmd)
|
85
|
85
|
ret = _compile_step(sh, cmd);
|
86
|
86
|
break;
|
87
|
87
|
}
|
|
88
|
+ asmsh_env_update_regs(sh->env);
|
88
|
89
|
return ret;
|
89
|
90
|
}
|
90
|
91
|
|
|
@@ -106,16 +107,16 @@ static int _compile_step(asmsh_t *sh, const char *cmd)
|
106
|
107
|
if(sh->last_instr) { free(sh->last_instr); }
|
107
|
108
|
sh->last_instr = strdup(cmd);
|
108
|
109
|
|
109
|
|
-char buf[256];
|
110
|
|
-int _ret;
|
111
|
|
-_ret = snprintf(buf, 255, "'%s' = 0x", cmd);
|
112
|
|
-for(int _i=0; _i<bcode.size; _i++)
|
113
|
|
-{
|
114
|
|
- _ret += snprintf(buf+_ret, 255-_ret, "%02x", bcode.bytes[_i]);
|
115
|
|
-}
|
116
|
|
-_ret += snprintf(buf+_ret, 255-_ret, "(%d)", bcode.size);
|
117
|
|
-buf[_ret] = '\0';
|
118
|
|
-asmsh_log_info(buf);
|
|
110
|
+//char buf[256];
|
|
111
|
+//int _ret;
|
|
112
|
+//_ret = snprintf(buf, 255, "'%s' = 0x", cmd);
|
|
113
|
+//for(int _i=0; _i<bcode.size; _i++)
|
|
114
|
+//{
|
|
115
|
+// _ret += snprintf(buf+_ret, 255-_ret, "%02x", bcode.bytes[_i]);
|
|
116
|
+//}
|
|
117
|
+//_ret += snprintf(buf+_ret, 255-_ret, "(%d)", bcode.size);
|
|
118
|
+//buf[_ret] = '\0';
|
|
119
|
+//asmsh_log_info(buf);
|
119
|
120
|
|
120
|
121
|
if(asmsh_env_write_code(sh->env, &bcode))
|
121
|
122
|
{
|