---------ipl.nas-------------

start:
 ORG 0X7C00
 JMP entry
 DB  0X90
  DB  "HELLOIPL"
 DW  512
 DB  1  
 DW  1   
 DB  2   
 DW  224  
 DW  2880 
 DB  0xf0 
 DW  9   
 DW  18  
 DW  2   
 DD  0   
 DD  2880 
 DB  0,0,0x29  
 DD  0xffffffff  
 DB  "HELLO-OS" 
 DB  "FAT12"  
 RESB  18
  

entry:
 MOV AX,0
 MOV SS,AX
 MOV SP,0X7C00
 MOV DS,AX
 MOV ES,AX

 MOV SI,msg

loop:
 MOV AL,[SI]
 ADD SI,1
 CMP AL,0
 JE end
 MOV AH,0X0E
  MOV BX,0X15
 INT 0X10
 JMP loop

end:
 HLT
 JMP end

msg:
 DB 0X0A,0X0A
 DB "How are you!"
 DB 0X0A,0X0A
 DB "checksome."
 DB 0

fill:
 RESB  0x7dfe-$
 DB  0x55, 0xaa

---------------------

----Makefile--------

default:
 make run

ipl.bin : ipl.nas Makefile
 ..\z_tools\nask.exe ipl.nas ipl.bin ipl.lst

helloos.img : ipl.bin Makefile
 ..\z_tools\edimg.exe imgin:..\z_tools\fdimg0at.tek \
 wbinimg src:ipl.bin len:512 from:0 to:0 imgout:helloos.img
 
run : helloos.img Makefile
 copy helloos.img ..\z_tools\qemu\fdp_w_picpath0.bin
 make -C ..\z_tools\qemu
 
clear :
 del helloos.img /q
 del ipl.bin /q
 del ipl.lst /q

--------------------------

----make.bat-----------

..\z_tools\make.exe %1 %2 %3 %4 %5 %6 %7 %8 %9

------------------------