From c7b93958666fdc6f11237b6a5869bf018ceb667b Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Tue, 14 Jan 2003 17:17:51 +0000 Subject: [PATCH] Detabified. committer: mfx 1042564671 +0000 --- src/stub/l_ps1.asm | 3 +++ src/stub/l_vmlinz.asm | 25 +++++++++++++----------- src/stub/upx_itoa.asm | 44 ++++++++++++++++++++++--------------------- 3 files changed, 40 insertions(+), 32 deletions(-) diff --git a/src/stub/l_ps1.asm b/src/stub/l_ps1.asm index 672c9f07..65ea8e3a 100644 --- a/src/stub/l_ps1.asm +++ b/src/stub/l_ps1.asm @@ -177,3 +177,6 @@ eof: DW -1 DH eof + +; vi:ts=8:et:nowrap + diff --git a/src/stub/l_vmlinz.asm b/src/stub/l_vmlinz.asm index fdacca29..c3868db7 100644 --- a/src/stub/l_vmlinz.asm +++ b/src/stub/l_vmlinz.asm @@ -50,14 +50,14 @@ start: or ebp, byte -1 mov eax, 'KEIP' ; 0x100000 - address of startup_32 - push eax ; MATCH00 - push edi ; MATCH01 - push esi ; MATCH02 + push eax ; MATCH00 + push edi ; MATCH01 + push esi ; MATCH02 %ifdef __LZCALLT1__ - push eax ; MATCH03 + push eax ; MATCH03 %endif; __LZDUMMY0__ %ifdef __LZCKLLT1__ - push eax ; MATCH03 + push eax ; MATCH03 push byte '?' ; MATCH04 %endif; __LZDUMMY1__ %ifdef __LBZIMAGE__ @@ -102,18 +102,18 @@ checka20: ; ============= %ifdef __LZCKLLT9__ - pop edx ; MATCH04 - pop edi ; MATCH03 + pop edx ; MATCH04 + pop edi ; MATCH03 ckt32 dl %endif; __LZDUMMY2__ %ifdef __LZCALLT9__ - pop edi ; MATCH03 + pop edi ; MATCH03 cjt32 0 %endif; __LINUZ990__ - pop esi ; MATCH02 - pop edi ; MATCH01 + pop esi ; MATCH02 + pop edi ; MATCH01 xor ebx, ebx ; booting the 1st cpu - retn ; MATCH00 + retn ; MATCH00 ; ============= ; ============= CUT HERE @@ -126,3 +126,6 @@ eof: section .data dd -1 dw eof + + +; vi:ts=8:et:nowrap diff --git a/src/stub/upx_itoa.asm b/src/stub/upx_itoa.asm index 3ad66848..6fe69800 100644 --- a/src/stub/upx_itoa.asm +++ b/src/stub/upx_itoa.asm @@ -27,29 +27,31 @@ BITS 32 SECTION .text - GLOBAL upx_itoa + GLOBAL upx_itoa upx_itoa: ; char *upx_itoa(eax= unsigned v, edx= char *buf) /* 0<=(int)v */ - push edi ; save register - mov edi,edx ; output ptr - push byte 10 - cld - pop ecx ; radix - call recur - mov [edi],ah ; NUL terminate - xchg eax,edi ; eax= continuation point - pop edi ; restore register - ret + push edi ; save register + mov edi,edx ; output ptr + push byte 10 + cld + pop ecx ; radix + call recur + mov [edi],ah ; NUL terminate + xchg eax,edi ; eax= continuation point + pop edi ; restore register + ret recur: - cdq ; zero extend eax into edx [use "sub edx,edx" if eax < 0 ] - div ecx ; eax=quo, edx=rem; flags are undefined - push edx - test eax,eax - je quo0 - call recur + cdq ; zero extend eax into edx [use "sub edx,edx" if eax < 0 ] + div ecx ; eax=quo, edx=rem; flags are undefined + push edx + test eax,eax + je quo0 + call recur quo0: - pop eax ; remainder - add al, byte '0' - stosb - ret + pop eax ; remainder + add al, byte '0' + stosb + ret + +; vi:ts=8:et:nowrap