From 32110b5a5f404206e2a4fb5b3d9f2ae2a874f29b Mon Sep 17 00:00:00 2001 From: faissaloo Date: Tue, 21 Jun 2016 21:14:24 +0100 Subject: Sped up a push --- sh | Bin 3904 -> 3904 bytes sh.asm | 5 ++--- sh.o | Bin 4192 -> 4192 bytes 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sh b/sh index 32fb4c7..19f1ea8 100755 Binary files a/sh and b/sh differ diff --git a/sh.asm b/sh.asm index cdebb94..6a6232c 100644 --- a/sh.asm +++ b/sh.asm @@ -110,7 +110,6 @@ _wait_for_proc: syscall mov r10, r12 ;restore - ;mov r10,30 mov dword [cpid], -0x1 jmp _rloop @@ -206,8 +205,8 @@ _parse: ; needs special commands: cd exit export eval ;syscall 80 is chdir, so do that first, it's easiest ;It takes a path string. ;also needs pipes (|, >, <) - push 0x0 - xor r13, r13 + xor r13, r13 ;for _strlen + push r13 ;push 0 jmp _strlen ;r8 holds strlen so we start at the end and parse backwards diff --git a/sh.o b/sh.o index ff0858c..d9a09f8 100644 Binary files a/sh.o and b/sh.o differ -- cgit v1.2.3