az4121 发表于 2013-5-25 21:30:04

在程序中依次出现‘a'~'z',并可以让人看清

start:        mov ax,0b800h
        mov es,ax
        mov ah,'a'
s:        mov es:,ah
        call s1
        inc ah
        cmp ah,'z'
        jna s
        mov ax,4c00h
        int 21h
s1:        push ax
        push dx
        mov dx,1000h
        mov ax,0
s11:        sub ax,1
        sbb dx,0
        cmp ax,0
        jne s11
        cmp dx,0
        jne s11
        pop dx
        pop ax
        ret

问题:
代码
cmp dx,0
jne s11
在程序整体运行时不能省去?单步执行时可以省去
页: [1]
查看完整版本: 在程序中依次出现‘a'~'z',并可以让人看清