Assembler operating system code

windows

Guest
Well, i made the program so the OS boots up when the comp turns on , making it a operating system, it runs on a floppy, like a OS.<br /><br />So it is a os.<br /><br />heres the code, i need some help importing C code into it though<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />#make_boot# <br /> <br /><br />ORG 7C00h <br /> <br />PUSH    CS  ; make sure DS=CS <br />POP     DS <br /><br />LEA SI, msg <br /> <br />; teletype function id: <br />MOV AH, 0Eh <br /> <br />print:   MOV AL, [SI] <br />         CMP AL, 0 <br />         JZ done <br />         INT 10h  ; print using teletype. <br />         INC SI <br />         JMP print <br /> <br /><br />done:      MOV AH, 0 <br />           INT 16h <br /> <br /><br /><br />MOV     AX, 0040h <br />MOV     DS, AX <br />MOV     w.[0072h], 0000h; cold boot. <br /> <br />JMP    0FFFFh:0000h    ; reboot! <br /> <br /> <br />new_line EQU 13, 10 <br /> <br />msg DB  'HOS 1.0 - BY NOLAN HAMILTON' <br />    DB  new_line, '-->', 0 <br /><!--c2--></div><!--ec2--><br />I need help importing some C code into there for some of the more "high level" stuff.<br /><br />if you can help me, well... Thanks!<br /><br /><br />ps:I didnt make this code i copied it from a tut.<br /><br />but i added a little<br /><br /><span class='edit'>This post has been edited by <b>NickDMax</b>: 12 Sep, 2007 - 12:35 PM</span>
</div>
 
Back
Top