mcq 隊列_MCQ | 8086微處理器中的字符串操作指令

mcq 隊列

Question 1:

問題1:

A string is a collection of characters. Each Character is an of byte length which is stored at successive locations. In the 8086 microprocessor, which characters are considered in the string?

字符串是字符的集合。 每個字符都有一個字節長度,存儲在連續的位置。 在8086微處理器中,字符串中應考慮哪些字符?

  1. EBCDIC characters

    EBCDIC字符

  2. ASCII characters

    ASCII字符

  3. A string does not treat characters

    字符串不處理字符

  4. None of the above

    以上都不是

Answer: a. ASCII characters

答: ASCII字符

Explanation:

說明:

In the 8086 microprocessor's assembly language, the String is the collection of ASCII characters.

在8086微處理器的匯編語言中,字符串是ASCII字符的集合。



Question 2:

問題2:

While performing any of the MOVE instructions over Strings, i.e. MOVSB, MOBSW or MOVSD, by default, the data is transferred from -

默認情況下,在通過字符串執行任何MOVE指令時,即MOVSB,MOBSW或MOVSD,數據將從-

  1. DS:SI to ES:DI

    從DS:SI到ES:DI

  2. ES:DI to DS:SI

    ES:DI到DS:SI

  3. ES:SI to DS:DI

    ES:SI至DS:DI

  4. None of the above

    以上都不是

Answer: a. DS:SI to ES:DI

答: 從DS:SI到ES:DI

Explanation:

說明:

By default, every move instruction transfers data from the address calculated from DS register and contents of SI to the address calculated from ES register the contents of DI, i.e. from DS: SI to ES: DI.

默認情況下,每條移動指令都將數據從DS寄存器計算出的地址和SI的內容傳輸到DI內容從ES寄存器計算出的地址,即從DS:SI到ES:DI。



Question 3:

問題3:

Which of the following is the correct code for repeating the MOVSB instructions 10 times?

以下哪項是將MOVSB指令重復10次的正確代碼?

  1. REPEAT MOVSB 10

    重復MOVSB 10

  2. REP 10 MOV SB

    REP 10 MOV SB

  3. CX=10

    CX = 10

    REP MOVSB

    REP MOVSB

  4. None of the above

    以上都不是

Answer: c. CX =10 REP
MOVSB

答:c。 CX = 10代表
MOVSB

Explanation:

說明:

REP instruction repeats the given instruction(s) till CX does not becomes zero, i.e. CX != 0. So, for executing the mentioned instruction 10 times, we need to initialize the CX register with 10.

REP指令重復給定的指令,直到CX不為零,即CX!=0。因此,要執行上述指令10次,我們需要將CX寄存器初始化為10。



Question 4:

問題4:

Which of the following flags gets affected when a compare instruction, i.e. CMPSB, CMPSW or CMPSD is executed?

當執行比較指令(即CMPSB,CMPSW或CMPSD)時,以下哪個標志受影響?

  1. Direction Flag (DF)

    方向旗(DF)

  2. Trap Flag (TF)

    陷阱標志(TF)

  3. Interrupt Flag (IF)

    中斷標志(IF)

  4. Zero Flag (ZF)

    零標記(ZF)

Answer: d. Zero Flag (ZF)

答案:d。 零標記(ZF)

Explanation:

說明:

Whenever a compare instruction over strings is executed, the status flags are affected. From the mentioned options, only Zero Flag is a status flag. The rest are the Control Flags.

每當執行基于字符串的比較指令時,狀態標志都會受到影響。 從上述選項中,只有零標志是狀態標志。 其余的是控制標志。



Question 5:

問題5:

At a time, on how many bits can we operate while performing any string operation?

一次,執行任何字符串操作時,我們可以操作多少位?

  1. 8 bits

    8位

  2. 16 bits

    16位

  3. 32 bits

    32位

  4. All of the above

    上述所有的

Answer: d. All of the above

答案:d。 上述所有的

Explanation:

說明:

The string operations can be performed either on 1 byte, 2 bytes or 4 bytes at a time. In the string instructions, for example, Move instructions, in MOVSB, 'B' stands for Byte, i.e. 8 bits. Similarly, in MOVSW, 'W' stands for a word, i.e. 16 bits and in MOVSD, 'D' stands for a double word, i.e. 32 bits.

可以一次在1個字節,2個字節或4個字節上執行字符串操作。 在字符串指令中,例如,MOVSB中的移動指令,“ B”代表字節,即8位。 同樣,在MOVSW中,“ W”代表一個字,即16位,在MOVSD中,“ D”代表一個雙字,即32位。

翻譯自: https://www.includehelp.com/embedded-system/mcq-string-manipulation-instructions-in-the-8086-microprocessor.aspx

mcq 隊列

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/542792.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/542792.shtml
英文地址,請注明出處:http://en.pswp.cn/news/542792.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

python 編碼 解碼 讀寫文件

python基礎語法6編碼解碼encode編碼與decode解碼讀寫文件編碼解碼 計算機是以二進制(0或1)存儲的,以字節為單位,1byte8bit,1KB1024B;1MB1024KB;1GB1024MB 編碼表:ASCII碼&#xff0…

電腦如何設置不休眠_電腦休眠了卻沒法喚醒?設置一下就好!

關注全新【HP惠課廳】,惠普消費新品全知曉逐步復工,辦公室環境又漸漸熟悉了起來午休外出吃飯、忙里偷閑散步、下班不想關電腦……隨手就把電腦休眠了開機也快,網頁和工作內容也不會被關掉休眠功能是挺好用的可有時候,無論怎么點開…

node+bower+gulp+webpack初見

