Computing.Net > Forums > Programming > Activate prog in hrd on floppy seek

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Activate prog in hrd on floppy seek

Reply to Message Icon

Name: sanjeev kanth
Date: September 16, 2002 at 02:54:51 Pacific
OS: win98 se
CPU/Ram: celeron 600mhz/128mb
Comment:

It has been suggested that in order to make a program in c: activated as soon as the floppy is accessed one should make a prog no bigger than 512 byes using asm and that it should use only bios int and put it into the boot sector of the floppy disk . can any body suggest me which bios int function can be used to load and run a prog in my c: . i can see only dos int function which can load and run another prog , unable to spot the bios int funtion. Also can u please tell me how i can make really small prog less than 512 bytes .
sanjeev



Sponsored Link
Ads by Google

Response Number 1
Name: Birdman
Date: September 16, 2002 at 03:43:17 Pacific
Reply:

>can any body suggest me which bios int
>function can be used to load and run a prog
>in my c: . i can see only dos int function
>which can load and run another prog ,
>unable to spot the bios int funtion.

Yeah, I can't find one either. But maybe your asm prog could run it manually, by moving the program into memory and changing the code pointers to the prog. That might be a little difficult, so what if you did this:

Code in floppy:
Load Code in hard into memory
change code pointers

Code in hard:
use dos interrupt 21,4b to run prog in hard

Prog in hard:
The program you want to run.

So just make a simple asm prog and put it with your main program (so you don't have to load as much into memory) and run that one from your program on the floppy.


Btw - I don't know if your way of running a prog on floppy hit is correct, but if so, this should work.


>can u please tell me how i can make really
>small prog less than 512 bytes

All you need the file to be is a header and the code pointer change, so it should be way under 512 bytes. That's 512 straight binary commands you can use(not counting arrays and larger value accesses)! That's a lot.


Also: why do you want a prog that runs on your hard drive on floppy access? Remember, that's EVERY time the floppy rehits! Just curious...


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Activate prog in hrd on floppy seek

Seeking programming guidence www.computing.net/answers/programming/seeking-programming-guidence/14212.html

No user activity Control in VB.NE www.computing.net/answers/programming/no-user-activity-control-in-vbne/14417.html

User already in the database www.computing.net/answers/programming/user-already-in-the-database/11061.html