Skip to content

Commit

Permalink
Fix unpacker reset
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Aug 24, 2024
1 parent 5e0632c commit 02cd80e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/unpacker.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@


%macro unpacker_reset 2
push rax
push rdi
push rbp

mov rbp, rsp
Expand All @@ -23,7 +25,11 @@
mov rdi, qword [rbp-8]
call _unpacker_reset

mov rsp, rbp

pop rbp
pop rdi
pop rax
%endmacro

_unpacker_reset:
Expand Down
4 changes: 1 addition & 3 deletions tests/unpacker_basic_ints_test.asm
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,5 @@ _test_unpack_raw:
call get_int
assert_eax_eq 9, __LINE__

; TODO: this fails
; end_test __LINE__
exit 0
end_test __LINE__

0 comments on commit 02cd80e

Please sign in to comment.