In Progress

Parse simple Input file and generate output file

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.

Skills: C Programming, C++ Programming

See more: 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

About the Employer:
( 62 reviews ) Jerez de la Frontera, Spain

Project ID: #13134032

Awarded to:

$36 USD in 2 days
(1287 Reviews)
7.4

22 freelancers are bidding on average $147 for this job

$80 USD in 1 day
(232 Reviews)
6.7
$333 USD in 7 days
(48 Reviews)
5.9
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 More

$70 USD in 2 days
(110 Reviews)
6.0
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 More

$166 USD in 3 days
(45 Reviews)
4.9
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 More

$100 USD in 3 days
(8 Reviews)
5.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 More

$155 USD in 3 days
(4 Reviews)
5.1
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 - [url removed, login to view] I assure you t More

$50 USD in 1 day
(53 Reviews)
4.8
$100 USD in 0 days
(30 Reviews)
4.4
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 in 1 day
(14 Reviews)
4.1
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 More

$200 USD in 3 days
(4 Reviews)
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 More

$100 USD in 2 days
(3 Reviews)
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 in 3 days
(6 Reviews)
3.0
shaheen23

Hello , Greetings from Passionate Futurist Solutions Pvt. Ltd As per your project description you want to parse simple input file and generate output file. The idea sounds good, we will provide you fully creative ou More

$155 USD in 3 days
(1 Review)
2.1
samyotechit

Hi, The reference are below which is developed by us. Some projects we did under NDA. Android: [url removed, login to view] [url removed, login to view] More

$444 USD in 3 days
(1 Review)
0.8
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 More

$277 USD in 3 days
(0 Reviews)
0.0
ashuawasthi15

I have experience as SEO, Graphic Design, HTML, PHP, web developer and designer,and content writer I have co-workers with honest-work experience to development compelling and attractive a web and graphics designs, my More

$35 USD in 3 days
(0 Reviews)
0.0
$55 USD in 2 days
(0 Reviews)
0.0
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 More

$194 USD in 6 days
(0 Reviews)
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 in 3 days
(0 Reviews)
0.0
dritorres

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

$300 USD in 5 days
(0 Reviews)
0.0