标签:
1.编写引导程序
org 0x7c00 ;将程序装载到指定的内存地址 jmp entry entry: ;初始化ds,es段寄存器 mov ax,cs mov ds,ax mov es,ax ;13号中断:显示字符串 ;字符串地址:es:bp ;字符串长度:cs ;起始行列:dh,dl ;页码属性:bh,bl mov ax,msg mov bp,ax mov cx,26 mov ax,0x1301 mov bx,000ch mov dl,0 int 10h msg db ‘This is program by myself!‘ times 510-($-$$) db 0 dw 0xaa55
标签:
原文地址:http://www.cnblogs.com/TnaHades/p/4924749.html