Bugfix (assembler): Split opcodes from operands using a regular expression, so that tabs don't break it
This commit is contained in:
parent
79ad1678f4
commit
9414d19fad
|
|
@ -77,7 +77,7 @@ function decodeInstructions(line) {
|
|||
continue;
|
||||
}
|
||||
|
||||
let op_arg_array = line.split(" "); // split line into an array of [op, arg]
|
||||
let op_arg_array = line.split(/\s+/); // split line into an array of [op, arg]
|
||||
let opName = op_arg_array[0].toLowerCase();
|
||||
let arg_str = op_arg_array[1];
|
||||
let arg_num = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue