$24.99
⚫ Hackmd: https://hackmd.io/h8TpNAlYTPyrJDi-6uFl_w?view
⚫ 影片:
https://www.youtube.com/watch?v=t04LTsOuWgU&feature=shar e&utm_source=EJGixIgBCJiu2KjB4oSJEQ
⚫ Standard Instruction Set Tutorial
⚫ Hackmd: https://hackmd.io/h8TpNAlYTPyrJDi-6uFl_w?view ⚫ Video: https://www.youtube.com/watch?v=t04LTsOuWgU&feature=shar e&utm_source=EJGixIgBCJiu2KjB4oSJEQ
⚫Basic :
⚫ Description: Please implement a 32 bits adder.
⚫ Example and test data :
1. Store data values 0x10, 0x11, 0x12, and 0xFF on the memory addresses 0x000, 0x001, 0x002, and 0x003 respectively, as shown in the right figure.
2. Store data values 0x10, 0x11, 0x12, and
0xFF on the memory addresses 0x010,
0x011, 0x012, and 0x013 respectively, as shown in the right figure.
3. Add two 32 bits numbers and save the answer into 0X020~0X023.
⚫ Standard of grading:
◼ Please use the sample data as the picture.
◼ You cannot use ADDWFC instruction. Otherwise, there will be a penalty of minus 35% .
⚫ Advanced
⚫ Description: Please implement a divider which allows 8-bit divisor and 4-bit dividend. Store the wuotient and remainder on the memory address 0X000 and 0X001.
⚫ Example and test data: please use 0X17 to divide by 0X06 as the picture shown on the right. Save the quotient into 0X000, and save the remainder into 0X001.
⚫ Standard of grading:
◼ Please implement with a divider, like the picture below. (The number of bits in the picture is just an example, please implement your own divider according to the description.)
◼ Do not use continuous decrease. Otherwise, you will get no point in this section.
◼ Do not use BRA and goto instruction. Otherwise, we will take some points off.
⚫ Bonus (20%):
⚫ Description: Given two unsigned 8-bit nonzero integers A and B, stored at 0X010 and 0X011. Please find their least common multiple, the result might be 8bits or16bits. Please save your answer at 0X000 and 0X001.
⚫ Example and test data: The least common multiple of 0XF5 and 0X5A is 0X113A. Please save 0X11 at memory address 0X000 and save 0X3A at 0X001.
⚫ Standard of grading: Please use the sample data 0XF5 and 0X5A.
⚫ If you need to division in this section, you can use continuous decrease.