参数表- ] b. f% o2 \8 G
arg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址0 s5 J9 B# N" o# {& c6 F7 d
arg2:字符串宽度 x& v& y' e7 }' z' ?2 g
arg3:y8 q; q2 U) L3 U
arg4:颜色2 A6 n3 N/ O) f
arg5:与颜色深度有关
# W0 S v# A- U9 b/ farg6:与颜色深度有关. D; g( I$ H/ z
ecx:字符的编码基地址- B0 z# H! R; ]9 P! S
! b5 r; q8 b" f0071B820 /$ 83EC 54 sub esp,54
. E% U' r1 Y: U% M0071B823 |. 53 push ebx
; V. m6 f' g; W7 S0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]% o- l" x) f4 j7 s! Q
0071B828 |. 55 push ebp
4 j* M- V# D$ O5 K! a8 X0071B829 |. 56 push esi( l: G! I6 z: O5 i
0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]2 f. S5 A- \! L1 |0 A) i
0071B82D |. 8BF1 mov esi,ecx1 ^6 A2 P5 t4 s6 F. q& F
0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]
5 y. B8 J [4 A- t0071B832 |. 57 push edi6 M7 B8 f! H* E) [2 i7 q8 u
0071B833 |. 50 push eax
6 G) l- j1 Y, O. C# O0071B834 |. 51 push ecx. E7 {" q( } Q4 \
0071B835 |. 6A 00 push 0; g( c9 S2 G4 `+ ^3 e6 x
0071B837 |. 6A 00 push 0
% `, B) ^, [) T0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]
, W$ k. z& W0 S' ]/ e0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi( u& d$ ^' B0 o, c- [9 ?, i$ j( {# h( P
0071B841 |. E8 6ABCCEFF call heroes4.004074B0
' \$ v6 m, c4 `# |# M0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8], O. ?% ^- o2 D# z) ]! L( d& E" B
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]
0 d) v [9 ]- w* G1 _0071B84C |. 52 push edx
. h2 `6 d# {1 a( E0071B84D |. 50 push eax0 `7 J1 r9 r3 K+ P+ i' J+ y
0071B84E |. 6A 00 push 0
8 Q/ ?5 ?- r- Y# _3 ?! A0071B850 |. 6A 00 push 0, z: z! |6 R2 a/ Y$ z
0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]
+ u' t" W: b, f0071B856 |. E8 55BCCEFF call heroes4.004074B0
' y5 B/ @% n- D2 D) A6 f0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]4 y& e( R9 N J
0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]$ a& R! V8 b" N! Q6 u- _1 q
0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]
0 Y! f( B8 h4 c, X! l4 I+ }2 d0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx
5 A! H* N5 w9 u+ A0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]/ E: u0 @$ A; [' G" T
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx
3 G1 i9 n( n, s- I& d0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C]0 T/ h9 N, f0 O2 U) I; G
0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx
$ F: w7 f+ l% U+ C+ M0071B87B |. 52 push edx0 C0 L# t) p& L5 _
0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]; x+ x( a6 L7 \3 [* A% F
0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax6 r s. F* U1 o
0071B884 |. E8 47BCCEFF call heroes4.004074D0
# s* L- o D: `* [0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]" e/ j: ^; M2 _2 F. z! N
0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]
0 v/ b2 B+ X7 ?4 |0071B891 |. 3BC1 cmp eax,ecx6 }$ ]0 G- W6 f- {: [6 u4 S
0071B893 |. 8BF8 mov edi,eax
& P# h/ l$ B4 }1 ?4 j# V; E0071B895 |. 7C 02 jl short heroes4.0071B8994 E4 T/ t0 A# e& `" Y/ ?* M
0071B897 |. 8BF9 mov edi,ecx
; ~* w& J" Q- a3 F& G0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]; \4 A- L( E* h
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]5 E$ x4 L+ u6 K0 G- ~7 O
0071B8A1 |. 3BC2 cmp eax,edx
2 R/ ^* N4 M2 a1 l5 R/ z0071B8A3 |. 7D 02 jge short heroes4.0071B8A7" Q1 y4 y6 M' Q" k N* `5 R f+ ?
0071B8A5 |. 8BD0 mov edx,eax2 B s3 R G, B1 b+ H# L8 K
0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]
2 q# R/ z& n3 P0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]' T- w4 z+ D% k3 g; q& ^3 m
0071B8AF |. 3BC1 cmp eax,ecx" ]0 e$ j9 y: O8 S
0071B8B1 |. 7E 02 jle short heroes4.0071B8B5& @3 F; T7 j4 t8 s9 y
0071B8B3 |. 8BC8 mov ecx,eax
; H: p+ `6 {, Q+ ?: M6 Q0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]1 h% m% ]7 N* h) Z" x# I
0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]3 }. g- v4 j; K, h. X, K
0071B8BD |. 3BC6 cmp eax,esi3 m5 @4 v# a! f h4 n
0071B8BF |. 7F 02 jg short heroes4.0071B8C3
& F$ u! M" P5 E4 \$ y" @% K9 l6 Z0071B8C1 |. 8BC6 mov eax,esi! P: t" }' i2 k$ A( M$ ^6 J2 \0 K
0071B8C3 |> 57 push edi0 a% @8 t8 A. W
0071B8C4 |. 52 push edx, p. ~; w- s2 E1 }8 z4 n$ w0 g
0071B8C5 |. 51 push ecx' R; {3 T5 n1 s4 S5 v2 Z! Z0 w
0071B8C6 |. 50 push eax
4 |$ i ^9 O/ |1 C0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
! }/ h* c: t( s5 s: }6 G0071B8CB |. E8 E0BBCEFF call heroes4.004074B0/ K% b+ @5 o' G9 ?; i' u$ G
0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]
$ q2 C) m& j7 L+ j: S" i0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]$ w/ f# N8 P& R6 D. l& N
0071B8D8 |. 2BC6 sub eax,esi
0 @9 E. \8 j+ T0071B8DA |. 85C0 test eax,eax
5 p3 Q' E* F" j1 F0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax: _, Y. B* P, K$ r# U# K! p
0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA96. c% r9 a" b, `9 A4 r0 y6 P/ L6 r
0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]) c" g9 e0 |; \9 I( S1 @
0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
: g, J8 h, R" d0 N, a$ o0071B8EE |. 2BE9 sub ebp,ecx
$ A3 S1 G6 V+ `4 M7 I0 o3 E6 L0071B8F0 |. 85ED test ebp,ebp8 r8 o, {8 x4 A/ W' l
0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp/ ]7 ?: k: _3 F- U+ u# K; j
0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96- C% W! x- f7 X5 h$ I) z$ y1 }
0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg29 |& M8 n6 g& Q, ?5 M
0071B900 |. 8BF9 mov edi,ecx
4 H6 w4 `# v7 d# A9 u0071B902 |. 2BF8 sub edi,eax
! k0 p2 x$ z" a+ ~( d) e0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg3
& v. [! E( k% I! i7 V/ f0071B908 |. 8BD6 mov edx,esi9 `! n s; O0 N( B. h2 H/ H4 I1 ^
0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx
) J* B! U1 f7 Y% h; l0071B90E |. 2BD0 sub edx,eax2 H5 f% D. s0 V4 j0 ~ V3 G
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C]9 H* B. }$ A$ U
0071B913 |. 8BD8 mov ebx,eax
7 U; I- z5 l* r) F" P, l0071B915 |. 0FAFDE imul ebx,esi* X; s0 j- @3 T; l' ]
0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]" n, v" v7 Z( v
0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]% \, i/ h5 m: p! O- n/ p$ R
0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]
; F/ u+ U3 E' c L0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]
5 Q, d, _; w! a; }' B5 U0071B926 |. 03F3 add esi,ebx; T* L& Q. C$ o) H3 K6 c3 Q6 W5 O' |
0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]4 [$ {0 _% v0 U+ Q
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)
( l) Y2 {* V0 Z$ x7 V, P0071B92F |. 8BD9 mov ebx,ecx
8 |. l. @; v7 J; [# f. u; I0071B931 |. 2BCD sub ecx,ebp
5 M2 J2 ]/ o( s; v0071B933 |. 0FAFDA imul ebx,edx- m+ g+ Q9 V4 k
0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10], E7 p; O7 d/ ^
0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx
. @( X# R# T2 e3 k1 L ]0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]6 s. N8 L: N3 R* o1 N* w
0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]$ O+ d) X' i# @
0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]
$ G& Y: c' F3 M+ C9 o/ f0 K# r0071B949 |. 2BC1 sub eax,ecx
* d& n3 j1 K" _0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax
) R" |# v+ P( C/ A) U0071B94F |. 03DF add ebx,edi
, m5 _# a$ q5 j t9 M; e0071B951 |. 8BC2 mov eax,edx6 K* d. n; c" S, }% ^% w
0071B953 |. 4A dec edx
; O: L8 Y* T+ d4 |8 g) i2 \3 O0071B954 |. 85C0 test eax,eax
( J/ c7 L" n! K0071B956 |. 0F84 3A010000 je heroes4.0071BA96
" K1 V8 }5 k4 `$ \: K; ~0071B95C |. 42 inc edx
# R5 [3 l& c( s6 a4 c: i0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx3 k4 I: [! p# k' v
0071B961 |> 85ED /test ebp,ebp
5 {0 A: u9 z( o0 X& p- e0071B963 |. 0F84 0E010000 |je heroes4.0071BA77
/ g4 t/ \, }/ l/ V( W) S$ }: R0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]8 o* _: J4 t# B4 k+ u: R% M
0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp
3 O/ l* K% q: C" V+ ?0071B971 |. 25 FFFF0000 |and eax,0FFFF
% O8 X1 F/ B& h! a& A h @ j0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax$ |6 X; L0 y" V2 c9 R- g8 N
0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]5 [8 K/ L9 q5 H# Q) H, w
0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]
& g/ q- b, U" e9 t5 O& [& d2 N0071B984 |. 84C0 ||test al,al1 Q) K! `) {% L8 w1 M# V
0071B986 |. 74 6A ||je short heroes4.0071B9F20 d+ _ ~) q& o" j1 |7 L
0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点* @6 N8 r$ l1 i+ X
0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]
: }& j! G! a5 h/ H/ K+ B6 G0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位
4 A p( z& y7 |+ B( \) X0071B991 |. 25 FFFF0000 ||and eax,0FFFF1 b7 P4 b. }3 f
0071B996 |. 8BF9 ||mov edi,ecx& h y Y' u8 ` P
0071B998 |. 33C9 ||xor ecx,ecx
* v0 {/ M5 N% I4 j0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值
& B& r0 J' e+ W3 O9 [3 P0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0! t) g# M0 O% y' `& J7 k3 B
0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理* t) k; L9 _: h1 f! V
0071B9A1 |. 8BD7 ||mov edx,edi
% S1 i- _/ I. }3 J0071B9A3 |. 8BF1 ||mov esi,ecx# s4 Q8 B0 g0 ~- m" M
0071B9A5 |. C1FA 03 ||sar edx,3
5 {% u( ^7 X4 l% G0071B9A8 |. 83E2 01 ||and edx,1/ b# @ `$ t# o0 ]
0071B9AB |. 03FA ||add edi,edx# M; X0 v- n9 ~7 b' i
0071B9AD |. 8BD1 ||mov edx,ecx# v' q* p7 r' l
0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]' Y% ~/ L0 k& p# w! I: u3 d' R% P' c4 G
0071B9B5 |. 23D5 ||and edx,ebp
; l! f% X8 n* ?# f0071B9B7 |. 23F1 ||and esi,ecx3 ~& y( ]7 y' z( R5 { V6 Y" ~
0071B9B9 |. 8BC8 ||mov ecx,eax, O. O% ]8 l+ |# ]1 s( e
0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]
' x; Q5 p j5 D; U: ^) z/ P0071B9C1 |. 23C5 ||and eax,ebp% P( i3 K, [, y& H
0071B9C3 |. 2BC2 ||sub eax,edx5 a$ V0 G: ?" I7 g9 n5 v8 z" j
0071B9C5 |. 2BCE ||sub ecx,esi
3 K* k( k! ^/ n0071B9C7 |. 0FAFC7 ||imul eax,edi' |+ e) h) J9 P' P- c3 }/ x
0071B9CA |. 0FAFCF ||imul ecx,edi
" E: [/ q8 {$ g/ \" |9 q; l0071B9CD |. C1E6 04 ||shl esi,4% d* H& Y, M( u/ A, G/ ^
0071B9D0 |. 03CE ||add ecx,esi
# P; B1 M: g5 U( T9 i- y7 @ u0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]
, X3 M: W4 t& m2 ~! b0 b$ s1 Q0071B9D8 |. C1E2 04 ||shl edx,42 n2 ^8 n$ z9 b; w5 F
0071B9DB |. 23CE ||and ecx,esi
6 k) I4 ` F$ j0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
+ ?0 X; l( P/ z3 l8 ]( |3 \" |0071B9E3 |. 03C2 ||add eax,edx! P2 O4 M# n3 w( R' i
0071B9E5 |. 23C6 ||and eax,esi
( j" @9 w8 q1 g/ E2 p A0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]3 s5 M- b7 ~9 `7 _" S( v
0071B9EB |. 03C8 ||add ecx,eax
! d7 Y# ~/ J, h0071B9ED |. C1F9 04 ||sar ecx,4
3 b$ s$ I0 K: J5 Z0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F52 f( f) y# \; z4 @$ C, Y
0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]
& { I: t! p5 \$ L& p5 B, W" @' g" Z0071B9F5 |> 33D2 ||xor edx,edx b$ N5 r4 p8 i2 k
0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF- @) j2 S& j7 ~1 D2 E* s
0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]+ O8 R( c( s f7 M2 f1 U* q
0071B9FF |. 8BC1 ||mov eax,ecx
/ q, L( w) @8 ?8 a- O: S0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位! _* _7 N& A+ S% I
0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为07 O/ c, Z+ B2 L/ t' |+ _. W
0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理; q" m" _/ [4 o2 z: {
0071BA08 |. 8BCA ||mov ecx,edx4 q! `" u4 s% k& l3 C5 @5 y
0071BA0A |. 8BF0 ||mov esi,eax
2 d/ ?- f; ^! k$ t* p6 p4 @; N0071BA0C |. C1F9 03 ||sar ecx,3: S5 A" o, U/ Y7 U" \& ?7 h# ^
0071BA0F |. 83E1 01 ||and ecx,1
+ e. p4 R9 B% B7 O. Q* u$ K0071BA12 |. 23F5 ||and esi,ebp
+ g+ `+ H5 P% X0071BA14 |. 03D1 ||add edx,ecx
. d8 ]% b) u' t X4 S* Z b4 u0071BA16 |. 8BC8 ||mov ecx,eax
k2 N1 z; f) ]! g# q0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]
9 ]/ f7 {1 o, T2 c3 s0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]
( @1 ^/ I; J) _) M+ e3 ~2 ]0071BA22 |. 23C5 ||and eax,ebp
7 g) I2 A1 m# ~0071BA24 |. 23CF ||and ecx,edi
+ r/ d* J* v# t0 {/ g% ~* w0071BA26 |. 2BC6 ||sub eax,esi
6 k6 ~' B) u! F- I* Q0071BA28 |. 0FAFC2 ||imul eax,edx# B+ |1 |% @2 A
0071BA2B |. C1E6 04 ||shl esi,4 q3 U- U( R, W& N4 v
0071BA2E |. 03C6 ||add eax,esi
, G) O% R4 N1 @0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
4 r; w7 u: i& U0071BA36 |. 23C6 ||and eax,esi
* _5 ~( ~& G. M0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]) Z( P x+ `; `+ Y* h- B2 h# D! g
0071BA3C |. 23F7 ||and esi,edi
4 [8 m, D, l1 u$ r( J* [0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]
+ g5 m! j0 a9 L) K0071BA44 |. 2BF1 ||sub esi,ecx
1 K! m: D4 G& ` c0 R- N0071BA46 |. 0FAFF2 ||imul esi,edx
) E9 y3 c0 I7 a0071BA49 |. C1E1 04 ||shl ecx,4" d2 x3 t% w) `. Y
0071BA4C |. 03F1 ||add esi,ecx. { D$ `/ g% \% }
0071BA4E |. 23F7 ||and esi,edi
3 h: K6 c$ X9 r9 s/ ~0 d4 x, n0071BA50 |. 03C6 ||add eax,esi
6 l8 W( |; x6 K/ f0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
6 d5 `* d( T1 j% @0 @0071BA56 |. C1F8 04 ||sar eax,4
- Y: X1 o0 t! j0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处4 ]8 W% _4 c3 m* K5 }
0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]. o6 d, W; F4 G( X' u. x
0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点: r2 W- _" b- }: Y2 A4 W) N
0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点/ K" k2 `& l- C
0071BA64 |. 48 ||dec eax ; 计数值减1$ ?% e! \5 T1 G
0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi# P6 A- I$ ]9 ^- h6 \+ z& V
0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax4 B3 `+ n W4 N" X J- Z$ q
0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A% h5 d4 n6 d8 k& O! Q# C3 |
0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]" k7 p/ l- N- e! O# ]4 G; ]
0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]
4 t) m% a! u% Z- V6 i% o0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]! H7 Y0 b5 ^% p: K m+ [: ~$ s
0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]/ ?2 z1 o- \% v) x$ A+ I
0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点5 t# n& o9 f2 l4 ]
0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点
V- \. S" H. h$ Z: W3 ^: x0071BA87 |. 48 |dec eax ; 计数值减1, Z. _* Z. S, a$ n7 z/ Q
0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi
# n5 Y4 c- Q; E0 O# A& w0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax; C2 \( c6 H. s7 P. ~
0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B9617 r( x, W) O p$ w( l2 y: y& v4 j
0071BA96 |> 5F pop edi) G+ R6 ?4 n& c" M4 u% K; E& J& D# U
0071BA97 |. 5E pop esi2 w+ O+ z- B2 F2 `) ^0 Q
0071BA98 |. 5D pop ebp
' l5 r7 m" a, S E0071BA99 |. 5B pop ebx+ X/ r: q! E" w, o6 S F4 e
0071BA9A |. 83C4 54 add esp,54
( |# w) w/ ^2 v7 q( M6 t0071BA9D \. C2 1800 retn 181 ?% L5 {& h2 H( U3 A( C1 s$ z
本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:9 P R# {" Z" ]- h! n# d4 K
6 t" q0 H. M* f+ o& x
buf[x][y]=func(buf[x][y],zm[x/2][y/2])
' `1 A9 p5 U t+ n5 K1 X9 J. q y; x I F' z
buf:缓冲区二维数组,两个字节表示一个点+ Z7 h7 o: c3 w
zm:字模二维数组,一个字节表示一个点 |