汇编程序47:实验13 编写、应用中断例程(3)
1 assume cs:code 2 //将数据段的内容显示在适当的屏幕位置上 3 code segment 4 s1: db 'Good,better,best,','$' 5 s2: db 'Never let it rest,','$' 6 s3: db 'Till good is better,','$' 7 s4: db 'And better,best.','$' 8 s: dw offset s1,offset s2,offset s3,offset s4 9 row: db 2,4,6,8 10 11 start: 12 mov ax,cs 13 mov ds,ax 14 mov bx,offset s 15 mov si,offset row 16 mov cx,4 17 ok: 18 mov bh,0 19 mov dh,[si] 20 mov dl,0 21 mov ah,2 22 int 10h 23 24 mov dx,[bx] 25 mov ah,9 26 int 21h 27 inc si 28 add bx,2 29 loop ok 30 mov ax,4c00h 31 int 21h 32 code ends 33 34 end start