参数表
/ S+ |" b0 ^+ p5 L6 j2 w; jarg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址
2 U2 R3 v/ m0 l) j, Carg2:字符串宽度 x: ?; Z2 x( i+ k& q X6 V7 U
arg3:y* ^/ j4 W3 p6 G% u* F9 q
arg4:颜色
" v' j3 Z, l# I# i+ f' Iarg5:与颜色深度有关
( D# C0 J4 q$ N' N0 @arg6:与颜色深度有关$ Z' m# T1 x" v9 i
ecx:字符的编码基地址
. s: _1 \2 [! f7 Y% i/ p' q( N- D5 E' {6 ]: C8 _/ B; t
0071B820 /$ 83EC 54 sub esp,54' M, S- u3 G. L7 E
0071B823 |. 53 push ebx4 Q( P8 E8 C$ w5 a0 V3 C
0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C] C2 I( S" Y6 x- `4 n! n
0071B828 |. 55 push ebp9 ?4 p% Z6 l/ S: m& N1 E
0071B829 |. 56 push esi! c; z) H @: ^/ Q3 e5 D ~) q
0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]
8 Q" v ]! O) `0071B82D |. 8BF1 mov esi,ecx
% a3 a% y. h# ]( G+ p. X+ @0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]* J/ I+ U) t/ ?6 K( P% a
0071B832 |. 57 push edi
i2 H; |, O3 W0071B833 |. 50 push eax1 H- V6 H5 Y; l. V) a- {9 E
0071B834 |. 51 push ecx
+ ^3 G. s1 K% a e0071B835 |. 6A 00 push 04 b8 @+ R8 i- \% e4 @: ]3 O
0071B837 |. 6A 00 push 0
8 t( o0 E' l% n0 G* B7 D0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]4 {% X# X% c) g# a, v
0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi" _0 L: T1 m H8 }! {6 n+ ^
0071B841 |. E8 6ABCCEFF call heroes4.004074B0
5 |% C) y2 ]( `% {4 c0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]8 q- c; U3 g$ B! p( v5 W0 E
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]
. {1 v0 e0 U6 ]0071B84C |. 52 push edx _3 m k( M2 @( [6 m8 y+ ]
0071B84D |. 50 push eax% j$ q+ }% a- w8 m% b: X
0071B84E |. 6A 00 push 0' S+ L0 j" l# `0 i+ }& v% y: T8 ^
0071B850 |. 6A 00 push 0
+ |$ ^7 n1 c! Z0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]' J w: y4 f% h6 R: {
0071B856 |. E8 55BCCEFF call heroes4.004074B0
& ^2 t' _0 h% Q7 u; I; W, F1 T0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]
1 j9 |2 j+ K' c5 S) D# ~2 [7 m% X0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]
+ e9 N# k; m% V3 v0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]
! e( G0 v; L* W# h5 U0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx
3 H8 d- l& N. V! U5 J, k+ V0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]* _+ b. F" ?: h9 `% C
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx1 M4 I3 X$ V& j. X: x$ z) Q& V
0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C] D$ P3 Y; j% Y( \& Z
0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx( N$ C: [ [5 V2 U
0071B87B |. 52 push edx! r0 i1 s# u5 B' t
0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]# d& `4 t8 f7 r8 ~# [8 _1 a
0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax
& p% i; A0 W. \3 `" V' |' t0071B884 |. E8 47BCCEFF call heroes4.004074D0 i4 c/ A6 l8 s7 F6 A
0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]
) ?2 ?; {2 Q& N( ?8 \2 B6 T5 S0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]
6 b$ _, P$ I- h# m2 x0071B891 |. 3BC1 cmp eax,ecx/ |" j8 d8 K8 r' U& P4 L) ]
0071B893 |. 8BF8 mov edi,eax
6 A8 l7 H* }5 Q8 n, h0071B895 |. 7C 02 jl short heroes4.0071B899. Y$ `5 C* C! z) c* J1 F
0071B897 |. 8BF9 mov edi,ecx
! Z0 Z1 p2 {+ U% m0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]0 w- D# o/ ` D$ g
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]
& q" G9 H: j R7 J- [: S0071B8A1 |. 3BC2 cmp eax,edx" n$ N% Y B4 H' ?1 e* C! W
0071B8A3 |. 7D 02 jge short heroes4.0071B8A7
# }! o; V) Z# z) k0 q; i5 |( ?0 X0071B8A5 |. 8BD0 mov edx,eax
6 {% g, S: B' p W2 P ]0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]
4 l4 F" J1 T$ V) f+ I# i0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]
" E6 M, Z c7 ?+ m2 v8 J! V" j; e3 P0071B8AF |. 3BC1 cmp eax,ecx4 I! x# O7 S: W6 @
0071B8B1 |. 7E 02 jle short heroes4.0071B8B5# q4 x3 J2 o; |
0071B8B3 |. 8BC8 mov ecx,eax
! z* e2 b: C @0 ^6 e% P9 m4 K0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]# p' S1 j) x5 ^" E
0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]
1 i( _1 F( z8 _7 f# |" y0071B8BD |. 3BC6 cmp eax,esi" Q; ]2 }3 P* N9 j: b: ^
0071B8BF |. 7F 02 jg short heroes4.0071B8C3
7 ~, S [4 ]) s% i9 [, I0071B8C1 |. 8BC6 mov eax,esi
+ U- X' A* d- b+ t" }2 c0071B8C3 |> 57 push edi( \. G7 D( [* Z
0071B8C4 |. 52 push edx
) T5 g2 M5 `% ]+ u0071B8C5 |. 51 push ecx
( \, D" [5 t6 {5 N0071B8C6 |. 50 push eax( y3 R) a8 q9 k6 i
0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
e* B0 g- p$ M( |6 L$ A# X' _0071B8CB |. E8 E0BBCEFF call heroes4.004074B0
2 r+ W& c" j4 J4 ?2 o0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]' S4 W0 d9 d+ D! f ~) F
0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]
- N0 e. ~# V u+ O ?8 M0071B8D8 |. 2BC6 sub eax,esi
( k- A' k' v X; U/ P0071B8DA |. 85C0 test eax,eax4 ?! s+ T- N2 s- M& Z& P8 Q+ d
0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax
& p) @: t E6 N7 o/ I% e5 V* Z0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA96! h* { @( u( U5 j
0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]# K% H3 L, H, w- g
0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
$ G0 U9 s9 t6 k: X, n( d0071B8EE |. 2BE9 sub ebp,ecx( @/ |7 N6 X) ^: F7 \" x% L+ {
0071B8F0 |. 85ED test ebp,ebp
. b. q. U1 i, D6 H0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp
' a, f, ^! b8 J! y9 v }# c2 B1 \3 M0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96( X3 x3 @: k& d
0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg20 G8 _; y- a" m" \ x
0071B900 |. 8BF9 mov edi,ecx% F5 H% n% [+ N2 O6 ]1 D4 _
0071B902 |. 2BF8 sub edi,eax
: M: R2 w; N: {0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg37 S! f+ l) t0 A8 g {
0071B908 |. 8BD6 mov edx,esi
8 m5 n+ [8 v- O2 q, \" D4 P1 c0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx
, _- O2 U$ k' w0 i( C* d0071B90E |. 2BD0 sub edx,eax
: S3 Q, Y6 P4 A; Q1 \/ o, V3 X0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C] E; [, ?' K$ S3 D: h1 N1 H
0071B913 |. 8BD8 mov ebx,eax
. E! A# L; H" t! W- h0071B915 |. 0FAFDE imul ebx,esi7 T# |, O, s$ t3 _# o, ]1 s% u
0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]
$ `7 w& y9 l. {3 L, Q4 c3 k; ~0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]
% r E/ b/ K2 z; a& a1 R' O0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]4 u: B4 a- [3 Q
0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]
0 q# }- w% a. m+ C1 W( A0071B926 |. 03F3 add esi,ebx. H: k8 m: i- }
0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]: ]9 q4 @. }2 k; V% C
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)% G- k" J, B6 w) D! w+ w
0071B92F |. 8BD9 mov ebx,ecx
* Z; }8 u& a4 k$ P1 f. B% l0071B931 |. 2BCD sub ecx,ebp3 J! C: K& R! h7 |9 R9 P: p# f
0071B933 |. 0FAFDA imul ebx,edx
( @: O7 b, E4 I+ T% w4 P, D9 v8 L% f0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]
2 F, u1 W$ D* p( j0 t9 [6 Q0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx
: S w- L$ N4 w5 H0 S0 ]0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]0 }" q9 \' k* Q1 t
0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]
9 m1 m- x* l; N" Y% s0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]
U2 s3 N( r4 Y" M8 m- U0071B949 |. 2BC1 sub eax,ecx1 O! W1 I; M4 n$ i5 L
0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax
: c2 W1 u8 y! ^. z8 x- _0071B94F |. 03DF add ebx,edi, F2 ~* [. s8 }5 W
0071B951 |. 8BC2 mov eax,edx
. b5 _, M, ^8 w5 A0071B953 |. 4A dec edx& {. ]) m: ~2 }
0071B954 |. 85C0 test eax,eax
5 t \1 {1 x* n+ b0 f0071B956 |. 0F84 3A010000 je heroes4.0071BA964 f* p3 `9 E. _- K+ d+ Q; ~
0071B95C |. 42 inc edx
6 h) e A( n9 V5 [0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx
, O) e, q% L. }6 S) P2 o0071B961 |> 85ED /test ebp,ebp; L7 [* `; A6 I& c- r
0071B963 |. 0F84 0E010000 |je heroes4.0071BA773 V9 ^0 o ~0 v9 f4 u+ b
0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]
4 ^7 x% i Z2 J; I3 s5 g0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp
, t: t& @6 B7 T0071B971 |. 25 FFFF0000 |and eax,0FFFF% g5 E; Y( w5 G, ^# B
0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax* M8 ^ V" K( Y. }- L' w
0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]
3 A' E, G6 ?. C$ @0 b0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]
, O$ ^' |/ H. V3 T9 a0071B984 |. 84C0 ||test al,al
' F5 a( u) H3 a! d/ Q( m0071B986 |. 74 6A ||je short heroes4.0071B9F2
7 Z+ I; l+ a! S& ]/ s, u4 \) ~0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点
, R" C8 ~& ^5 x# |0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]; f2 S' B6 k/ Y u4 z
0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位. h3 _+ h- T' q
0071B991 |. 25 FFFF0000 ||and eax,0FFFF* k2 C0 E7 y, r1 X3 e" k
0071B996 |. 8BF9 ||mov edi,ecx
& H) X% {5 m6 H. h0071B998 |. 33C9 ||xor ecx,ecx6 @ P) Z' q& s+ S
0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值
7 q Q$ `' y$ h2 {0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0
! B2 E, h# A4 O; W0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理% _ x6 U" [+ M" |6 k7 b6 A
0071B9A1 |. 8BD7 ||mov edx,edi+ z7 g" `( ?% D6 I4 Y
0071B9A3 |. 8BF1 ||mov esi,ecx
: J" |4 \, g8 g7 u0071B9A5 |. C1FA 03 ||sar edx,3
' V( Z8 q; Q% N" K1 s0071B9A8 |. 83E2 01 ||and edx,19 M# [4 ^- J, {- \; r3 x5 \* A- |
0071B9AB |. 03FA ||add edi,edx
7 f% L1 A/ b/ t& S( O0071B9AD |. 8BD1 ||mov edx,ecx. @9 M% e3 ?& k; {) a5 u
0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]
k6 C9 I' C7 i0071B9B5 |. 23D5 ||and edx,ebp- e& Z6 X( @1 J% @/ p
0071B9B7 |. 23F1 ||and esi,ecx2 Q1 ^! N! U1 @- P! O
0071B9B9 |. 8BC8 ||mov ecx,eax
2 F+ ~* I: s- i7 L8 f0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]7 D9 }& j' T& [% g- J
0071B9C1 |. 23C5 ||and eax,ebp
9 h/ e- t6 A" O% o; I0071B9C3 |. 2BC2 ||sub eax,edx
# m' V3 D5 s4 H9 P% E0071B9C5 |. 2BCE ||sub ecx,esi
: g3 t6 Q! X4 l/ [0071B9C7 |. 0FAFC7 ||imul eax,edi
+ X$ w3 a6 l5 `0071B9CA |. 0FAFCF ||imul ecx,edi; w5 D2 u3 u2 Z; ^7 r' Y1 }
0071B9CD |. C1E6 04 ||shl esi,4
- [4 M: _$ p- i! s0071B9D0 |. 03CE ||add ecx,esi
6 y! U& Q* l7 k( e. f' j0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]
) X3 }1 \* r/ j8 h* X% v! g0071B9D8 |. C1E2 04 ||shl edx,4- q$ _/ W* `. y6 d, Q5 y
0071B9DB |. 23CE ||and ecx,esi
6 `1 }& O2 {7 i8 d- L. q2 i0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
! {& s5 V7 d3 B# ?0071B9E3 |. 03C2 ||add eax,edx
9 M' d! B* g) M7 J. z. o# d4 ]! \0071B9E5 |. 23C6 ||and eax,esi
, T& ]) \6 U) w( r! P0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
' U2 x! W4 v+ U9 f0071B9EB |. 03C8 ||add ecx,eax
1 r$ f- C0 m7 H2 C+ R0071B9ED |. C1F9 04 ||sar ecx,4
" A# x. V1 g8 Y7 ~& P/ }0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F5
' C7 }( B& k6 E* n2 ^3 D$ V4 z0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]& h/ i; u4 Q7 H6 H
0071B9F5 |> 33D2 ||xor edx,edx
; a& {( Y6 `, ^% S. m0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF
3 q( }6 ~5 {8 O% }; c0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]
# p! ?$ D+ R+ v2 F) ?8 T; k& C0071B9FF |. 8BC1 ||mov eax,ecx
7 G; M& T) C: T/ Z5 n+ `8 _% y0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位
( D& F! O& K% X, G! c' j/ [' B0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0
3 t5 z8 y4 W h( V& E$ i0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理/ i, ^9 F5 ?/ G" b" ]1 w5 h4 i
0071BA08 |. 8BCA ||mov ecx,edx! K, P( _3 u# u# p+ K
0071BA0A |. 8BF0 ||mov esi,eax" I2 s. V0 U: `% `# |
0071BA0C |. C1F9 03 ||sar ecx,35 e+ k3 p" Z2 d
0071BA0F |. 83E1 01 ||and ecx,1
5 d; N4 H0 n& E n0071BA12 |. 23F5 ||and esi,ebp
/ I1 U* n2 l+ Z. q9 N4 i8 Q0071BA14 |. 03D1 ||add edx,ecx5 r4 A( R8 X( D% a8 _
0071BA16 |. 8BC8 ||mov ecx,eax4 p2 \3 a- q$ d6 F, F
0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]
1 [5 k1 z0 O N9 ]5 g0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]
1 i' e: T' m* c( ?* A5 Z0 Y o0071BA22 |. 23C5 ||and eax,ebp
' f! n5 e& t: [, s1 Q' b: Y& B2 ?0071BA24 |. 23CF ||and ecx,edi
6 M. h* U( i0 D! }( O0071BA26 |. 2BC6 ||sub eax,esi' m5 v4 ?$ I P! o
0071BA28 |. 0FAFC2 ||imul eax,edx
$ e/ b! }) j! t4 y. A! K) R0071BA2B |. C1E6 04 ||shl esi,4
" E O5 ]7 t- \: q7 `7 L0 J$ ]$ u0071BA2E |. 03C6 ||add eax,esi7 ?2 t2 A. v# P" A' H/ B
0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]2 v& ^, [9 `/ W R5 p9 L5 `" ~
0071BA36 |. 23C6 ||and eax,esi
, @: P% l ~1 W2 Y! R0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]
7 G, h. X0 b9 r+ g2 p0071BA3C |. 23F7 ||and esi,edi G- e$ E L% T
0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]
1 X9 O% @% {8 A0071BA44 |. 2BF1 ||sub esi,ecx
$ o0 m# y% d6 @+ J$ p0071BA46 |. 0FAFF2 ||imul esi,edx# u5 L# D2 ]* U
0071BA49 |. C1E1 04 ||shl ecx,4
5 m1 Y+ A' k+ h9 Q" i- \) S0071BA4C |. 03F1 ||add esi,ecx
# \" F. a; k1 ~% `! @0071BA4E |. 23F7 ||and esi,edi I8 w+ V% c x' o/ `1 h
0071BA50 |. 03C6 ||add eax,esi
, V6 Z- ~/ ]8 `$ p0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]7 D0 Q, l* O% e" o: t6 V
0071BA56 |. C1F8 04 ||sar eax,4
! C3 X4 s: m1 m# K0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处
" B: ], {4 R' P" C0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]1 T- |2 ]! N6 `: }1 w' _ F
0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点
# N/ C' ]' T8 R" L0 M0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点0 O& Q! f+ r2 g- ~
0071BA64 |. 48 ||dec eax ; 计数值减1
* b r8 T. q& z4 I( ?! o0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi) x: W0 S9 ^, _6 `8 c+ Y0 J; E
0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax
9 V1 g$ n/ \$ u) ?+ o0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A. e- v, u* r- }" W2 L
0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]) w6 O# p3 C' M4 v% U2 }% K
0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]( c* \4 t1 u5 M9 ?8 e
0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]
; X) C: F9 B }# M/ ~0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]$ @) @5 D+ I1 b" z/ X
0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点
6 `1 R1 v' y2 K- v3 ~9 E( [6 h0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点+ u$ K2 g [5 H( z. F# [6 q+ c0 b
0071BA87 |. 48 |dec eax ; 计数值减1
( F- P. }7 A: x0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi
; u. X' `6 \1 I9 t- w5 q& ]9 v0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax; V' z3 O/ r& e% H- I6 `
0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961
1 [: A [& T- I0071BA96 |> 5F pop edi
( s% t( v5 b: H4 _. q) U/ ^0071BA97 |. 5E pop esi
. X: d' V- ^! C6 z9 l0071BA98 |. 5D pop ebp
1 q$ R9 ^- {9 g' h, m9 `$ ~0071BA99 |. 5B pop ebx
6 R6 M( l1 A/ Z! m# a+ X- i0071BA9A |. 83C4 54 add esp,54# `" u, }% \/ [' t: b
0071BA9D \. C2 1800 retn 18
+ V6 L4 K4 a2 P3 Z3 _; a本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:
) u. O- `0 B! k+ ?% u3 J4 e% k; p& B( E3 o' O$ e! Y2 Z a
buf[x][y]=func(buf[x][y],zm[x/2][y/2])1 _5 j/ L% P8 _( _ [ @
4 p+ \' W3 D# u- d
buf:缓冲区二维数组,两个字节表示一个点
/ F* S, B% _/ o3 }' Tzm:字模二维数组,一个字节表示一个点 |