首页
社区
课程
招聘
[旧帖] [求助]看看这两行代码,小弟犯迷糊了! 0.00雪花
发表于: 2009-2-3 14:53 2634

[旧帖] [求助]看看这两行代码,小弟犯迷糊了! 0.00雪花

2009-2-3 14:53
2634
mov [bx+si],es:[di]
mov [si+bx],es:[bp]

编译时都抱 Improper operand type 这个错。
是不是不可以这样使用寄存器啊?

以下是完整代码

stack segment
        dw 8 dup (0)
stack ends

code segment
start:        mov ax,0b800h
        mov ds,ax
       
        mov ax,data
        mov es,ax
        mov di,0;
        mov bp,10h
        mov cx,3
        mov ax,stack
        mov ss,ax
        mov sp,10h
        mov bx,6e0h
    s1:        push cx
        mov si,3fh
        mov cx,16
    s2:        mov [bx+si],es:[di]
        inc si
        mov [si+bx],es:[bp]
        inc si
        inc di
        loop s2
        pop cx
        inc bp
add bx,160
        loop s1

        mov ax,4c00h
        int 21h
code ends

end start

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 100
活跃值: (13)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
晓得怎么回事了。。。。
2009-2-3 15:00
0
游客
登录 | 注册 方可回帖
返回
//