NEW_FILENAME = FILENAME.with_suffix(".new.mdwn")
OLD_FILENAME = FILENAME.with_suffix(".old.mdwn")
-PO_59_63_HEADER = "## PO=59/63 XO=1---011--"
+PO_59_63_HEADER = "# Opcode Tables for PO=59/63 XO=1---011--"
MNEMONIC_COLUMN_NAME = "opcode"
XO_COLUMN_NAME = "Major 59 and 63"
-# TODO: copy PO=59 table to PO=63 table
-
class LineReader:
def __init__(self, lines):
f"binary string: {row}")
for i, column in zip(columns_range, columns):
cell = line_parts[i]
+ if cell.strip() == "":
+ continue
match = re.fullmatch(
r" *<small> *` *(?P<xo>[01][01 ]*[01]) *` *</small>"
r" *<br/?> *(?P<mnemonic>[a-zA-Z0-9_.][a-zA-Z0-9_.()]*)?"