Question: Having to complete this code for project, trying to see where I'm going wrong... The following C code functionality must be accomplished in assembly language.

Having to complete this code for project, trying to see where I'm going wrong...

The following C code functionality must be accomplished in assembly language. Syntax Intel not At&t.

for( round = 0; round < #rounds; round++) { Starting_index[round] = gPasswordHash[0+round*4] * 256 + gPasswordHash[1+round*4]; hop_count [round] = gPasswordHash[2+round*4] * 256 + gPasswordHash[3+round*4]; if(hop_count == 0) hop_count = 0xFFFF;

index = Starting_index;

for ( x = 0; x < fileLength(input_file); x++) { file[x] = file[x] ^ gKey[index]; index += hop_count[round]; if(index ? 65537) index -= 65537;

} // end for loop through file } // end for loop through number of rounds // save the file, report success

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!