Answered step by step
Verified Expert Solution
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
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 mainHO5- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started