diff --git a/Worksheet_1/README.md b/Worksheet_1/README.md index 10dd0b887111d7a35cffd9f40cf506a070104190..57cae59dcc7f4a2e0886813307592d98ad1b190b 100644 --- a/Worksheet_1/README.md +++ b/Worksheet_1/README.md @@ -63,10 +63,7 @@ apt install -y libc6-dev ```bash ./src/task2 ``` - - Task 2_2: - ```bash - ./src/task2_2 - ``` + - Clean up object files and executables: ```bash make clean @@ -133,7 +130,7 @@ call _print_int --- -## Task 2_1: Loops and Conditionals +## Task 2: Loops and Conditionals - **File**: `task2.asm` - **Description**: Implements a loop to sum an array of integers and validates user input. @@ -226,9 +223,9 @@ The task1 target compiles and links the assembly and C files required for Task 1 ``` Dependencies: -src/task1.o: Compiled from src/task1.asm. -src/driver.o: Compiled from src/driver.c. -src/asm_io.o: Compiled from src/asm_io.asm. +-src/task1.o: Compiled from src/task1.asm. +-src/driver.o: Compiled from src/driver.c. +-src/asm_io.o: Compiled from src/asm_io.asm. 2. task2: The task2 target compiles and links the assembly and C files required for Task 2, creating the task2 executable. ```assembly @@ -244,32 +241,35 @@ src/asm_io.o: Compiled from src/asm_io.asm. src/print_int.o: Compiled from src/print_int.c. 3.Object File Targets -task1 +1.task1 ```assembly src/task1.o: src/task1.asm nasm -f elf src/task1.asm -o src/task1.o ``` -task2 +2.task2 ```bash src/task2.o: src/task2.asm nasm -f elf src/task2.asm -o src/task2.o ``` -driver ```bash +3.driver +```bash src/driver.o: src/driver.c gcc -m32 -c src/driver.c -o src/driver.o - ``` -Assembly I/O ```bash +4.Assembly I/O + ```bash src/asm_io.o: src/asm_io.asm nasm -f elf src/asm_io.asm -o src/asm_io.o ``` -Print Integer ```bash +5.Print Integer + ```bash src/print_int.o: src/print_int.c gcc -m32 -c src/print_int.c -o src/print_int.o ``` -4.clean ```bash +5.clean + ```bash clean: rm -f src/*.o src/task1 src/task2