Parse simple Input file and generate output file

Đang Thực Hiện

Hello,

I need a simple command line application (in C/C++ with Visual Studio) that accepts

one input file and generate one output (parsed) file. The command line arguments are:

ParseTests [url removed, login to view] [url removed, login to view] test_name bits

"test_name" is just a simple string (word)

"bits" can be the string "32" or the string "64"

This is an example test input file:

*************************************

Test Number: 0

-------------------

04240000h push eax

04240001h mov eax, DEAD14C6h

04240006h add cx, word ptr [eax]

04240009h pop eax

0424000ah jnp 04240012h

04240010h shl cl, cl

04240012h jmp 04240018h

04240013h mov eax, DEAD052Ah

04240018h and word ptr [eax], 38B8h

Test Number: 1

-------------------

04240000h push edx

04240001h ja 04240024h

0424001ch pop ebx

0424001dh jnl 0424002Bh

04240023h push esi

04240024h jbe 04240029h

04240029h mov dword ptr [esi], edx

0424002bh pop esi

*************************************

The output file is generated as following:

1) Replace all "DEAD" strings with "0DEAD"

2) Replace all " ptr [" with " ["

3) This is the one a bit more complex:

All jump instructions (JMP, JNZ, JZ, JA, JAE, JBE, JB, JG, JGE, JL, JLE, JNO,

JNP, JNS, JO, JP, JS) contains an address next to it.

That address should be converted as "labelX" (X is an incremental counter)

In the left column, you can see an hexadecimal address. That hexadecimal address

is removed, but the ones that are referenced by "jumps" are converted at the

corresponding label. Please, look at the output file for better understanding

This is the output file for the above example (notice that some "headers" are

generated). Notice that "32" (in the BITS section) is taken from the command line

argument "bits". Suppose that we passed as "test_name" command line argument the

string "test_random"

*************************************

[test_random_1]

{

BITS

{

32

}

EXECUTE

{

push eax

mov eax, 0DEAD14C6h

add cx, word [eax]

pop eax

jnp label1

shl cl, cl

label1: jmp label2

mov eax, 0DEAD052Ah

label2: and word [eax], 38B8h

}

}

[test_random_2]

{

BITS

{

32

}

EXECUTE

{

push edx

ja label1

pop ebx

jnl label2

push esi

label1: jbe label3

label3: mov dword [esi], edx

label2: pop esi

}

}

*************************************

Attached you have a longer input file sample so you can test better.

Kỹ năng: Lập trình C, Lập trình C++

Xem thêm: simple java file output, script bash parse file output, simple parse xml file, generate report simple text file, php parse simple xml file, parse simple text file, parse file free lance, download simple xls file, parse file, parse file java add database, using excel parse file, parse file java, creating simple avi file linux, java parse file, python parse file database

Mã Dự Án: #13134032

Đã trao cho:

$36 USD trong 2 ngày
(1250 Đánh Giá)
7.4

23 freelancer đang chào giá trung bình $148 cho công việc này

$80 USD trong 1 ngày
(215 Đánh Giá)
6.7
yamaf555

Oh,friendly dear!!! I have the expensive experience of 5 years in developing C/C++ programming, and can carry out your any proposal in time completely. I understand your proposal enough,so I have mind to perform t Thêm

$155 USD trong 3 ngày
(61 Đánh Giá)
5.7
$333 USD trong 7 ngày
(41 Đánh Giá)
5.6
wangbeizou

Hello. How are you. I have read and understood the project. I'm an Expert in Data Structures and Algorithms. And I know well ; Java ,C/C++, Python ,PHP. I'm interested this project. So, firstly I want to discu Thêm

$70 USD trong 2 ngày
(61 Đánh Giá)
5.3
ranganathp

FREELANCER RECOMMENDED ------------------------------------------------------ Can help... I am an Expert... Lets Start! Please start a Discussion with me and we can get started from there... Please check the past p Thêm

$100 USD trong 3 ngày
(7 Đánh Giá)
4.9
bencubeben

Hello, I am a software engineer (Google) and I have been doing various projects using C++ and Java and I also rank amongst the top 100 coders from India. Link - codeforces.com/profile/bernett I assure you t Thêm

$50 USD trong 1 ngày
(48 Đánh Giá)
4.7
abhijitbuet

Expert in C,C++ having 5 years of experience working with these language.I have done similar projects like this recently and completed 162 projects successfully. If I get details,I can finish this within a shorter p Thêm

$166 USD trong 3 ngày
(18 Đánh Giá)
4.2
$100 USD trong 0 ngày
(23 Đánh Giá)
4.2
BeautiCG

Hi,dear. Thank you for your interest. I have just checked your project report,I am able to perform this task with my developer team.I look forward to your proposal...

$155 USD trong 1 ngày
(11 Đánh Giá)
3.8
jpStar

Dear sir I have just read your description I have following technologies and skills : - Unity3D and Creating a Game o AR(Augmented Reality) System o 3D, 2D GAME o PC, Android, iPhone Built Thêm

$155 USD trong 3 ngày
(4 Đánh Giá)
2.8
ficusdev

Hi I have many years of experience with C++ and a big part of it is related to working parsing and transforming files. The transformations you described are quite simple, so I think there will be no problems with th Thêm

$100 USD trong 2 ngày
(3 Đánh Giá)
2.7
lingung525

Hi, I am a C/C++ programmer. I am very familiar with parse simple Input file and generate output file. I can do this project perfectly. Thanks.

$50 USD trong 3 ngày
(3 Đánh Giá)
2.9
samyotechit

Hi, The reference are below which is developed by us. Some projects we did under NDA. Android: https://play.google.com/store/apps/details?id=com.remind https://play.google.com/store/apps/details?id=com.samyotech.pu Thêm

$444 USD trong 3 ngày
(1 Đánh Giá)
0.8
rapidsoft4

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c Thêm

$194 USD trong 6 ngày
(0 Đánh Giá)
0.0
dritorres

Would it be possible to complete this project in Python? Thanks.

$300 USD trong 5 ngày
(0 Đánh Giá)
0.0
jeevalakshmi1994

A proposal has not yet been provided

$155 USD trong 3 ngày
(0 Đánh Giá)
0.0
masterlancer999

Hi I am a Chinese Developer HuangLong. I read your job posting and I am very interested. I have a full experience in c, c++ programming. I can finish your work in 1 day. Please give me a chance to work for you. T Thêm

$155 USD trong 3 ngày
(0 Đánh Giá)
0.0
huongth

Hi. I am an expert in VBA, VBScript, Visual Basic, C#, C, C++, ASM, Delphi, Java, Flash, ASP, ASP.NET, Access, MySQL, MSSQL, QuickBooks, Oracle. I can create auto scripts to scrape websites, auto click, format txt, csv Thêm

$200 USD trong 3 ngày
(0 Đánh Giá)
0.0
vrickson

Dear Sir, SCOPE : Command line program in C++ / C# We can do it , let us discuss more. Technologies we work @vrickson : (a )Websites / Web Portals / Software ( PHP/WP/Pearl/ASP.Net/C/C++/C# / GoAlang Thêm

$277 USD trong 3 ngày
(0 Đánh Giá)
0.0
lucascp2prof

Ok, that's a pretty fast work to me. It'll be done in no time. I am a programmer specialized in coding Java and C. I can do a nice price for you, but I will appreciate a nice review too :)

$30 USD trong 3 ngày
(0 Đánh Giá)
0.0