diff --git a/README.md b/README.md index 0e73cb050f0b85a3f6abeefc0def91ceeb779222..79d5cf7bd0097af2f58c7c79bca7478f55c13af3 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