C++ program to parse assembly instructions
₹600-1500 INR
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.
Nº del proyecto: #12039871
Sobre el proyecto
10 freelancers están ofertando un promedio de ₹3075 por este trabajo
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
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
Hello! Please check my profile/reviews to know a bit about me. It would be great if I could help you out. Thank you!
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.
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
I have written several compilers before and many, many parsers. I am familiar with assembly languages.