mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Detabified.
committer: mfx <mfx> 1042564671 +0000
This commit is contained in:
parent
992ceee52b
commit
c7b9395866
|
@ -177,3 +177,6 @@ eof:
|
||||||
DW -1
|
DW -1
|
||||||
DH eof
|
DH eof
|
||||||
|
|
||||||
|
|
||||||
|
; vi:ts=8:et:nowrap
|
||||||
|
|
||||||
|
|
|
@ -50,14 +50,14 @@ start:
|
||||||
|
|
||||||
or ebp, byte -1
|
or ebp, byte -1
|
||||||
mov eax, 'KEIP' ; 0x100000 - address of startup_32
|
mov eax, 'KEIP' ; 0x100000 - address of startup_32
|
||||||
push eax ; MATCH00
|
push eax ; MATCH00
|
||||||
push edi ; MATCH01
|
push edi ; MATCH01
|
||||||
push esi ; MATCH02
|
push esi ; MATCH02
|
||||||
%ifdef __LZCALLT1__
|
%ifdef __LZCALLT1__
|
||||||
push eax ; MATCH03
|
push eax ; MATCH03
|
||||||
%endif; __LZDUMMY0__
|
%endif; __LZDUMMY0__
|
||||||
%ifdef __LZCKLLT1__
|
%ifdef __LZCKLLT1__
|
||||||
push eax ; MATCH03
|
push eax ; MATCH03
|
||||||
push byte '?' ; MATCH04
|
push byte '?' ; MATCH04
|
||||||
%endif; __LZDUMMY1__
|
%endif; __LZDUMMY1__
|
||||||
%ifdef __LBZIMAGE__
|
%ifdef __LBZIMAGE__
|
||||||
|
@ -102,18 +102,18 @@ checka20:
|
||||||
; =============
|
; =============
|
||||||
|
|
||||||
%ifdef __LZCKLLT9__
|
%ifdef __LZCKLLT9__
|
||||||
pop edx ; MATCH04
|
pop edx ; MATCH04
|
||||||
pop edi ; MATCH03
|
pop edi ; MATCH03
|
||||||
ckt32 dl
|
ckt32 dl
|
||||||
%endif; __LZDUMMY2__
|
%endif; __LZDUMMY2__
|
||||||
%ifdef __LZCALLT9__
|
%ifdef __LZCALLT9__
|
||||||
pop edi ; MATCH03
|
pop edi ; MATCH03
|
||||||
cjt32 0
|
cjt32 0
|
||||||
%endif; __LINUZ990__
|
%endif; __LINUZ990__
|
||||||
pop esi ; MATCH02
|
pop esi ; MATCH02
|
||||||
pop edi ; MATCH01
|
pop edi ; MATCH01
|
||||||
xor ebx, ebx ; booting the 1st cpu
|
xor ebx, ebx ; booting the 1st cpu
|
||||||
retn ; MATCH00
|
retn ; MATCH00
|
||||||
|
|
||||||
; =============
|
; =============
|
||||||
; ============= CUT HERE
|
; ============= CUT HERE
|
||||||
|
@ -126,3 +126,6 @@ eof:
|
||||||
section .data
|
section .data
|
||||||
dd -1
|
dd -1
|
||||||
dw eof
|
dw eof
|
||||||
|
|
||||||
|
|
||||||
|
; vi:ts=8:et:nowrap
|
||||||
|
|
|
@ -27,29 +27,31 @@
|
||||||
|
|
||||||
BITS 32
|
BITS 32
|
||||||
SECTION .text
|
SECTION .text
|
||||||
GLOBAL upx_itoa
|
GLOBAL upx_itoa
|
||||||
|
|
||||||
upx_itoa: ; char *upx_itoa(eax= unsigned v, edx= char *buf) /* 0<=(int)v */
|
upx_itoa: ; char *upx_itoa(eax= unsigned v, edx= char *buf) /* 0<=(int)v */
|
||||||
push edi ; save register
|
push edi ; save register
|
||||||
mov edi,edx ; output ptr
|
mov edi,edx ; output ptr
|
||||||
push byte 10
|
push byte 10
|
||||||
cld
|
cld
|
||||||
pop ecx ; radix
|
pop ecx ; radix
|
||||||
call recur
|
call recur
|
||||||
mov [edi],ah ; NUL terminate
|
mov [edi],ah ; NUL terminate
|
||||||
xchg eax,edi ; eax= continuation point
|
xchg eax,edi ; eax= continuation point
|
||||||
pop edi ; restore register
|
pop edi ; restore register
|
||||||
ret
|
ret
|
||||||
recur:
|
recur:
|
||||||
cdq ; zero extend eax into edx [use "sub edx,edx" if eax < 0 ]
|
cdq ; zero extend eax into edx [use "sub edx,edx" if eax < 0 ]
|
||||||
div ecx ; eax=quo, edx=rem; flags are undefined
|
div ecx ; eax=quo, edx=rem; flags are undefined
|
||||||
push edx
|
push edx
|
||||||
test eax,eax
|
test eax,eax
|
||||||
je quo0
|
je quo0
|
||||||
call recur
|
call recur
|
||||||
quo0:
|
quo0:
|
||||||
pop eax ; remainder
|
pop eax ; remainder
|
||||||
add al, byte '0'
|
add al, byte '0'
|
||||||
stosb
|
stosb
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
; vi:ts=8:et:nowrap
|
||||||
|
|
Loading…
Reference in New Issue
Block a user