. : : Assembly Language : : .  |  首页  |  我提出的问题  |  我参与的问题  |  我的收藏  |  消息中心   |  游客  登录  | 
刷新 | 提问 | 未解决 | 已解决 | 精华区 | 搜索 |
  《汇编语言》论坛 ->转移指令的原理
  管理员: assembly   [回复本贴] [收藏本贴] [管理本贴] [关闭窗口]
主题 : :  第九章检测题  [待解决] 回复[ 2次 ]   点击[ 831次 ]  
caoheqian
[帖 主]   [ 发表时间:2007-11-10 14:19 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2007-09-30 21:53
下列能够改变CS:IP所指位置并能通过编译的指令是___4___。 
 1、 jmp short [bx] 
 2、 jne [bx] 
 3、 loop byte ptr [bx] 
 4、 jmp [bx] 

对于如下程序: 
    assume cs:code 
    data segment 
    ? 
    data ends 
    code segment 
    start:mov ax,data 
    mov ds,ax 
    mov bx,0 
    jmp dword ptr [bx+2] 
    code ends 
    end start 
    若在指令jmp dword ptr [bx+2]执行后,要使程序再次从第一条指令开始执行,下列对data段中的数据的定义更合理的是__2____。 
 1、 dd 0,0,0 
 2、 dw 0,0,0 
 3、 dw 0,0,seg code  
 4、 dw 0,0,offset code 
有如下程序段,填写2条指令,使程序在运行中将s处的一条指令复制到s0处。 
    assume segment 
    code segment 
    s: mov ax,bx 
    mov si,offset s 
    mov di,offset s0 
    _______1________ 
    _______________ 
    s0: nop 
    nop 
    code ends 
    end s 
 1、 mov ax,cs:[si] 
    mov cs:[di],ax 
 2、 mov ax,cs:[di] 
    mov cs:[si],ax 
 3、 mov ax,[si] 
    mov [di],ax 
 4、 mov ax,ds:[di] 
    mov ds:[si],ax 

对于如下程序: 
    mov ax,2 
    mov cx,3 
    s: add ax,2 
    s1:loop s 
    mov di,offset s1 
    mov si,offset s3 
    mov ax,cs:[di] 
    mov cs:[si],ax 
    mov ax,1 
    mov cx,3 
    s2: add ax,2 
    s3: nop 
    nop 
    所有指令执行完后ax的值为__2___。 
 1、 15 
 2、 7 
 3、 11 
 4、 3 



    mov cx,0 
    s: mov ax,bx 
    loop s 
    以上指令序列执行后mov ax,bx被执行了多少次__2___。 
 1、 0 
 2、 256 
 3、 65535 
 4、 65536 

测试完毕!答对3道题目!本章节测试没有通过,建议对本章进一步学习、牢固。
caoheqian
[第1楼]   [ 回复时间:2007-11-10 20:51 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2007-09-30 21:53
4.2.7
5.1.0
yuanliangding
[第2楼]   [ 回复时间:2010-02-05 17:13 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:1
注册日期:2010-01-30 14:38
第2题应该选3
第5题选4
需要登录后才能回帖 -->> 请单击此处登录
    Copyright © 2006-2024   ASMEDU.NET  All Rights Reserved