;編程,分別在屏幕的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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章