实验九
assume cs:code,ds:datadata segment
db "welcome to masm!"
db02h,24h,71h
data ends
code segment
start: mov ax,data ;zifuchuan fanzhi dizhi
mov ds,ax
mov ax,0b800h ;mubiao dizhi
mov es,ax
mov bx,6e0h ;mubian pianyi dizhi
mov di,0
mov ax,0
mov si,0
mov cx,16
s0: mov al,
mov ah,02h
mov es:,ax
inc di
add si,2
loop s0
mov ax,4c00h
int 21h
code ends
end start
代码如上
这只是对于一行的打印字符 但是循环下行继续打印 还有调节字体颜色 不知道该怎么进行了
页:
[1]