Returns 4 groups,
If a value is absent, returns None. (Python does this)
Can be easily extended to 3 operand instructions by adding one more subgroup.
General syntax is -
LABEL:OPC OPERAND1,OPERAND2;Comment
where -
LABEL = (optional)
OPC = (optional)
OPERAND1 = (optional, needs OPC)
OPERAND2 = (optional, needs both OPC and OPERAND1)
COMMENT = (optional)