Slight indent for asm to make it look like 'asm' for the asm mode

This commit is contained in:
Matt Godbolt
2015-11-27 15:30:57 -06:00
parent 7c648dab85
commit bbc8cb079e
+3 -3
View File
@@ -169,17 +169,17 @@
}).map(function (x) {
return parseInt(x, 16);
});
var disasembly = match[4];
var disassembly = " " + match[4];
var links = null;
var destMatch = line.match(destRe);
if (destMatch) {
links = [{
offset: disasembly.indexOf(destMatch[1]),
offset: disassembly.indexOf(destMatch[1]),
length: destMatch[1].length,
to: parseInt(destMatch[1], 16)
}];
}
result.push({opcodes: opcodes, address: address, text: disasembly, source: source, links: links});
result.push({opcodes: opcodes, address: address, text: disassembly, source: source, links: links});
} else {
//result.push({text: line, source: null});
}