今天终于研究出了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
效果图↓↓↓