|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
(1) 程序如下。使程序中的jmp指令执行后,CS:IP指向程序的第一条指令,在data段中应该定义哪些数据。- assume cs:codesg
- data segment
- dw 0,0,0
- data ends
- codesg segment
- start:
- mov ax,data
- mov ds,ax
- mov bx,0
- jmp word ptr [bx+1]
- mov ax,4c00h
- int 21h
- codesg ends
- end start
复制代码
(2) 程序如下。补全程序,是jmp指令执行后,CS:IP指向程序的第一条指令。
- assume cs:codesg
- data segment
- dd 12345678h
- data ends
- codesg segment
- start:
- mov ax,data
- mov ds,ax
- mov bx,0
- mov [bx],0
- mov [bx+2],cs
- jmp dword ptr ds:[0]
- mov ax,4c00h
- int 21h
- codesg ends
- end start
复制代码 (3) 用Debug查看内存,结果如下:
2000:1000 BE 00 06 00 00 00 ......
则此时,CPU执行指令:
mov ax,2000h
mov es,ax
jmp dword ptr es:[1000]
后,(CS)=0006H,(IP)=00BEH
|
|