13.Let F(x)=x3-2x+1. Let x be a 16-bit unsigned number stored in (20-21H), use program to calculate this function and store the result in (30-35H).(2010.01.01.PM06:22)
這應該是1~14題裡面程式碼最長的一題
12.Write a program to perform the multiplication of a 32-bit unsigned number stored at (20-23H) and a 16-bit unsigned number stored at (24-25H) and put the result as a 48-bit unsigned number at (30-35H). For example, if (20-23H)=98765432H and (24-25H)=1234H, then (30-35H)=0x0AD749F49E28H.(2010.01.01.PM03:32將程式碼補上)
14.Define a sequence that f(n+2)=f(n+1)+f(n). Let f(0)=0 and f(1)=1 and n is a BCD number stored in 20H.
Please use program to calculate n from 0 to 30 and stored the result in BCD form at .(30-32H).(2010.01.01.PM09:44經做准呈提醒,更新小錯誤)
呼~新年的第一天寫出這題