601900987 发表于 2018-6-23 17:19:53

test9咸的蛋疼做作业

assume cs:code,ss:stacksg
data segment
    db 'welcome to masm!', 0
data ends

stacksg segment
    dw 8 dup (0)
stacksg ends

code segment
start: mov dh, 8
         mov dl, 3
           mov cl, 2
           mov ax,data
           mov ds,ax
           mov si,0
           call show_str
          
          
           mov ax,4c00h
           int 21h
          
show_str:mov ax,0b800h
               mov es,ax
               mov al,160
               sub dh,1
               mul byte ptr dh
               sub dl,1
               add dl,dl
               mov dh,0
               add ax,dx
               mov bx,ax
               
               mov ax,0
                 mov al,cl
          s:mov cl,
                 mov ch,0
                 jcxz ok
                 mov es:,cl
               mov es:,al
               inc si
               add bx,2
               jmp short s
               
       ok: ret
code ends
end start
页: [1]
查看完整版本: test9咸的蛋疼做作业