C++ program to parse assembly instructions

Cerrado Publicado hace 7 años Pagado a la entrega
Cerrado Pagado a la entrega

Accept file name consisting of assembly language instructions in a single argument. The file can have a series of assembly-language instructions forming a short assembly-language program.

Program should read the file 1 line at a time using a state-machine approach.

Each line of the file should be either a complete assembly instruction and all necessary data, and possibly a comment or a blank line or a comment line or a label or directive.

A complete instruction will be an instruction and its associated data including OPCODE and OPERANDS. The OPCODE will be separated from its OPERANDS with

whitespace (either blanks or tabs). OPERANDS will be separate from each other by a comma (“,”) and possibly by additional whitespace. Treat the OPCODE and OPERANDS as the “events” on which we wish to switch the state machine.

Trailing commas, incorrect or missing OPERANDS should not be accepted and an error message needs to be printed. Program should keep track of the total number of assembly instructions and their category. For the purpose of categories, there are three broad types: Load/Store instructions, Arithmetic-and-Logic-Unit instructions, and Compare-and-Jump instructions. After parsing the entire file, you should display on cout the totals for each of these categories.

Programación en C++

Nº del proyecto: #12039871

Sobre el proyecto

10 propuestas Proyecto remoto Activo hace 7 años

10 freelancers están ofertando un promedio de ₹3075 por este trabajo

wizard2015

Dear sir/madam, I am experienced developer (please check my freelancer profile and customer reviews for more details) and probably I can complete this project for you. Please provide full project description in the doc Más

₹7222 INR en 3 días
(33 comentarios)
5.4
octopus823

Hi, I'm a OS expert experienced C/C++/ObjC developing. I can develop almost kinds of C/C++/ObjC codes for any OS : Windows, Linux, MAC OS X... I can use almost of develop libraries such as QT, MFC, boost... and IDE t Más

₹7368 INR en 2 días
(31 comentarios)
5.5
yamaf555

Hello,how are you? I have some experience in developing c++ programming And I can carry out your any proposal in time completely. I have mind to perform the task anytime. I look forward for working with you. I ho Más

₹3000 INR en 1 día
(24 comentarios)
4.7
raulbehl

Hello! Please check my profile/reviews to know a bit about me. It would be great if I could help you out. Thank you!

₹1650 INR en 1 día
(4 comentarios)
2.8
LAndrew22

I'm assuming you don't require the use of a parser framework for this project and it should be written from scratch. I will need a reference for the assembly language in question.

₹1400 INR en 1 día
(1 comentario)
0.4
Sujeetlahare

better knowledge and professional for coding

₹1450 INR en 7 días
(0 comentarios)
0.0
ShaanKathuria

Hi, I am Shaan I have 5+ years of experience in C++ in developing gui applications I have very good experience with xml, json, html, binary reader writer libraries. I can successfully completed your project within Más

₹750 INR en 2 días
(1 comentario)
0.0
tadevos1

Hello, send please asm file example. I need to understand what kind of assembly language referred to ( arm, mips, x86, x386, 32 or 64 bit, ....) lot of assemblers and they are different. " incorrect or missing OPERA Más

₹7111 INR en 4 días
(0 comentarios)
0.0
twiebs

I have written several compilers before and many, many parsers. I am familiar with assembly languages.

₹750 INR en 3 días
(0 comentarios)
0.0