mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2025-01-13 14:29:46 +00:00
.
This commit is contained in:
parent
109d3a1118
commit
500baaf717
@ -344,7 +344,7 @@ void dump(const std::vector<uint8_t> &data, unsigned &pc) {
|
|||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (auto &x : data) {
|
for (auto &x : data) {
|
||||||
if (count == 0) printf("\t.byte\t");
|
if (count == 0) printf("\tbyte\t");
|
||||||
else printf(", ");
|
else printf(", ");
|
||||||
printf("$%02x", x);
|
printf("$%02x", x);
|
||||||
++count;
|
++count;
|
||||||
@ -450,7 +450,7 @@ void disasm(const std::vector<uint8_t> &data, unsigned &flags, unsigned &pc) {
|
|||||||
}
|
}
|
||||||
// any remaining data...
|
// any remaining data...
|
||||||
while (i < data.size()) {
|
while (i < data.size()) {
|
||||||
printf("\t.byte\t$%02x\n", data[i]);
|
printf("\tbyte\t$%02x\n", data[i]);
|
||||||
++i;
|
++i;
|
||||||
++pc;
|
++pc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user