Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

code freezing

rootroot Member Posts: 103

hi i am using the following asm source code to try and read the bootsector from a: and jump to it. it only works

for my os. when i want to load a dos floppy it hangs. i think that it may be due to the current environment. how

can i reset the system to the defualt IPL environment ( without rebooting the system)?


MOV AL,1 /* One sector */
MOV AH,2 /* ...read */
MOV BX,0x7C00 /* ; ...offset 7C00 */
MOV CL,1 /*; ...sector 1 */
MOV CH,0

xor dx,dx
mov es,dx

/* ; ...track 0*/
INT 0x13 /*; ...floppy */
db 0x0EA /*; Jump Far to */
dw 0x7C00,0x0 /* ; 0000:7C00 */


Thanks for your help

ed.


Comments

  • CoNsTrIcToRCoNsTrIcToR Member Posts: 25
    u seem to be loading the dos floppy code after the OS has loaded and not during bootup....what OS are you using?
  • rootroot Member Posts: 103
    i am trying to write my own boot monitor.

  • CoNsTrIcToRCoNsTrIcToR Member Posts: 25
    ummmmm.....boot monitor....
    so do you want to find out what happens when you execute the boot sector?
  • frizzzfrizzz Member Posts: 49
    : ummmmm.....boot monitor....
    : so do you want to find out what happens when you execute the boot sector?
    :
    Maybe, You want to see a bootsector...
    Download my FD-based OS "FDOS1" from my homepage
    www.rcfriz.de
    and find my bootsector and my FD-driver in the sourcecode. When You boot that program, You can read raw every sector from every 1,44MB disk and investigate
    it using the dump-function, or store it a.s.o...
Sign In or Register to comment.