HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGYSCHOOL OF INFORMATION, COMMUNICATION AND TECHNOLOGY Class code: 131104... 10: Simulator of the Calculator:... Similar with second number- Step 3
Trang 1HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY SCHOOL OF INFORMATION, COMMUNICATION AND TECHNOLOGY
-
-REPORT
Project Assembly Language & Computer Architecture Lab
Instructor: M Đỗ Công Thuần
Student:
Đặng Phúc Hiếu – 20194759 – Ex 10
Lê Triệu Sáng – 20194928 – Ex 9
Group: 13
Class code: 131104
Trang 2A Ex 10: Simulator of the Calculator:
Problem:
Steps:
- Step 1 : Create a menu with main functions :
+ Input 2 numbers for calculation
+ Click a, b, c ,d for each operations; f to print the result + Input 0 to escape, another option to continue
calculation
- Step 2: Write the function for input the first number:
Trang 3Similar with second number
- Step 3: Write the function to input the operator:
Trang 4The function of equal operation
- Step 4: The function to show the result
Trang 6- Step 5: Display the number on console
- Step 6: Polling the input on keyboard
Trang 7Similar with the line 2, 3 ,4
- Display the numbers on LED:
Trang 8Demo:
Trang 11B Ex 9: Draw Art by ASCII: