Re: a little program for format asm code
- From: "rio" <a@xxx>
- Date: Sat, 16 Aug 2008 08:12:03 +0200
"rio" <a@xxx> ha scritto nel messaggio
news:48a66520$0$40306$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
"rio" <a@xxx> ha scritto nel messaggio
news:48a554aa$0$40305$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
<+File pretty2.zip(4.45Kb)>
Do you like my last program for formatting asm code?
nasme -fobj pretty2.asm
alink -oPE pretty2.obj Win32.lib
Is it possible to use [in a PE]
the same console that make it run for input-output?
some little change for take count of "do", "dy"
\0x96, global, extern, resb,resw, resd
don't know if it is ok
i did make some test and there is something wrong
possibly my program add some instruction
it result that the obj code of the same file has 4 bytes more
than the other and the change seems to be in the start of these
obj files
Obj1
00000000 800800 or byte [eax],0x0
00000003 06 push es
00000004 7472 jz 0x78
00000006 2E61 cs popa
00000008 736D jnc 0x77
0000000A 1D88210000 sbb eax,0x2188
0000000F 001D54686520 add [0x20656854],bl
00000015 4E dec esi
00000016 657477 gs jz 0x90
-------------------------------------------------------
from here seems the same
00000019 6964652041737365 imul esp,[ebp+0x20],dword 0x65737341
00000021 6D insd
00000022 626C6572 bound ebp,[ebp+0x72]
00000026 2030 and [eax],dh
00000028 2E3938 cmp [cs:eax],edi
0000002B 2E3338 xor edi,[cs:eax]
0000002E E396 jecxz 0xffffffc6
00000030 1800 sbb [eax],al
00000032 00055F444154 add [0x5441445f],al
*******************************************************
Obj2
00000000 800C000A or byte [eax+eax],0xa
00000004 7472 jz 0x78
00000006 5F pop edi
00000007 42 inc edx
00000008 7466 jz 0x70
0000000A 2E61 cs popa
0000000C 736D jnc 0x7b
0000000E 9A88210000001D call 0x1d00:0x2188
00000015 54 push esp
00000016 6865204E65 push dword 0x654e2065
0000001B 7477 jz 0x94
-----------------------------------------------------
0000001D 6964652041737365 imul esp,[ebp+0x20],dword 0x65737341
00000025 6D insd
00000026 626C6572 bound ebp,[ebp+0x72]
0000002A 2030 and [eax],dh
.
- Prev by Date: Re: announce: my very first disassembler now available (GPL)
- Next by Date: Re: announce: my very first disassembler now available (GPL)
- Previous by thread: Re: a little program for format asm code
- Index(es):