TA的每日心情 | 开心 2018-10-31 14:26 |
---|
签到天数: 18 天 [LV.4]偶尔看看III
高级会员
- 积分
- 1019
|
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.', '$'
sdw 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, 0
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
|
|