Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
=====================================================================
in 16-bit asm code, compiled with TASM:.model small
.code
org 100hstart:
call boot
retorg 7C00h
boot:
mov ax, 0301h ;write one sector
mov bx, 7C00h ;from 0:7C00h
mov cx, 1 ;to track 0, sector 1, head 0
mov dx, 0 ; on drive A:
int 13h ; bios interruptmov ax, 0301h ; do it once more
int 13h ; to insure it works
retend start
well, the above code is COPIED from a book, ie. NOT my own code. it works under DOS.
in Win32, i don't know how, but i think it should quite similiar. int 13h will work before the operating system is loaded, as i know =)
please don't use it with the wrong purpose.

Hi you need to be more clear on what you want to do. The above would write data into the mbr of the floppy and if no correct data the floppy will not work. Or do you want a short program that will auto run a program on the floppy like happens with most cds?

Is there a way to make a floppy autorun ? I thought floppy will ONLY autorun at boot time when it is inserted into the drive AND the option in CMOS change to allow booting from floppy first.
If there is a way to make a floppy work like a autorun CD, yeah I want it (the program). Thank you!!
I suppose the above asm program will only outwrite the boot sector of a floppy (with anything?). The floppy wont boot the computer and even won't print the message "not a system disk" (or somthing like that), since it is destroyed.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |