diff --git a/worksheet1/README.md b/worksheet1/README.md index db92f3f858448e0edee099472778c8d5465d0d70..0efa830a3bca52ed0cf9ea6485cda36b90385345 100644 --- a/worksheet1/README.md +++ b/worksheet1/README.md @@ -11,7 +11,7 @@ This worksheet focuses on the implementation of assembler programs, use of exter --- ## Repository Structure -```plaintext + repo-name/ ├── README.md ├── asm_io.inc @@ -27,9 +27,10 @@ repo-name/ ## Task 1 Task 1: Adding Two Integers - Task 1.1: Basic Addition + + The program initializes two integers, computes their sum, and displays the result using print_int from asm_io. Implementation Steps: @@ -56,6 +57,8 @@ Output: 21 Task 1.2: User-Defined Addition + + Extends Task 1.1 to accept user input for two integers and prints their sum with a formatted message. Implementation Steps: @@ -80,6 +83,8 @@ Task 2: Loops, Conditions, and Arrays ##Task 2.1 Task 2.1: User Interaction and Validation + + This task implements a program that: 1 Prompts the user for their name and a number between 51 and 99. 2 Prints a greeting message the specified number of times. @@ -97,6 +102,8 @@ The number must be greater than 50 and less than 100! ##Task 2.2 Task 2.2: Array Initialization and Summation + + The program initializes an array with values from 1 to 100, computes their sum, and prints the result. Implementation Steps: @@ -118,6 +125,8 @@ Sum of array: 5050 ##Task 2.3 Task 2.3: Summing a Range in an Array + + Enhances Task 2.2 by allowing the user to specify a range of indices and computes the sum of elements within that range. Implementation Steps: diff --git a/worksheet1/image/1.2.png b/worksheet1/image/1.2.png new file mode 100644 index 0000000000000000000000000000000000000000..6cd0d6fd1146ba6e8ebfb78a96f302f339b54a6d Binary files /dev/null and b/worksheet1/image/1.2.png differ diff --git a/worksheet1/image/2.1.png b/worksheet1/image/2.1.png new file mode 100644 index 0000000000000000000000000000000000000000..1527fc35fedac81bd437798c12c69dfbb764d2cd Binary files /dev/null and b/worksheet1/image/2.1.png differ diff --git a/worksheet1/image/2.2.png b/worksheet1/image/2.2.png new file mode 100644 index 0000000000000000000000000000000000000000..1527fc35fedac81bd437798c12c69dfbb764d2cd Binary files /dev/null and b/worksheet1/image/2.2.png differ diff --git a/worksheet1/image/2.3.png b/worksheet1/image/2.3.png new file mode 100644 index 0000000000000000000000000000000000000000..1527fc35fedac81bd437798c12c69dfbb764d2cd Binary files /dev/null and b/worksheet1/image/2.3.png differ