From 0c35685a8874a308411aea202d53d3d5a4b0ec4b Mon Sep 17 00:00:00 2001 From: Hayden Chow <kin3.chow@live.uwe.ac.uk> Date: Thu, 5 Dec 2024 15:06:36 +0000 Subject: [PATCH] edited --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e73cb0..79d5cf7 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,36 @@ This is the documentation for worksheet1 +I have put all the task into src folder + #Task1 ```c++ -gcc -m32 driver.o task1.o asm_io.o -o task1 +In task1,i have implement the program same as the slide ,which is adding the two integers together.i choosed 15 and 6 for the example. + +using the below code to run the program and the result will be 15+6= 21 ./task1 ``` + #Task2 ```c++ +Task2 There are two assembler program in task2,therefore the first one i named it as task 2,and the second as task2.2 +For the first program,asking to input about the user name and a number,print out the welcome message as much as the number you input,the value will be between 50-100,if you input the number out of this range will come out an error message. to run the program,using - ./task2 + +task2.2 +For the second program,it will be caculating sum of the range from 1 to 100,initalize the array to the numbers and sum the array. + ./ task2.2 for the second one + +``` + +For the screenshot,please see the task1.png,task2.png and task2.2.png + + + \ No newline at end of file -- GitLab