NASM显示文字!!!!!!!!!

今天终于研究出了nasm怎么显示文字

因为我姓叶,所以用叶字举一个例。

代码↓↓↓

mov al,13h
mov ah,0
mov cx,0
mov bx,3
mov dx,4
int 10h
ye1:
mov ah,0ch
inc cx
cmp cx,bx
int 10h
jne ye1

mov cx,0
mov bx,7
mov dx,3 
ye2:
mov ah,0ch
inc dx
cmp dx,bx
int 10h
jne ye2

mov cx,0
mov bx,3
mov dx,7
int 10h
ye3:
mov ah,0ch
inc cx
cmp cx,bx
int 10h
jne ye3

mov cx,3
mov bx,7
mov dx,3 
ye4:
mov ah,0ch
inc dx
cmp dx,bx
int 10h
jne ye4

mov cx,4
mov bx,10
mov dx,6
int 10h
ye5:
mov ah,0ch
inc cx
cmp cx,bx
int 10h
jne ye5

mov cx,7
mov bx,10
mov dx,2
ye6:
mov ah,0ch
inc dx
cmp dx,bx
int 10h
jne ye6

times 510-($-$$) db 0
db 0x55,0xaa

效果图↓↓↓

参考于 汇编语言实现图形绘制——矩形、三角形等

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值