1
0
mirror of https://github.com/upx/upx synced 2025-10-05 19:20:23 +08:00

save 4 bytes

committer: jreiser <jreiser> 1089733580 +0000
This commit is contained in:
John Reiser 2004-07-13 15:46:20 +00:00
parent 435c0a9e82
commit 2980a6b4bb

View File

@ -111,12 +111,10 @@ move_up:
mov ecx,[-4+ edx] ; length of compressed data
add ecx, byte 3
and ecx, byte ~3 ; pad to 0 mod 4
add edx,ecx ; unmoved top of compressed data
shr ecx,2 ; count of .long
; copy compressed data
lea esi,[-4+ edx] ; unmoved top -4 of compressed data
lea edi,[-4+ eax] ; moved top -4 of compressed data
shr ecx,2
lea esi,[-4+ 4*ecx + edx] ; unmoved top -4 of compressed data
lea edi,[-4+ eax] ; moved top -4 of compressed data
rep
movsd