|
|
|
@ -425,13 +425,13 @@ function ApiHandler(compileHandler) {
|
|
|
|
|
}).join("\n"));
|
|
|
|
|
}
|
|
|
|
|
}, this));
|
|
|
|
|
var atAndTSuffixRemover = /^([A-Z]+)[BWLQ]$/;
|
|
|
|
|
this.handler.post('/asm', _.bind(function (req, res) {
|
|
|
|
|
res.set('Content-Type', 'application/json');
|
|
|
|
|
var info = asm_doc.getAsmOpcode(req.body.opcode);
|
|
|
|
|
if (!info) {
|
|
|
|
|
// If the opcode ends with an AT&T suffix, try removing that and giving it another go.
|
|
|
|
|
// Ideally, we'd be smarter here, but this is a quick win.
|
|
|
|
|
var atAndTSuffixRemover = /^([A-Z]+)[BWLQ]$/;
|
|
|
|
|
var suffixRemoved = atAndTSuffixRemover.exec(req.body.opcode);
|
|
|
|
|
if (suffixRemoved)
|
|
|
|
|
info = asm_doc.getAsmOpcode(suffixRemoved[1]);
|
|
|
|
|