flat assembler
Message board for the users of flat assembler.
Index
> Windows > how to understand those assembly code well. |
Author |
|
jacky_zz 10 Oct 2007, 09:00
i find some assembly code, but i can not unstandard it well, could someone convert it into c++ code?
****************code begin**************** procedure _FillLongwordRect(Src: Pointer; W, H, X1, Y1, X2, Y2: Integer; Value: Longword); asm PUSH EDI PUSH EAX PUSH EBX PUSH ECX PUSH EDX MOV EDI, EAX XOR EBX, EBX XOR EAX, EAX MOV EBX, W MOV EAX, Y1 MUL EBX ADD EAX, X1 ADD EDI, EAX ADD EDI, EAX ADD EDI, EAX ADD EDI, EAX MOV EBX, X2 SUB EBX, X1 INC EBX TEST EBX,EBX JS @exit MOV EDX, Y2 SUB EDX, Y1 INC EDX TEST EDX,EDX JS @exit MOV EAX, VALUE @1: PUSH EDI MOV ECX, EBX CLD REP STOSD POP EDI POP ECX ADD EDI, ECX ADD EDI, ECX ADD EDI, ECX ADD EDI, ECX PUSH ECX DEC EDX CMP EDX, 0 JNE @1 @exit: POP EDX POP ECX POP EBX POP EAX POP EDI end; ****************code end****************
|
|||||||||||
10 Oct 2007, 09:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.