From 8a38471452b9698f44a87c01d481ee637a527188 Mon Sep 17 00:00:00 2001 From: zombie Date: Wed, 6 Oct 2021 15:51:52 -0400 Subject: [PATCH] 3x+1 works TODO fiks args --- 3x+1.asm | 9 ++++----- lib/zombie-lib | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/3x+1.asm b/3x+1.asm index 935b315..a415fef 100644 --- a/3x+1.asm +++ b/3x+1.asm @@ -13,12 +13,11 @@ section .text main: sub rsp, 8 -; add rsi, 8 -; mov r8, [rsi] -; mov r9, [r8] -; mov [tempstore], r9 + add rsi, 8 + mov r8, [rsi] + mov [tempstore], r8 - mov rdi, number + mov rdi, [tempstore] call libz_atoi mov r8, rax diff --git a/lib/zombie-lib b/lib/zombie-lib index bd059e0..048a430 160000 --- a/lib/zombie-lib +++ b/lib/zombie-lib @@ -1 +1 @@ -Subproject commit bd059e097fbb5d3f0472c611d80f9af0791472e0 +Subproject commit 048a43083ab59b05f5139f0e21617a08a22550bf