CM's questions, answered (Miscellaneous)
>> - Case DOS 8 ...
>> DOSCode = FFFFh. Seems to be hardwired, HiMem is built-into IO.SYS
>> and DOS is always loaded in the HMA (DOS=LOW has no effect).
> I'd still rather use the other method here. If it works just as well,
> handling MS-DOS 8 separately only adds unnecessary code.
Read again, Mister. The DOS7 method won't work in DOS 8, and vice versa. DOS8 CS=FFFF is hardcoded, it's how they built it. MS-DOS 8 is intended as a launcher for Windows ME, not as a compatible all purpose DOS.
> Also, the
> XMM might find the HMA to be unavailable somehow and the kernel would then
> probably revert to another location.
No, no, no! It's hard coded my friend. The necessary mechanics to load DOS elsewhere have been removed (which also makes DOS8 marginally faster than its predecessor). Do like me, just look at the code (if like me you don't own ME, you can make a DOS 8 diskette from Win XP, or download one from many sites. Just remove the junk and study the code!)
>(Might be due to unknown A20 switch
> method, or only 1 MiB of physical memory.
DOS couldn't load. In the better case they'll output a cryptic message (you must reinstall Windows ME ???), or, as we know Microsoft, might simply crash. I don't know which, care to check ? Use an emulator and somehow break the HMA...
Not that you could find a PC using a totally exotic A20 control method these days.
And ME wasn't supposed to run on a 386. I believe it's "Pentium or better" (Win 95 : 386+, 98: 486DX IIRW).
>> Amusingly Microsoft seems to ignore this fact and includes a copy of
>> HIMEM.SYS on their boot disquettes, which is just wasting space (unless
>> you want to give HIMEM extra parameters, you may delete it).
> Don't they load the internal driver unconditionally (before processing
> CONFIG.SYS), thus rendering the executable completely useless?
My bet is they load the standalone HIMEM, or another XMS driver, as specified in Config.sys. The reason there IS a himem.sys must be precisely to allow specifying special parameters. In the majority of cases nowadays, the built-in HIMEM with default params and A20 method autodetection should work.
Not that I am a regular user of Win-ME (who is ? )
>> - Case DOS 7.x : peek into DOSData, there is
> Where? Or rather: How do you find that table? If I'd want to find it now,
> I'd look at the interrupt vector for one of the unaltered interrupts in my
> debugger. Your way might be able to find the table even with all these
> interrupts hooked.
Yes of course it is and is the reason I choose this way. The interrupt table is the worst possible option, unless you're prepared for hardcore virus-like following and possibly even tracing of the interrupt chains !
>> I think I will provide the source code per request rather than make it
>> downloadable anonymously.
> I'll just state it flat out: I do not agree with this; I don't see a
> reason to exclude the source generally but to make it available per
> request nonetheless. (Of course this still is better than not providing
> source at all, therefore I thank you. I just don't see why not to provide
> it directly.)
I like to get an idea of who requests the code, how many samples, their expectations, and possibly get some feedback. Do you think an informal email request is too much to ask of them ? If it were, rather cast margaritas ante porcos.
It's not like I'm concealing trade secrets, on the contrary, I am set up to explain clearly the hows and whys, namely in answers to this forum, in a manner which I think for most people makes more sense than an assembly listing.
I don't expect more than a handful persons to be really interested in the ASM code (you being an exception!); I'll change my mind in case I'm overwhelmed by a flow of requests
--
Ninho
---
Ninho
Complete thread:
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - Ninho, 11.12.2009, 00:17 (Miscellaneous)
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - ecm, 11.12.2009, 15:02
- new *FIXWRAP* for MS-DOS7+, aka smashing the bug - Ninho, 12.12.2009, 01:12
- FIXWRAP technical thread. News - Ninho, 12.12.2009, 16:05
- CM's questions, answered - Ninho, 12.12.2009, 18:22
- CM's questions, answered - ecm, 12.12.2009, 22:40
- CM's questions, answered - Ninho, 13.12.2009, 00:10
- CM's questions, answered - ecm, 13.12.2009, 00:51
- CM's questions, answered - Ninho, 13.12.2009, 10:32
- CM's questions, answered - ecm, 13.12.2009, 00:51
- CM's questions, answered - Ninho, 13.12.2009, 00:10
- CM's questions, answered - geoffchappell, 14.12.2009, 10:42
- CM's questions, answered - Ninho, 14.12.2009, 12:19
- CM's questions, answered - ecm, 12.12.2009, 22:40
- CM's questions, answered - Ninho, 12.12.2009, 18:22
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - geoffchappell, 14.12.2009, 10:41
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - Ninho, 14.12.2009, 11:49
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - geoffchappell, 15.12.2009, 16:55
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - Ninho, 15.12.2009, 19:08
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - Ninho, 17.12.2009, 16:35
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - geoffchappell, 15.12.2009, 16:55
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - Ninho, 14.12.2009, 11:49
- the DOS code segment hunt, results/questions - Ninho, 14.12.2009, 20:37
- the DOS code segment hunt, results/questions - ecm, 14.12.2009, 23:30
- the DOS code segment hunt, results/questions - Ninho, 15.12.2009, 00:59
- Aha! Share was a *red herring* ! Hunt over !!! - Ninho, 15.12.2009, 10:32
- Aha! Share was a *red herring* ! Hunt over !!! - ecm, 15.12.2009, 21:13
- Aha! Share was a *red herring* ! Hunt over !!! - Ninho, 15.12.2009, 22:32
- Aha! Share was a *red herring* ! Hunt over !!! - ecm, 15.12.2009, 23:05
- Aha! Share was a *red herring* ! Hunt over !!! - Ninho, 15.12.2009, 22:32
- Aha! Share was a *red herring* ! Hunt over !!! - ecm, 15.12.2009, 21:13
- the DOS code segment hunt, results/questions - geoffchappell, 15.12.2009, 16:56
- the DOS code segment hunt, results/questions - ecm, 15.12.2009, 21:19
- the DOS code segment hunt, results/questions - Ninho, 15.12.2009, 22:38
- the DOS code segment hunt, results/questions - ecm, 15.12.2009, 23:06
- the DOS code segment hunt, results/questions - Ninho, 16.12.2009, 09:22
- the DOS code segment hunt, results/questions - ecm, 15.12.2009, 23:06
- the DOS code segment hunt, results/questions - Ninho, 15.12.2009, 22:38
- the DOS code segment hunt, results/questions - Ninho, 16.12.2009, 20:24
- the DOS code segment hunt, results/questions - Ninho, 30.12.2009, 10:50
- the DOS code segment hunt, results/questions - ecm, 15.12.2009, 21:19
- the algorithm, sketched for review. Nitpicks ? - Ninho, 16.12.2009, 19:51
- the algorithm, sketched for review. Nitpicks ? - ecm, 17.12.2009, 16:19
- the algorithm, sketched for review. Nitpicks ? - Ninho, 17.12.2009, 17:14
- the algorithm, sketched for review. Nitpicks ? - ecm, 17.12.2009, 20:32
- the algorithm, sketched for review. Nitpicks ? - Ninho, 17.12.2009, 21:05
- the algorithm, sketched for review. Nitpicks ? - ecm, 17.12.2009, 21:13
- the algorithm, sketched for review. Nitpicks ? - Ninho, 17.12.2009, 23:16
- digression : MSDOS 7 and SHARE.EXE revisited - Ninho, 18.12.2009, 13:04
- digression : MSDOS 7 and SHARE.EXE revisited - ecm, 18.12.2009, 14:31
- digression : MSDOS 7 and SHARE.EXE revisited - Ninho, 18.12.2009, 17:19
- digression : MSDOS 7 and SHARE.EXE revisited - ecm, 18.12.2009, 18:19
- digression : MSDOS 7 and SHARE.EXE revisited - Ninho, 18.12.2009, 18:55
- digression : MSDOS 7 and SHARE.EXE revisited - ecm, 18.12.2009, 18:19
- digression : MSDOS 7 and SHARE.EXE revisited - Ninho, 18.12.2009, 17:19
- digression : MSDOS 7 and SHARE.EXE revisited - ecm, 18.12.2009, 14:31
- the algorithm, sketched for review. Nitpicks ? - ecm, 17.12.2009, 21:13
- the algorithm, sketched for review. Nitpicks ? - Ninho, 17.12.2009, 21:05
- the algorithm, sketched for review. Nitpicks ? - ecm, 17.12.2009, 20:32
- the algorithm, sketched for review. Nitpicks ? - Ninho, 17.12.2009, 17:14
- the algorithm, sketched for review. Nitpicks ? - ecm, 17.12.2009, 16:19
- the DOS code segment hunt, results/questions - ecm, 14.12.2009, 23:30
- HACKWRAP.SYS news, testing - Ninho, 20.12.2009, 02:44
- FIXWRAP.SYS 0.5 beta - released - please try it ! - Ninho, 23.12.2009, 00:07
- new HACKWRAP fix for MS-DOS7+, aka smashing the bug - ecm, 11.12.2009, 15:02