Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Running FreeDos programs
2014 年 05 月 15 日
08:56:33
Dinosaur
Member
Forum Posts: 27
Member Since:
2014 年 01 月 06 日
Offline

Hi All

I compiled a small program that consists of:

Print "Hello World"
Sleep
End

When I run that at the prompt I get an exception Error.

Exiting due to signal SIGFPE
Division by Zero at eip=00004e3d, x87 status=0000
eax=00000001 ebx=00232350 ecx=00000001 edx=00000000 esi=000216e0 edi=002327ac
ebp=00000000 esp=002322f0 program=C:\TEST.EXE
cs: sel=00a4 base=10000000 limit=0023ffff
ds: sel=00ac base=10000000 limit=0023ffff
es: sel=00ac base=10000000 limit=0023ffff
fs: sel=00bc base=00000000 limit=0010ffff
gs: sel=00bc base=00000000 limit=0010ffff
ss: sel=00ac base=10000000 limit=0023ffff
App stack: [00232910..00032914] Exceptn stack: [00032830..000308f0]

Call frame traceback EIPs:
0x00004e3d

Now this usually happens when CWSDPMI is not loaded.
So, I typed in

cwsdpmi --Help
and got

Can't load PMODE.
C:\>

Why ?

My Autoexec.bat
@echo off
SET DOSDIR=C:\FDOS
SET DIRCMD=/P /OGN /4
SET COPYCMD=/-Y

REM SET NLSPATH=%dosdir%\NLS
REM SET HELPPATH=%dosdir%\HELP
SET TEMP=Z:\
SET TMP=%TEMP%

SET PATH=%dosdir%\BIN

LH DOSLFN

C:\NET\NETBIND.COM
C:\FDOS\BIN\RDISK.COM /S2 /:Z
rem _v86boot
MODE com4:9600,N,8,1,P
ctty com4

Regards

Regards
2014 年 05 月 16 日
08:58:51
Dinosaur
Member
Forum Posts: 27
Member Since:
2014 年 01 月 06 日
Offline

Hi All

I would like to hear from anyone who is running 32 bit programs in the FreeDos environment
provided by the 86Duino.

I have doubts now that it is a TRUE Dos or FreeDos environment.
When starting a 32 bit application , usually the DPMI is either already loaded, or it is loaded when you start your program.
CWSDPMI at the prompt will not issue any sort of confirmation that it has loaded. This is unusual in itself.
When you try to load CWSDPMI again, then you get the error that it can't enter the protected mode.

So, I compiled a "Hello World" program in 16bit Dos.(I didn't load CWSDPMI)
It ran without errors, but the message "Hello World" did not get printed.

These units are being sprouted as DOS, FreeDos, Windows & Linux units.
I have been programming Dos, FreeDos and Windows for more years then I will admit to,
AND this thing does NOT behave like a FreeDos computer.

Regards

EDIT; If you run the FreeDos provided editor Edlin16.exe it works
If you run CWSDPMI and then run EDLIN32.exe it fails.

Regards
Forum Timezone: Asia/Taipei

Most Users Ever Online: 229

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

hippy: 9

smeezekitty: 8

lukeross: 8

tomka: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1573

Moderators: 15

Admins: 5

Forum Stats:

Groups: 2

Forums: 11

Topics: 248

Posts: 1114

Newest Members: Dennissot, bb4000, Ovendaanalolymn, Ling ChengYU, EROGurnedo, Alfredhak, Davidherie, Nelsonbok, EugeneDut, RobertOwell

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 228, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 26, jejump: 14, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 1