Find Jobs
Hire Freelancers

ASM code for a binary version of strstr()

$10-30 USD

Completed
Posted about 10 years ago

$10-30 USD

Paid on delivery
I simply need a ASM function (to use in a c++ program) that does the same thing than strstr but including any characters (binary). Say the function is binbin(): char dataToCheck[100000]; char dataToFind[16]; int position=binbin(dataToCheck, dataToFind); position will receive the position of the string dataToFind in dataToCheck if it is found or -1 else.
Project ID: 5427542

About the project

5 proposals
Remote project
Active 10 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
Hello I am C/C++ expert and I am experienced with ASM too. What is target OS/assembler? is it OK to use Visual Studio?
$16 USD in 1 day
5.0 (206 reviews)
6.0
6.0
5 freelancers are bidding on average $20 USD for this job
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
4.8 (13 reviews)
4.8
4.8
User Avatar
Hello, I can solve your problem. I use MASM32 assembler and VS C++ 2010. It will be a dll(along with lib file) and C++ driver program for testing. It's not quite clear what you mean by character and binary. Better describe what you're trying to achieve. strstr already performs bytewise(binary?) comparison of two strings. Do you need a function for wide chars or ints to be compared?
$15 USD in 1 day
5.0 (22 reviews)
4.5
4.5
User Avatar
Hi. I can help you on this project .
$25 USD in 1 day
5.0 (12 reviews)
4.3
4.3
User Avatar
This is a straight forward job. I do have a few questions about the type of solution you're looking for. I am assuming that you want a solution for the x86, but there are a number of details that will need to be known to do a proper solution. 1. Do you want this for 16-bit mode, 32-bit mode, or 64-bit mode? 2. What about Windows vs Linux? (Windows and Linux have different interface for 64-bit assembly). 3. I can whip up a simple solution (small, but possibly very slow on large data sets), or I can whip up a more complicated solution that would on average be faster, but be larger and take more stack space. 4. Also, what assembler would you like this written for? TASM? MASM? GAS? NASM? Other? By the way, strstr() can get away with two parameters as the strings are terminated with a NUL character (0 byte). When comparing two binaries, we can not rely on such a convention, and so four parameters are required (two are pointers, and two are sizes).
$20 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of FRANCE
Bourg de peage, France
5.0
41
Payment method verified
Member since Dec 23, 2003

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.