Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is what I have so far(This has to use the Irvine32 library) I need help finishing this off: INCLUDE Irvine32.inc .data ; PLACE DATA

image text in transcribedimage text in transcribed

This is what I have so far(This has to use the Irvine32 library) I need help finishing this off:

INCLUDE Irvine32.inc .data ; PLACE DATA DIRECTIVES HERE SIZE_ DWORD 9 CRC DWORD ? String BYTE "Professor",0,0,0,0 .code main PROC ; PLACE SOURCE CODE HERE push OFFSET Example push OFFSET String push OFFSET CRC call DumpRegs call WaitMsg exit main ENDP .data INNER DWORD 8 .code f PROC PARAMS = (6+1)*TYPE DWORD NPARAMS = 3 Size$ = PARAMS+0*TYPE DWORD String$ = PARAMS+1*TYPE DWORD CRC$ = PARAMS+2*TYPE DWORD push eax push ebx push ecx push edx push edi pushfd mov edx,0 mov ebx,String$[esp] lodsb BYTE PTR [ebx] mov ecx, size add ecx, 4 LOOP: cmp INNER, 0 JZ OUTTER_END SHL eax, 1 RCL edx, 1 JNC LOOP_END XOR edx, 04c11db7h LOOP_END: dec ecx mov INNER, 8 mov ebx,String$[esp] lodsb BYTE PTR [ebx] jnz LOOP popfd pop edx pop ecx pop ebx pop eax ret NPARAMS*TYPE SDWORD ; return and pop parameters f ENDP END main END main 
HO5- Bit Manipulation Purpose Demonstrate the ability to manipulate bits and use high level subroutine interfacing. Method 1. Create a new copy of the directory Project32 with the name "H05 Bit 2. Open Visual Studio to edit and execute the source code file main.asm. The program Demonstrate correct operation of the CRC routine by declaring a string and Create CRC-The program must append the string with zero bytes. The o Verify CRC The program must replace the zero padding bytes with the Manipulation" must do the following: calling the string 4 times subroutine is called, passing it the string and returning the CRC. CRC. The subroutine is called and should return 0. (Note: the CRC o Single Bit Error - Change one bit in one byte in the string and call the o Burst Error - Replace the byte containing the single bit error and an calculation is BIGENDIAN) subroutine again. This call should return a nonzero value adjacent byte with new values and call the subroutine again. This call should return a nonzero value. The subroutine will implement the CRC-32 algorithm. It will have three parameters o String -Reference parameter for the address of the string. o Size Value parameter for the number of bytes to process (excluding padding or CRC bytes) o CRC - Reference parameter for the CRC. Note the CRC variable must be separate from the buffer containing the string

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

5. Structure your speech to make it easy to listen to

Answered: 1 week ago

Question

Are these written ground rules?

Answered: 1 week ago

Question

How do members envision the ideal team?

Answered: 1 week ago

Question

Has the team been empowered to prioritize the issues?

Answered: 1 week ago