Find Jobs
Hire Freelancers

Parse simple Input file and generate output file

$30-250 USD

Completed
Posted about 7 years ago

$30-250 USD

Paid on delivery
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 [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" ************************************* [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.
Project ID: 13134032

About the project

18 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
$36 USD in 2 days
4.9 (1528 reviews)
7.8
7.8
18 freelancers are bidding on average $145 USD for this job
User Avatar
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 discuss with you about this project. Then I'll be happy. I wait for your good reply. Thanks.
$70 USD in 2 days
4.9 (164 reviews)
6.4
6.4
User Avatar
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. Thanks.
$155 USD in 3 days
4.5 (8 reviews)
5.8
5.8
User Avatar
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 projects I have handled and check my reviews for what employers have to say about my work... Can start right now...
$100 USD in 3 days
5.0 (8 reviews)
5.0
5.0
User Avatar
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 period of time
$166 USD in 3 days
4.9 (55 reviews)
5.1
5.1
User Avatar
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, xls, xlsx, doc, docx, rtf, json, xml, database files as you request. I can start right now
$200 USD in 3 days
3.9 (11 reviews)
4.1
4.1
User Avatar
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 the project.
$100 USD in 2 days
5.0 (3 reviews)
2.7
2.7
User Avatar
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.0 (0 reviews)
0.0
0.0
User Avatar
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 objective is to make a positive impact on clients,co-workers,honest-work and the Internet using my skills and experience to development compelling and attractive websites. I usually works on projects that involve a mix of Content writing web and, web development,Graphic Design,database management and programming..You will get on time project assure you best quality work & 100% Satisfaction.
$35 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 checked your requirements.i have right skills to work on this assignment my award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner. can u provide your email or sky-pe etc for further discussion about the project. I am ready to discuss with you with best Regards
$194 USD in 6 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Would it be possible to complete this project in Python? Thanks.
$300 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SPAIN
Jerez de la Frontera, Spain
5.0
71
Payment method verified
Member since Sep 22, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.