I want to format a disk just my writing Sector 0 and Sector 1 of a disk.
But it doesn't work like I want.
It doesn't work at all!!
First i fill the [MyFILE] array and that works fine.
But when i use the code below it doesn't write Sector 0 and 1.
This test is a little bit simpler and just Write it to the disk that's inserted.
SO DON'T TRY THIS AT HOME,... Just look at the code.
Code: Select all
MOV AX,0301h
MOV BX,MyFILE
MOV CX,2
MOV DX,0h (or 80h)
INT 13h
JC ERROR
I wanted it to do like in DEBUG.EXE
w 0 2 0 2
does!