Social Icons

twitterfacebookgoogle plusrss feedemail

12/31/2009

微處理機(8051)上機考古題 Arithmetic 2-11

沒有留言:
11.Write a program to perform the multiplication of a 2-byte BCD number stored in (20H-21H) and a one-byte BCD stored in 22H. And put the result in BCD from at (30-32H). For example, if (20H-21H)=7654H, (22H)=34H, then (30-32H)=260236H.(2009.12.31PM10:42做程式碼簡化的動作)

 本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性

微處理機(8051)上機考古題 Arithmetic 2-10

沒有留言:
10.Write a program to change a 16-bit unsigned number stored in 20H-21H into a 2-byte BCD at 30H-31H. For example, if (20H)=0FH, (21H)=13H, then (30H)=38FH, (31H)=59H. Assume the number stored in (20H-21H) is less than 10000 in decimal.(2009.12.31.PM.09:48將程式碼附上)(2010.01.03.PM11:32更新幾個錯字)
 本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性

微處理機(8051)上機考古題 data move-1-7

沒有留言:
7.Move data from external data RAM 1000H-1FFFH by the following rules
甲、If it is an even number, move to external data RAM starting from 2000H
乙、If it is an odd number, move to external data RAM starting from 3000H.
(2009.12.31.PM02:35將程式碼重新寫過)

本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性

微處理機(8051)上機考古題 data move-1-6

沒有留言:
6. Move data from external code RAM 1200H -1250H to external data RAM 2200H-2250H.  You may use hints in 4. to initialize code memory.(09.12.31.PM01:52補上程式碼)

本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性

微處理機(8051)上機考古題 data move-1-5

沒有留言:
5. Move data from external data RAM 1200H -1250H to external data RAM 2200H-2250H.(2009.12.31.PM.01:41重新整理程式碼)

本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性

微處理機(8051)上機考古題 data move-1-4

沒有留言:
4.Move data from external code RAM 1234H-1285H to on-chip SRAM 22H -73H. You can use following instructions to initialize code memory :
ORG 1234H
TABLE: DB 03, 56H, 01H,……
(2009.12.31.PM.01:12將程式碼補上)
 本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性

微處理機(8051)上機考古題 data move-1-3

沒有留言:
3.Move data from external data RAM 1234H-1285H to on-chip SRAM 22H -73H(2009.12.31.PM,12:36更正錯誤程式碼)
本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性