flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Bochs & fasm for dos problem Goto page 1, 2 Next |
Author |
|
vid 22 Jun 2004, 18:23
fasm uses flat real mode, while you are running in protected mode i quess.
|
|||
22 Jun 2004, 18:23 |
|
keyoke 22 Jun 2004, 18:41
thanks for the reply vid, could you please explain to me exactly what u mean. how can i do it? I just assume that the dos version of fasm would work in dos????
|
|||
22 Jun 2004, 18:41 |
|
JohnFound 22 Jun 2004, 19:40
Visibly, Bosch BIOS does not have some of the functions of int 15h that FASM uses.
|
|||
22 Jun 2004, 19:40 |
|
keyoke 22 Jun 2004, 19:48
this is what i thought aswell from the log but i admit i have not test fasm for dos 1.52 with vmware but i did test 1.49 with vmware some while ago and it also crashed the whole virtual machine, spose will have to test with vmware but i dont really like using it
|
|||
22 Jun 2004, 19:48 |
|
keyoke 22 Jun 2004, 20:29
ok tried 1.52 with vmware 4.0.1 a error occurs.
from the log! Quote:
Am i wrong in thinking that the DOS version of fasm 1.52 should run in pure dos mode......or am i right? if not why oh why???? will try it in vmware 4.5.0 see what happens! |
|||
22 Jun 2004, 20:29 |
|
vid 22 Jun 2004, 20:36
i still think you won't run it under some DOS emulator. FASM must be run in REAL MODE (mode in which computer is when turned on), but all newer OSes use PROTECTED MODE. Protected mode tries to emulate real mode for programs that use it, but some things are not possible (this "thing" is called "flat real mode"). And this is used by FASM. By the way, with using EMM386 driver under DOS, your computer is switched to protected mode and FASM won't run too.
I heard some programs even emulate flat real mode, but they are very rare. |
|||
22 Jun 2004, 20:36 |
|
keyoke 22 Jun 2004, 20:47
Hi vid,
If wat u say is true then it should still work, here is a paragraph from article on vmware Quote:
Well i spose this is unfortunate for me then would have liked to muck around in old dos 6.22 |
|||
22 Jun 2004, 20:47 |
|
pelaillo 22 Jun 2004, 21:34
Have you tried with com version of fasm?
|
|||||||||||
22 Jun 2004, 21:34 |
|
keyoke 22 Jun 2004, 21:49
thnx will try it and see what happens
|
|||
22 Jun 2004, 21:49 |
|
f0dder 22 Jun 2004, 22:58
Get the Win32 PE console version of fasm, and use stubit.exe from the wdosx extender on it - there's a good chance this will work under bochs and vmware. WDOSX supports a lot of different modes, include raw ring0 pmode, himem.sys mode, emm386 (VCPI) mode, DPMI mode (even under windows), etc...
|
|||
22 Jun 2004, 22:58 |
|
keyoke 23 Jun 2004, 18:44
Thanks f0dder your solution works perfectly
|
|||
23 Jun 2004, 18:44 |
|
Tomasz Grysztar 23 Jun 2004, 20:55
The whole problem is because bochs seemingly doesn't emulate 32-bit unREAL mode correctly (this is not the same as flat real mode, and is much more tricky, but works on all Intel and AMD processors, look here for details). You also deal with this problem by disabling use of the unREAL mode in DOS version, so it will always use DPMI if available. But you would still need some DPMI server (I recommend the cwsdpmi) to run it.
|
|||
23 Jun 2004, 20:55 |
|
f0dder 23 Jun 2004, 22:17
bochs has a lot of bugs (try saying that out loud ) - and it's BIOS emulation is lacking. It's doing well for an x86 emulator, and even more well for a GPL project, but it's still lacking. Perhaps CWSDPMI is a better solution than wdosx, but wdosx is useful for a lot of stuff - it was very useful for running NASM/w32 back in the dos days, since the native dos version was 16bit suckyness
|
|||
23 Jun 2004, 22:17 |
|
keyoke 24 Jun 2004, 20:09
thanks guys, I was just confused as to why it was not working. am using vmware now instead of bochs will look into the stuff u mentioned privalov
for the moment it is working tho. |
|||
24 Jun 2004, 20:09 |
|
keyoke 25 Jun 2004, 08:12
Privalov I have downlowded that dpmi server now but how do i disable unreal mode?
|
|||
25 Jun 2004, 08:12 |
|
keyoke 25 Jun 2004, 08:45
No worries,
i just changed the system.inc line call modes:real32 to call modes:dpmi and recompiled it works but wont compile anything. was this what u were suggesting. thanks for the help |
|||
25 Jun 2004, 08:45 |
|
fasm9 17 Jul 2004, 10:57
Hi, Have you tried dosemu?
dosemu (stable:1.2.2, devel:1.3.1) supports dpmi, AFAIR. ;) http://dosemu.sf.net |
|||
17 Jul 2004, 10:57 |
|
f0dder 17 Jul 2004, 14:12
iirc it's possible to run DOOM in dosemu, so it most likely does support DPMI
|
|||
17 Jul 2004, 14:12 |
|
keyoke 19 Jul 2004, 08:24
Hey guys i Have tried nearly all emulators possible still not working it sucks
|
|||
19 Jul 2004, 08:24 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.