Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Description: WRITE THE CODE IN MASM 32 Assembly language By implementing following tasks, try to apply IA-32 specialized string processing instructions SCAS, MOVS, CMPS,

Assignment Description:

WRITE THE CODE IN MASM 32 Assembly language

By implementing following tasks, try to apply IA-32 specialized string processing instructions SCAS, MOVS, CMPS, LODS and STOS, with and without REP prefix. the source and return text strings are assumed to be in ASCIIZ format (i.e., an array of bytes terminated with null character (0)).

VARIANT A:

image text in transcribed

VARIANT B:

image text in transcribed

TASKS:

image text in transcribed

Please note that:

Note: Procedures, calculations, conditions and jumps must be implemented with full assembler, e.g. in assembler module!

To pass the source string and return results, define appropriate C/C++ function declarations.

Hint: To test your understanding of task variants, you are welcome to implement them first in some HLL (e.g., C/C++). If HLL implementation is working, then you have to translate it to ASSEMBLY LANGUAGE INSTRUCTIONS. However, if only HLL implementation is submitted, it will not contribute to your grade level.

I need help with this assignments i am not getting correct outputs please do it in MASM 32 assembly language code and keep in mind to use inline assembler do this ASAP

thank you

Count sum of decimal numerals in the source string. E.g., 4A 78 B 19 Return string by removing multiple consequent spaces from the source string and replace them with one underscore character. E.g., A BC DA_BC_D Assignments to complete Implement variant for task A. Implement variant for task B. Provide test calls of implemented functions to cover typical source string cases (including empty (zero length) and null strings) and implement in a separate Win32 Project (.DLL) and call exported assembler module procedures from another Console Application Project (.EXE). To prove it, include appropriate screenshots of the IDE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

Students also viewed these Databases questions

Question

Are we being responsive to current business priorities?

Answered: 1 week ago