freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

匯編語言課后習題解答(留存版)

2025-09-19 08:33上一頁面

下一頁面
  

【正文】 bxloop s(2) 補全下面的程序,統(tǒng)計F000:0處32個字節(jié)中,大小在(32,128)的數(shù)據(jù)個數(shù)。bx=cscs=0 mov ax,4c00h int 21hcodesg endsend start(第216頁)寫出下面每條指令執(zhí)行后,ZF、PF、SF、等標志位的值。assume cs:codecode segment start: mov ax,2000h mov ds, ax mov bx,0 s: mov ch,0 mov cl,[bx] jcxz ok 。 mov ax,2000H mov ds, ax mov ax,1000Hmov ss, ax mov sp,0 (第129頁)(1)下面的程序?qū)崿F(xiàn)依次用內(nèi)存0:0~0:15單元中的內(nèi)容改寫程序中的數(shù)據(jù),完成程序:assume cs:codesgcodesg segment dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987hstart: mov ax,0 mov ds, ax mov bx,0 mov cx,8 s: mov ax,[bx] mov cs:[bx],ax add bx,2 loop s mov ax,4c00h int 21hcodesg endsend start(2)下面的程序?qū)崿F(xiàn)依次用內(nèi)存0:0~0:15單元中的內(nèi)容改寫程序中的數(shù)據(jù),數(shù)據(jù)的傳送用棧來進行。(一個內(nèi)存單元=1Byte)。第1章 基礎知識(第9頁)(1)1個CPU的尋址能力為8KB,那么它的地址總線的寬度為13位。(6)8根數(shù)據(jù)總線一次可以傳送8位二進制數(shù)據(jù)(即一個字節(jié))。??臻g設置在程序內(nèi)。當cx=0時,CS:IP指向OK inc bx jmp short s ok: mov dx, bx mov ax ,4c00h int 21hcode endsend start(第185頁)補全編程,利用loop指令,實現(xiàn)在內(nèi)存2000H段中查找第一個值為0的字節(jié),找到后,將它的偏移地址存儲在dx中。 sub al,al al=0h ZF=1 PF=1 SF=0 mov al,1 al=1h 。 mov ax,0f000h mov ds,ax mov bx,0 。,0data endscode segmentstart: mov ax, data mov ds, ax mov si,0 mov ax,0b800h mov es, ax mov di,12*160s: cmp byte ptr [si],0 je ok mov al,[si] mov es:[di],al inc si add di,2 mov bx ,offset soffset ok int 7chok: mov ax,4c00h int 21hcode endsend start jmp near ptr s指令的功能為:(ip)=(ip)+16位移,實現(xiàn)段內(nèi)近轉(zhuǎn)移 assume cs:code code segment start:mov ax, cs mov ds, ax mov si, offset do0 。標志寄存器入棧 call dword ptr ds:[0] 。將原來的int 9中斷例程的入口地址保存在ds:0、ds:2單元中 mov ax, data mov ds, ax mov ax,0 mov es, ax push es:[9*4] pop ds:[0] push es:[9*4+2] pop ds:[2] 。循環(huán)延時,循環(huán)100000h次delay: push ax push dx mov dx,1000h mov ax,0delay1: sub ax,1 sbb dx,0 。 。以下為新的int 9中斷例程int9: push ax push bx push es in al,60h 。設置IF=0屏蔽中斷 mov word ptr es:[9*4],offset int9 mov word ptr es:[9*4+2],cs sti 。(IP)=ds:[0],(CS)=ds:[2]兩條指令。設置es:di指向目標地址 mov cx, offset do0endoffset do0 。初始化累加器 mov cx,32s: mov al,[bx] cmp al,32 。push 指令不改變標志位 ZF=1 PF=1 SF=0 pop bx bx=1h 。只要保證cx0,才能執(zhí)行l(wèi)oop循環(huán),切記! inc bx loop s ok: dec bx mov dx, bx mov ax,4c00h int 21hcode endsend start(第191頁)補全程序,實現(xiàn)從內(nèi)存1000:0000處開始執(zhí)行指令。10個字單元用作??臻g,所以棧空間的大小為10*2=20,化成16進制即為14start: mov ax, codesg。(8) 在存儲器中指令和數(shù)據(jù)沒有任何區(qū)別,都是二進制信息。(3)1KB的存儲器可以存儲8192(2^13)個bit,1024個Byte。(5)一個CPU有N根地址線,則可以說這個CPU的地址總線的寬度為N。指令序列↓寄存器→CSIPDSAXBX初始值→2000H00001000H00mov ax,6622h2000H00031000H6622H0000jmp 0ff0:01001000H00001000H6622H0000mov ax,2000h1000H00031000H2000H0000mov ds,ax1000H00052000H2000H0000mov ax,[0008]1000H00082000HC389H0000mov ax,[0002]1000H000B2000HEA66H0000 :數(shù)據(jù)和程序有區(qū)別嗎?如何確定內(nèi)存中的信息哪些是數(shù)據(jù),哪些是程序?(第70頁)(1)補全下面的程序,使其可以將10000H1000FH中的8個字,逆序拷貝到20000H2000FH中。第二格可填①mov [bx+2],cs ②mov [bx+2],cs ③mov
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1