看了一下楼上发的连接,和俺的对比了一下
最终效果
比俺发的
体积要大上一点点,效率上要差一点点!
主要区别是类似db的单字节输出需要3倍代码而类似dw的双字节输出只需要2.5倍代码即可,8字节输出貌似debug不支持!
不过思路很好,可以修改为我那样的输出格式!
附:
@echo off
>nul (chcp 437&graftabl 936)
more +6 %0|debug
2>nul del /a /q /f new_.COM&ren tmp_ new_.COM
pause
exit/b
e 100 8A 0E 80 00 89 CD 81 C5 81 00 80 F9 08 7F 09 CD
e 110 16 80 F9 01 7F 68 EB 64 BE 83 00 E8 65 00 E3 5A
e 120 E8 73 00 3C 18 7F 53 88 C6 E8 57 00 E3 4C E8 65
e 130 00 3C 4F 7F 45 88 C2 B0 02 F6 E2 50 B0 A0 F6 E6
e 140 5F 01 C7 E8 3D 00 E3 32 87 C3 3C 39 7E 02 04 09
e 150 80 FB 39 7E 03 80 C3 09 24 0F 80 E3 0F C0 E0 04
e 160 08 D8 50 B8 00 B8 50 07 5A 29 F5 89 E9 EB 46 AC
e 170 AC AC AC AC E2 F7 B4 4C CD 21 EB FA 88 E0 B4 4C
e 180 CD 21 AC AC 3C 20 75 04 E2 F9 EB 09 88 C3 AC 3C
e 190 20 75 02 E2 F9 C3 87 C3 2C 30 80 EB 30 B4 0A F6
e 1A0 E4 00 D8 C3 53 59 42 4E D0 DE B8 C4 32 30 30 39
e 1B0 31 32 31 35 24 AC 3C 24 74 0A AA 88 D0 AA E2 F5
e 1C0 EB B4 EB B2 49 E3 AF 49 E3 AC E8 B6 FF E3 A7 87
e 1D0 C3 3C 39 7E 02 04 09 80 FB 39 7E 03 80 C3 09 24
e 1E0 0F 80 E3 0F B2 10 F6 E2 00 D8 88 C2 E2 C7 EB 86
rcx
F0
n tmp_
w
q
Last edited by sl543001 on 2010-1-22 at 13:06 ]
I took a look at the link posted by the person above and compared it with mine.
Final result
Compared to mine , the volume is a bit larger and the efficiency is a bit lower!
The main difference is that single-byte output similar to db requires 3 times the code, while double-byte output similar to dw only requires 2.5 times the code. 8-byte output seems that debug doesn't support it!
But the idea is very good, it can be modified to my output format!
Attachment:
@echo off
>nul (chcp 437&graftabl 936)
more +6 %0|debug
2>nul del /a /q /f new_.COM&ren tmp_ new_.COM
pause
exit/b
e 100 8A 0E 80 00 89 CD 81 C5 81 00 80 F9 08 7F 09 CD
e 110 16 80 F9 01 7F 68 EB 64 BE 83 00 E8 65 00 E3 5A
e 120 E8 73 00 3C 18 7F 53 88 C6 E8 57 00 E3 4C E8 65
e 130 00 3C 4F 7F 45 88 C2 B0 02 F6 E2 50 B0 A0 F6 E6
e 140 5F 01 C7 E8 3D 00 E3 32 87 C3 3C 39 7E 02 04 09
e 150 80 FB 39 7E 03 80 C3 09 24 0F 80 E3 0F C0 E0 04
e 160 08 D8 50 B8 00 B8 50 07 5A 29 F5 89 E9 EB 46 AC
e 170 AC AC AC AC E2 F7 B4 4C CD 21 EB FA 88 E0 B4 4C
e 180 CD 21 AC AC 3C 20 75 04 E2 F9 EB 09 88 C3 AC 3C
e 190 20 75 02 E2 F9 C3 87 C3 2C 30 80 EB 30 B4 0A F6
e 1A0 E4 00 D8 C3 53 59 42 4E D0 DE B8 C4 32 30 30 39
e 1B0 31 32 31 35 24 AC 3C 24 74 0A AA 88 D0 AA E2 F5
e 1C0 EB B4 EB B2 49 E3 AF 49 E3 AC E8 B6 FF E3 A7 87
e 1D0 C3 3C 39 7E 02 04 09 80 FB 39 7E 03 80 C3 09 24
e 1E0 0F 80 E3 0F B2 10 F6 E2 00 D8 88 C2 E2 C7 EB 86
rcx
F0
n tmp_
w
q
Last edited by sl543001 on 2010-1-22 at 13:06 ]