2019獨角獸企業重金招聘Python工程師標準>>> node node模塊管理是通過NPM(即 Node Package Manage,是 NodeJS 模塊管理工具)來處理各模塊之間的依賴。NPM按樹狀結構來管理的,支持某模塊的不同版本。 [前提是本機已安裝…

Java LinkedList公共布爾boolean offerFirst(Object o)方法(帶示例)

LinkedList公共布爾布爾offerFirst(Object o)方法 (LinkedList public boolean offerFirst(Object o) method) This method is available in package java.util.LinkedList.offerFirst(Object o). 軟件包java.util.LinkedList.offerFirst(Object o)中提供了此方法。 This metho…

hbuilder php mysql_xampp本地服務器+HBuilder配置php環境

HBuilder配置PHP環境:下載,運行HBuilder編輯器打開右側小窗口,點擊設置圖標—>設置web服務器—>外置web服務器輸入你想要瀏覽器運行的URL,點擊兩個確定,再重新點擊設置web服務器,選擇PHP類文件(選擇之…

百度地圖手機和電腦不一致_你可能不知道的電腦手機冷知識

各位好久不見呀,自科部科科又回來了!平時我們經常使用電腦,你可能以為你對電腦和手機了如指掌,然而下面的冷知識你知道多少個?01一臺電腦可以有多個桌面如果你熟練的使用多個桌面這個技巧那么就可以躲著家長領導偷懶了…

嵌套字典|python_Python | 如果不是,則使用嵌套,根據銷售額計算折扣

嵌套字典|pythonInput same amount and calculate discount based on the amount and given discount rate in Python. 輸入相同的金額,并根據Python中的金額和給定的折扣率計算折扣。 The discount rates are: 折扣率是: Amount Discount0-5000…

RHEL 7 中 systemctl 的用法(替代service 和 chkconfig)

2019獨角獸企業重金招聘Python工程師標準>>> 1、systemctl是RHEL 7 的服務管理工具中主要的工具,它融合之前service和chkconfig的功能于一體。可以使用它永久性或只在當前會話中啟用/禁用服務。 systemctl可以列出正在運行的服務狀態,如圖&am…

python實戰——發郵件

from email import encoders#負責編碼 from email.header import Header#負責處理郵件頭 from email.mime.text import MIMEText#構造郵件內容 from email.utils import parseaddr, formataddr#將輸入內容格式化 import smtplib#發送郵件模塊def _format_addr(s):#處理格式化文…

js 刷新div_vue.js備忘記錄(五) vue-router

如果我們采用SPA(單網頁應用)的設計方式,服務器會把前端文件一次性發過來,前端通過監聽url的改變,選擇展示那些內容,也就是前端路由一. 如何改變url但是頁面不刷新?方式一: 改變哈希值hash比如,我們隨便找一個網頁我們在瀏覽器控制臺輸入發現網站的url有了些改變查看network卻…

css div撐滿窗口高度_如何使用CSS將div的高度設置為窗口的100%?

css div撐滿窗口高度Introduction: 介紹: Hello there developers! Well, certainly if you are reading this article then that means that you have run into some trouble while creating your web page or website and if you are a beginner in this field, …

.net core image怎么保存_輕量級Vue圖片上傳插件——Vue-core-image-Upload

介紹vue-core-image-upload 是一款輕量級的 Vue.js 上傳插件,它可以支持的圖片的上傳,裁剪,壓縮。它同樣也支持在移動端的圖片處理,它定義了諸多上傳周期,你可以自由的進行流程控制。Githubhttps://github.com/Vanthin…

mysql確認半同步命令_怎么判斷mysql是否是半同步復制

AFTER_COMMIT(5.6默認值)master將每個事務寫入binlog ,傳遞到slave 刷新到磁盤(relay log),同時主庫提交事務。master等待slave 反饋收到relay log,只有收到ACK后master才將commit OK結果反饋給客戶端。AFTER_SYNC(5.7默認值,但5.6中無此模式…

stl iterator_在C ++ STL中使用const_iterator訪問字符列表的元素

stl iteratorIn this example, we are declaring a character list and pushing the characters from A to Z using a for loop and push_back() function and then accessing the elements using const_iterator. 在此示例中,我們聲明一個字符列表,并使…

《Linus Torvalds自傳》摘錄

轉自:http://www.ruanyifeng.com/blog/2012/09/linus_torvalds.html作者: 阮一峰日期: 2012年9月 3日除了程序員,大概很少人知道Linux操作系統。它的發明者Linus Torvalds,知道的人就更少了。他本人也很低調&#xff0…

python繪制條形圖例題_python matplotlib庫繪制條形圖練習題

練習一:假設你獲取到了2017年內地電影票房前20的電影(列表a)和電影票房數據(列表b),那么如何更加直觀的展示該數據? a ["戰狼2","速度與激情8","功夫瑜伽",&quo…

mysql驗證身份證號正確_通過SQL校驗身份證號碼是否正確

根據提供的身份證號碼信息驗證身份證號碼是否符合二代身份證規范,其中區域編碼網上可下載。使用數據庫為DB2,但目測可以通用身份證號碼第18位驗證算法從網上查得,具體驗證算法如下:1、將前面的身份證號碼17位數分別乘以不同的系數…

python學習記錄

python學習記錄schedule庫schedule庫 import schedule import time #引入schedule和timedef job():print("Working in progress...") #定義一個叫job的函數,函數的功能是打印Im working...#部署情況 schedule.every(10).minutes.do(job) #部署每10…

Python | 在屬性的幫助下實現setter和getter

In this program, we are implementing Properties. Python offers a better way to implement setters and getter with the help of properties by using attribute property. By default properties are getters so we have to declare setter part explicitly. 在此程序中&…

windows進入mysql

cd \wamp\bin\mysql\mysql5.6.17\bin\mysql -hlocalhost -uroot -p轉載于:https://blog.51cto.com/8818968/1835449