汇编网首页登录博客注册
banggou的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
最新留言
好友圈
文章收藏
友情链接

[2008-08-13 10:44] (第一版)第十一章检测题中一道题目的学习

mov ax,0  
    push ax  
    popf  
    mov ax,0fff0h  
    add ax,0010h  
    pushf  
    pop ax  
    and al,11000101B  
    and ah,00001000B  
上面指令执行后ax的值是____  
 1、 845H  
 2、 8C5H  
 3、 45H  
 4、 C5H  


在这个题中 前面三条命令先把 所有标志寄存器的值 清为0  
而执行 FFF0H+10H 后,其值 1 0000 以经超出ax所能表示的范围0没有发...
阅读全文 | 评论次数(1) | 浏览次数(553) | 所属类型(测试分析)

[2008-08-12 12:48] (第一版)第十章检测题中一道题目的学习

下面的程序执行完add ax,5时,ax中的数值为多少__  
    assume cs:code  
    stack segment  
    dw 8 dup(0)  
    stack ends  
    code segment  
    start: mov ax,stack  
    mov ss,ax  
    mov sp,16  
    mov ds,ax  
    mov ax,0  
    call word ptr ds:[0EH]  
    add ax,2 
    inc ax 
    add ax,5 
...
阅读全文 | 评论次数(0) | 浏览次数(503) | 所属类型(测试分析)

[2008-08-08 08:59] (第一版)检测点10.1-10.2-10.3-10.4

10.1
整个程序:
assume cs:code
stack segment
 db 16 dup (0)
stack ends

code segment
start:mov ax,stack
      mov ss,ax
      sp,16
      mov ax,(1000h)
      push ax
      mov ax,(0    )
      push ax
     retf
code ends
end start

10.2
首要先有理解到:CALL指令中关于IP进栈的问题。
事实上,在执行CALL指令时,IP的值先...
阅读全文 | 评论次数(1) | 浏览次数(590) | 所属类型(汇编作业)

[2008-08-07 11:22] (第一版)检测点9.1-9.2-9.3

1)完整程序:

assume cs:code,ds:data
data segment
    (db 0,0,0)
data ends
code segment
start:  mov ax,data
    mov ds,ax
    mov bx,0
    jmp word ptr [bx+1]   ;段内间接转移
code ends
end start

"
1.第一条指令是从mov ax,data开始算 
2.jmp word ptr [bx+1]是一个字,应该占用2个字节,这一点你没说错.但bx+1却是偏移一个字节,而不是一个字 
3.开头用d...
阅读全文 | 评论次数(1) | 浏览次数(519) | 所属类型(汇编作业)

[2008-08-06 14:15] (第一版)第八章检测题中一道题目的学习

assume cs:codesg,ds:datasg  
    datasg segment  
    dd 123456h          
    dw 789h,0h  
    datasg ends  
    codesg segment  
    start: mov ax,datasg  
    mov ds,ax  
    mov ax,ds:[0]                            
    mov dx,ds:[2]                            
    div word ptr ds:[4] ...
阅读全文 | 评论次数(1) | 浏览次数(578) | 所属类型(测试分析)

[2008-08-06 10:46] (第一版)第七章检测题中一道题目的学习

生成EXE之后用Debug加载后,查看寄存器内容如下: 
    ds=0b2d es=0b2d ss=0b3d cs=0b3e ip=0000 
    程序的起始地址的段地址是_____。 
 1、 0b3e 
 2、 0b2d 
 3、 0b3d 
 4、 0 

当然也看过P86页关于PSP的说明:
程序加载后,ds中存放着程序所在内存区的段地址,这个内存区的偏移地址为0,则程序所在的内存区的地址为:ds:0; 
这个内存区的前256个字节中存放的是PSP,dos用来和程序进行通信。从256字节处向后的空间存放的是程序。

但是做过这个题目发现:“会把程序的起始...
阅读全文 | 评论次数(1) | 浏览次数(516) | 所属类型(测试分析)

[2008-08-06 10:27] (第一版)第七章实验6 程序

assume cs:codesg,ds:datasg,ss:stacksg  
stacksg segment
  dw 0,0,0,0,0,0,0,0
stacksg ends

datasg segment   
  db  '1. display      '
  db  '2. brows        '
  db  '3. replace      '
  db  '4. modify       '
datasg ends   

  

codesg segment   
start:  
  mov ax,stacksg
  mov ss,a...
阅读全文 | 评论次数(2) | 浏览次数(524) | 所属类型(实验报告)

[2008-08-05 15:34] (第一版)第六章检测题

在某程序中,定义了262B的数据段data,那么程序载入内存,该段实际占用的内存空间是____B。 
 1、 256 
 2、 262 
 3、 272 
 4、 512 

262=16*16+6,段最小16K,且是16的倍数,系统为多余的6个字节申请16个字节的空间,所以实际占用空间为256+16=272B 


assume cs:code  
    code segment  
    start: mov ax,3 
    jmp s1 
    s: mov bx,0 
    mov ax,bx 
    s1: mov cx,3 
    s...
阅读全文 | 评论次数(1) | 浏览次数(539) | 所属类型(测试分析)

[2008-08-05 10:31] (第一版)检测点6.1

1)
assume cs:codesg
codesg segment
    dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
start:  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 21h
codesg ends
end start

2)
assume cs:codesg
...
阅读全文 | 评论次数(2) | 浏览次数(478) | 所属类型(汇编作业)

[2008-08-04 15:52] (第一版)第五章实验4

点击查看原图
2)
assume cs:codesg

codesg segment

     mov ax,0020h

     mov ds,ax

     mov bl,0

     mov cx,40h

s:   mov [bx],bl

     inc bl

     loop s

     mov ax,4c00h

     int 21h

codesg ends

end


3)
assume cs:code

code segment

     mov ax,code  ;填写code,cx是18h,填...
阅读全文 | 评论次数(0) | 浏览次数(549) | 所属类型(实验报告)
『 查看更多文章 』