Skip to content

Commit 7834583

Browse files
committed
Fix get backward
1 parent fe01282 commit 7834583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Primitives/emulated.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ std::string get_backward(Module *m, uint32_t index) {
692692
std::stringstream transfer;
693693
auto *buffer = new char[6];
694694
sprintf(buffer, "%02" PRIx8 "00%02" PRIx8, interruptTransfer, 1);
695-
transfer << std::string(buffer);
696695
delete[] buffer;
697696

698697
if (index < ALL_PRIMITIVES) {
@@ -701,6 +700,7 @@ std::string get_backward(Module *m, uint32_t index) {
701700
if (primitive.f_backward) {
702701
m->sp += primitive.t->param_count;
703702
auto data = primitive.f_backward(m);
703+
transfer << std::string(buffer);
704704
transfer << std::string(data);
705705
free(data);
706706
m->sp -= primitive.t->param_count;

0 commit comments

Comments
 (0)