|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- assume cs:code
- code segment
- start:
- mov ax,cs
- mov ds,ax
- mov si,offset capital
- mov ax,0
- mov es,ax
- mov di,200h
- mov cx,offset capitalend - offset capital
- cld
- rep movsb
- mov ax,0
- mov es,ax
- mov word ptr es:[7ch*4],200h
- mov word ptr es:[7ch*4+2],0
- mov ax,4c00h
- int 21h
- capital:
- push cx
- push si
-
- change:
- mov cl,[si]
- mov ch,0
- jcxz ok
- and byte ptr [si],11011111b
- inc si
- jmp short change
- ok:
- pop si
- pop cx
- iret
-
- capitalend:nop
- code ends
- end start
复制代码
offset capitalend - offset capital等于多少,这个标号地址怎么算啊?希望详细点 谢谢
我晕,居然忘记改了 ^_^
抱歉,上面的不对,看这个
- assume cs:code
- code segment
- start:
- mov ax, cs
- mov ds, ax
-
- mov si, offset capital
- mov di, offset capitalend
- mov cx, offset capitalend - offset capital
- mov ax,4c00h
- int 21h
- capital:
- push cx
- push si
- pop si
- pop cx
- iret
- capitalend:nop
- code ends
- end start
复制代码
|
|