向内存0:200~0:23f依次传送数据0~3fh

October 4, 2013
masm

只能用字节为单位传送了。

assume cs:sad
sad segment
start:
    mov ax, 20h
    mov ds, ax
    mov bx, 0
    mov cx, 40h
s:
    mov [bx], bl
    inc bl
    loop s

    mov ax, 4c00h
    int 21h
sad ends
end

我只能优化到这里了。用了7条指令。

comments powered by Disqus