flat assembler
Message board for the users of flat assembler.
Index
> Main > Can't use int 21h, func 440dh, subfunc 41h in Win98??? |
Author |
|
f0dder 13 Mar 2005, 19:33
you can probably use the "lock" command from a command prompt - I don't know how to do this programatically though, but I guess ralf's interrupt list might have the answer.
|
|||
13 Mar 2005, 19:33 |
|
Per Norrby 15 Mar 2005, 05:52
Thanks for your suggestion.
But the only locking I know about is file locking, int 21h func 5ch. This is something else, it's that Win 98 stopping me from writing track by track on my HDD:s. Also, I'm not allowed to use Format Track on Logical Drive! It has to be a way to resolve these problems, some int or func or may be some API to ask Win to give me what authority I need. May be it would work if I went back to FAT16 but that's just to much. Like I said - in DOS 6 everything works OK. Regards , Per N. |
|||
15 Mar 2005, 05:52 |
|
Matrix 15 Mar 2005, 20:18
hello
i used bios function to read write absolute sectors, it worked under w98 and me, but be aware that you have to restart your machine to reload data ( if you work on c this means a hard reset, otherwise w can corrupt your data. ) ofcourse direct io access is disabled unless you make a driver. there are some windows functions to daw sector rw no? scandisk, defrag does it too. |
|||
15 Mar 2005, 20:18 |
|
drs 16 Mar 2005, 03:58
Sorry for the late response, I know this is not in assembler but this is what I used to read the MBR off Windows 2000/XP machines. It is written in C but shouldn't be to hard to convert. I hope it's acceptable to post here..
|
|||||||||||
16 Mar 2005, 03:58 |
|
f0dder 16 Mar 2005, 09:26
Doing it with the win32 API is easy (on NT systems, anyway) - the OP wants 16bit code using DOS/BIOS interrupts.
|
|||
16 Mar 2005, 09:26 |
|
Per Norrby 27 Mar 2005, 18:37
Hello f0dder,
I really do owe you an appology! You instantly adviced me to use the LOCK command to get the authority to write directly to all my drives. But then I couldn't think of anything else but MS-DOS 5's file locking function included in the SHARE command, so I didn't take your advice very seriously. Now I've learned that LOCK isn't what I thought it'd be, and that I should have listened more carefully to you in the first place. My only excuse is that I've been off this kind of programming for some years. In the future I'll shurely analyze your tips more seriously! Regards, Per N. Ps I'd appreciate to have the possibility to address you personally. If that's OK with you, you could leave a PM with your mail address. Ds |
|||
27 Mar 2005, 18:37 |
|
f0dder 27 Mar 2005, 18:47
It's OK, I haven't touched DOS for so long that I thought I might be wrong - have you found what interrupt + func to use, or are you relying on calling command.com's LOCK? I'll PM you my mail address.
|
|||
27 Mar 2005, 18:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.