首页/ 题库 / [问答题]内部RAM的24H单元中存有压缩的BCD的答案

内部RAM的24H单元中存有压缩的BCD码,编制程序将其转换为非压缩的BCD码,并将转换结果存放到30H单元和31H单元中。要求:30H单元存放十位,31H单元存放个位。

问答题
2022-04-02 17:32
查看答案

正确答案

   ORG  0100H             

          MOV  A, 24H       ; (A)(24H),缩BCD码送入累加器A

          MOV  31H, #00H    ; (31H)00H,清31H单元

          MOV  R0, #31H ; (R0)31H

          XCHD  A, @R0      ; 24H单元内容的低4位与31H单元内

                                                 ; 容的低4位交换

          SWAP  A       ; 24H单元内容的高4位与低4位交换

          MOV  30H, A       ; 送转换结果的十位到30H单元中

          SJMP  $       程序执行完,“原地踏步”

          END


试题解析

相关题目
boost的意思是:help or encourage to increase or improve
eloquent的意思是:fluent or persuasive in speaking or writing

A campus emergency ______ occur at any time of the day or night, weekend, or holiday, with little or no warning.

A cabinet or space containing the controls or valves for the fixed firefighting system must be().
A cabinet or space containing the controls or valves for the fixed firefighting system must be().
在应用ORS液的过程中,错误的做法是()
在应用ORS液的过程中,错误的作法是()
在应用ORS液的过程中,错误的是()
Mainly east 3 or 4 partly cloudy to overcast occasional rain()slowly south moderate or good.
()any case or suspected case of quarantinable disease,or any case of eruptive disease or any death be discovered,the local quarantine officer must be notified immediately.
Should any case or suspected case of quarantinable disease,or any case of eruptive disease or any death be discovered,the local Quarantine Officer must be()immediately.
Masters are()solely responsible for all damages or accidents of whatever kind resulting from the navigating or handling of their vessels by day or by night.
If he is a common carrier,he is absolutely responsible to the owner of the goods carried ()any loss or damage to them unless caused by an Act of God or the Queen’s enemies,or the inherent vice in the goods themselves,or the negligence of the owner of the goods,or a general average sacrifice.
系统中雷达状态包括Unknown、Operational(or ON)、Failed(or OFF)、Detached。
Owners are to be responsible for loss of or damage to the goods or delay in delivery of the goods only in case the loss,damage or delay has been caused by the improper or negligent stowage of the goods.This means that().
The carrier is liable for loss of or damage to the goods or delay in delivery caused by fire,()the claimant proves that the fire arose from fault or neglect on the part of the carrier,his servants or agents.
Shutdown price(or point,or rule) 停业价格(或停业点、停业原则)
翻译:With Average or With Particular Average(WA or WPA)()
()shall be liable for loss of and damage to the Vessel and/or goods arising or resulting from inaccuracies in stating the description,quantity,weight,measurement or contents.
口服补液及时纠正脱水,应用ORS,说法正确的是()
广告位招租WX:84302438

免费的网站请分享给朋友吧