![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-13 23:09 |
47,812 topics / 349,916 posts / today 0 new / 48,268 members |
| 论坛回收站 » Please clarify the specific content of "P processing" you mentioned. Could you provide more context or details about what kind of "P processing" it is? |
| Printable Version 1,848 / 11 |
| Floor1 loquat | Posted 2010-04-30 13:49 |
| 初级用户 Posts 80 Credits 81 | |
|
I have a file where each line is in this format.
0000: 0xA0090590 ; 0: void loopback0() Convert all to: 0000: 00000000 900509A0 ; 0: void loopback0() If a line is in this format. If there is a semicolon comment at the beginning, do not process it. ;wxyz: 0xA0DDEEFF ; x: void func() |
|
| Floor2 Hanyeguxing | Posted 2010-04-30 15:09 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
|
The LZ should post several more lines and explain which parts are fixed and which parts are variable.
|
|
| Floor3 loquat | Posted 2010-04-30 16:05 |
| 初级用户 Posts 80 Credits 81 | |
|
[ Last edited by loquat on 2010-4-30 at 16:11 ] |
|
| Floor4 yishanju | Posted 2010-04-30 17:08 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
Originally posted by Hanyeguxing at 2010-4-30 15:09: - -Requires uploading sample text. |
|
| Floor5 loquat | Posted 2010-04-30 17:13 |
| 初级用户 Posts 80 Credits 81 | |
|
Upload after eating.
This is the file... The requirement is to add 00000000 to the middle part, and then invert every two digits... [ Last edited by loquat on 2010-4-30 at 18:50 ] |
|
| Floor6 freeants001 | Posted 2010-04-30 17:58 |
| 中级用户 Posts 244 Credits 330 From 湖北 | |
Originally posted by loquat at 2010-4-30 13:49: Inverse every two bits ;) The building owner still uses VBS, js, or C...... P handles bit operations, (check bit operations in set /?), which is not simple... |
|
| Floor7 loquat | Posted 2010-04-30 18:51 |
| 初级用户 Posts 80 Credits 81 | |
|
VBS can also be used. Who will help write one? I don't want to do this P processing, but use this file to import into IDA to learn things...
|
|
| Floor8 slore | Posted 2010-04-30 19:10 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
He said that two-digit bitwise NOT operation turns the address format ABCD into DCBA (where A, B, C, D are all two digits).
0000: 0xA0090590 0000: 00000000 900509A0 |
|
| Floor9 loquat | Posted 2010-04-30 19:32 |
| 初级用户 Posts 80 Credits 81 | |
|
My double - bit inversion should be ABCD <-> CDAB
|
|
| Floor10 yishanju | Posted 2010-04-30 19:48 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
- -Hey
fr -ric:"(ab)(cd)" -t:"\2\1" This can achieve the swap. fr -ric:"(ab)(cd)" -t:"000000 \2\1" Add zeros at the front [ Last edited by yishanju on 2010-4-30 at 19:54 ] |
|
| Floor11 Hanyeguxing | Posted 2010-04-30 19:52 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
|
```@echo off&setlocal enabledelayedexpansion
(for /F "eol=# delims=" %%a in (a.txt) do set a=%%a&if "!a:~0,1!"==";" (echo.%%a) else for /F "tokens=1,2* delims=:;" %%b in ("%%a") do set c=%%c&echo.%%b: 00000000 !c:~9^,2!!c:~7^,2!!c:~5^,2!!c:~3^,2! ;%%d)>b.txt``` |
|
| Floor12 freeants001 | Posted 2010-04-30 20:23 |
| 中级用户 Posts 244 Credits 330 From 湖北 | |
|
Forgot to pad with leading zeros, add ;)
[ Last edited by freeants001 on 2010-4-30 at 20:35 ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |