admin管理员组

文章数量:1123561

;编程,分别在屏幕的2,4,6,8行显示4句英文诗

;编程,分别在屏幕的2,4,6,8行显示4句英文诗
assume cs:code
code segment
   s1: db 'good ,better,best,','$'
   s2: db 'never let it rest,','$'
   s3: db 'till good is better,','$'
   s4: db 'and better ,best.','$'
   s : dw offset s1,offset s2,offset s3,offset s4
   row:db 2,4,6,8
 
 start:mov ax,cs
       mov ds,ax
       mov bx,offset s
       mov si,offset row
       mov cx,4
    ok:mov bh,0
       mov dh,[si]
       mov dl,10
       mov ah,2
       int 10h

       mov dx, [bx]
       mov ah,9
       int 21h
       inc si
       add bx,2
       loop ok
       mov ax,4c00h
       int 21h
 code ends
 end start

本文标签: 编程,分别在屏幕的246,8行显示4句英文诗