From faf716bd97c8d6c5429a5d8edc3ad1b59e430d66 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 16 Apr 2020 19:20:28 +0200 Subject: No need to atoi, atoi is bloat --- asm/jo_f_status.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'asm/jo_f_status.asm') diff --git a/asm/jo_f_status.asm b/asm/jo_f_status.asm index c4f517c..04fc563 100644 --- a/asm/jo_f_status.asm +++ b/asm/jo_f_status.asm @@ -19,7 +19,6 @@ section .text extern system - extern atoi global jo_f_status jo_f_status: @@ -41,8 +40,8 @@ jo_f_status: mov rdi, rax mov rax, 0x6 syscall - mov rdi, rsi - call atoi + movsx rax, byte [rsi + 0x0] + sub rax, 48 retq err: -- cgit v1.2.3