Skip to content

Commit cefb635

Browse files
committed
FrameDetector: Update editor instruction format
1 parent f973998 commit cefb635

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

zbnt/FrameDetector.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,12 @@ def __parse_editor_instr(self, i, instr, param, offset):
318318
if opcode & 0b10000:
319319
instr_param = instr_param[::-1]
320320

321-
res = []
321+
res = [ (offset, opcode, instr_param[0]) ]
322322

323-
for b in instr_param[:-1]:
324-
res.append( (offset, 0, b) )
323+
for b in instr_param[1:]:
325324
offset += 1
325+
res.append( (offset, 0, b) )
326326

327-
res.append( (offset, opcode, instr_param[-1]) )
328327
return res
329328

330329
def __parse_instr_len(self, i, offset, param):

0 commit comments

Comments
 (0)