Parse simple Input file and generate output file


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 [login to view URL] [login to view URL] 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"










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











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:
( 65 reviews ) Jerez de la Frontera, Spain

Project ID: #13134032

Awarded to:

$36 USD in 2 days
(1341 Reviews)

20 freelancers are bidding on average $152 for this job

$80 USD in 1 day
(282 Reviews)
$333 USD in 7 days
(53 Reviews)

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
(131 Reviews)

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
(55 Reviews)

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
(7 Reviews)

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 - [login to view URL] I assure you t More

$50 USD in 1 day
(53 Reviews)
$100 USD in 0 days
(46 Reviews)

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)

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
(11 Reviews)

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)

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)

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

$444 USD in 3 days
(1 Review)

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)

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)

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

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)

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

$300 USD in 5 days
(0 Reviews)

A proposal has not yet been provided

$155 USD in 3 days
(0 Reviews)