Lab 9: Array Access in Assembly

  1. Download and save the files testFind.c and Find.asm
  2. Modify the assembly procedure find so that it returns the index where the element was found. If the element is not found, it returns -1.
  3. Modify the C file. Remove all calls to routines found in libepc . Use calls to printf to print results to the screen.
  4. Compile the C file: gcc -c testFind.c
  5. Assemble the assembly file: nasm -f coff Find.asm
  6. Use the gcc linker to produce the executable: gcc testFind.o Find.o -o testFind.exe
  7. Compare the size of testFind.exe to that of embedded.bin .