Lab 9: Array Access in Assembly
- Download and save the files
testFind.c
and Find.asm
- 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.
- Modify the C file. Remove all calls to routines found in libepc
. Use calls to printf to print results to the screen.
- Compile the C file: gcc -c testFind.c
- Assemble the assembly file: nasm -f coff Find.asm
- Use the gcc linker to produce the executable: gcc testFind.o Find.o
-o testFind.exe
- Compare the size of testFind.exe to that of embedded.bin
.