Completed

Add to my Bash script that fines lines of text in a file output from a disassembler

Using either the original Bash script or replacing it with a Python script, I want you to take the attached script and add some functionality.

At the moment the script does a few simple functions such as calculating the whole file checksum, partial file checksum and filename to stdout.

As well as that it parses the first part of files larger than 32K through z80dasm and finds instructions of the following format

ld (0x1243),a

and also lists these in the output which currently looks like the attached file mapper_info.txt.

What I want to do is the following.

First is there is a limitation of 64K for the Disassembler but some files can be greater that 64K, so simply break the files into smaller sections and feed them to the disassembler in turn.

Secondly I want to search through for a specific set of addresses. For example the following

CRC32 0ad36e2b

First-8K fb58fbf7

Gekitotsu Pennant Race - Pro Yakyuu, The (Japan) (Alt 2).rom

ld (05000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

ld (04f2eh),a ## Contains 07000h

true

Contains ALL the opcodes

ld (05000h),a

ld (07000h),a

ld (09000h),a

ld (0b000h),a

So we will output a field we shall call "Type", in this case the Type is "KMEGA", another example

----

CRC32 96b33497

First-8K ce95dd87

Topple Zip (Japan).rom

ld (06000h),a

ld (06800h),a

ld (07000h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a

ld (07800h),a ## Contains 07000h

the type is ASC8 (i.e. contains address values 6000h, 6800h,700h,7800h)

Skills: Python, Shell Script

See more: average text file output input visual basic, read lines text file, script numbering large text file, add lines text file shell script, html read text file output, perl script find data text file, cgi read last lines text file, bash script changing variables config file, shell script delete lines beginning file, php script read emails text file, shell script delete lines starting file linux, program read lines text file, sql script create daily text file, checking blank lines text file using perl script, php script read part text file, sorting lines text file, perl script search number text file, count lines text file using script, run script count lines text file, matlab script remove lines text file

About the Employer:
( 207 reviews ) Hong Kong, Hong Kong

Project ID: #28218200

Awarded to:

Leoflance

Hi Alex, I think I can add all needed functionality to the script (not sure what is better - bash or python or both). The only obstacle is is to disassemble the file bigger than 64k - we must be sure that it will work More

$80 USD in 7 days
(8 Reviews)
4.1

7 freelancers are bidding on average $96 for this job

youssefEngineer

Hello sir, i'm python expert, i worked on parsers before & binary files i would help but if you can please explain me in more details this projects, i still have some questions, i'm looking forward for your response More

$100 USD in 3 days
(11 Reviews)
4.7
forgeahead

Having 8 years of experince in pythone. Lets connect on chat for more discussion. Thanks ===========================================================

$110 USD in 2 days
(1 Review)
3.5
TheLKteam

Dear Prospective Client, I've been developing python algorithm for several years and I have some experience with bash coding. Having read your project description carefully and viewed all the attaced files, I would li More

$100 USD in 5 days
(2 Reviews)
3.1
chanmanchanda

Hi, I've 20+ years experience in Linux system admin, bash scripting is always part of my job. I've study in detail on your requirement and I can do that by adding function to existing script file. Please feel free to More

$85 USD in 7 days
(6 Reviews)
2.5
leoher96

Hi There, I would be glad to help you with this task. I can develop it on linux (On top of your script) or add a new python script, as you prefer. Let's discuss the details on chat. Regards

$100 USD in 7 days
(2 Reviews)
1.4
sparxsols11

Mean Stack developer is here!@.Thank you for giving me a chance to bid on your project. I having similar technical skills & experience & have already worked on a similar project before I have read your requirements a More

$100 USD in 2 days
(0 Reviews)
0.0