You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
split_off_address handles instructions with address immediates (generally branch instructions).
The line is split by a comma in split_off_address. We want the entire address/symbol to be diffed for highlighting rather than just a part of it.
defsplit_off_address(line: str) ->Tuple[str, str]:
"""Split e.g. 'beqz $r0,1f0' into 'beqz $r0,' and '1f0'."""parts=line.split(",")
iflen(parts) <2:
parts=line.split(None, 1)
iflen(parts) <2:
parts.append("")
off=len(line) -len(parts[-1].strip())
returnline[:off], line[off:]
This image shows that when the first part of the template split by the comma differs, the line is not highlighted.
When the 2nd part of the template differs (split_off_address):
The text was updated successfully, but these errors were encountered:
The instructions in this image may be using https://github.com/simonlindholm/asm-differ/blob/main/diff.py#L3113 and https://github.com/simonlindholm/asm-differ/blob/main/diff.py#L3114.
split_off_address
handles instructions with address immediates (generally branch instructions).The line is split by a comma in
split_off_address
. We want the entire address/symbol to be diffed for highlighting rather than just a part of it.This image shows that when the first part of the template split by the comma differs, the line is not highlighted.
When the 2nd part of the template differs (
split_off_address
):The text was updated successfully, but these errors were encountered: