Skip to content

Commit 0822cf0

Browse files
committed
#44 Skip value field in representation of JUMP instructions
1 parent 1af049e commit 0822cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sfs_generator/asm_bytecode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def to_plain(self) -> str:
5757
"""
5858
if is_push0(self.disasm, self.value):
5959
return "PUSH0"
60-
return f"{self.disasm} {str(self.value)}" if self.value is not None else self.disasm
60+
return f"{self.disasm} {str(self.value)}" if self.value is not None and "JUMP" not in self.disasm else self.disasm
6161

6262
def to_plain_with_byte_number(self) -> str:
6363
if is_push0(self.disasm, self.value):

0 commit comments

Comments
 (0)