Skip to content

Commit 7921baf

Browse files
committed
Fix compilation + store format
1 parent eb2dc3a commit 7921baf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Interpreter/proxied.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ void send_leb(Channel *channel, uint32_t value, const char *end = "") {
77
uint8_t *buffer = write_LEB(value);
88
uint32_t size = size_leb(value);
99
for (int i = 0; i < size; ++i) {
10-
channel->write("%" PRIx8 "%s", buffer[i], end);
10+
channel->write("%02" PRIx8 "%s", buffer[i], end);
1111
}
1212
free(buffer);
1313
}
1414

1515
bool Proxied::store(Module *m, uint8_t type, uint32_t addr, StackValue &sval) {
16-
m->warduino->debugger->channel->write("%" PRIx8, interruptStore);
16+
m->warduino->debugger->channel->write("%02" PRIx8, interruptStore);
1717
send_leb(m->warduino->debugger->channel, addr);
1818
send_leb(m->warduino->debugger->channel, 0);
1919
send_leb(m->warduino->debugger->channel, sval.value.uint32, "\n");

src/Interpreter/proxied.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "./interpreter.h"
12
class Proxied : public Interpreter {
23
public:
34
bool store(Module *m, uint8_t type, uint32_t addr,

0 commit comments

Comments
 (0)