diff --git a/codemirror b/codemirror index 4334727f..ebf81921 160000 --- a/codemirror +++ b/codemirror @@ -1 +1 @@ -Subproject commit 4334727f0e07acd4541b0a7b8f81a5984cd4aafe +Subproject commit ebf81921f80024e3e94c7a8e1235ab59464fa5ef diff --git a/src/pixed/pixeleditor.ts b/src/pixed/pixeleditor.ts index 28fa7a76..c848e281 100644 --- a/src/pixed/pixeleditor.ts +++ b/src/pixed/pixeleditor.ts @@ -224,6 +224,14 @@ var pixel_re = /([0#]?)([x$%]|\d'[bh])([0-9a-f]+)/gi; function parseHexBytes(s) { var arr = []; var m; + // convert 'hex ....' asm format + s = s.replace(/(\shex\s+)([0-9a-f]+)/ig, function(m,hexprefix,hexstr) { + var rtn = hexprefix; + for (var i=0; i