Search found 216 matches

by rugxulo
Oct 02, 2014 21:33
Forum: DOS
Topic: DPMI and Programs Made with FBC?
Replies: 11
Views: 3955

Re: DPMI and Programs Made with FBC?

I got it to work when booting from floppy! All I had to do was copy the CWSDPMI.EXE to the same folder as my program. Easy as that :-) http://www.delorie.com/djgpp/dl/ofc/simtel/v2misc/csdpmi5b.zip/ I know I'm beating this into the ground here, but just for completeness .... For the record, like I ...
by rugxulo
Oct 02, 2014 21:17
Forum: DOS
Topic: DPMI and Programs Made with FBC?
Replies: 11
Views: 3955

Re: DPMI and Programs Made with FBC?

Windows ME isn't quite the same as either Windows 98 or 95 in that regard. Those both have the option of restarting the computer in DOS mode, and therefore the possibility of adjusting the Autoexec.bat and the path. Not so with Windows ME. The only way to get to DOS is booting from floppy disk, and...
by rugxulo
Oct 02, 2014 20:55
Forum: DOS
Topic: DPMI and Programs Made with FBC?
Replies: 11
Views: 3955

Re: DPMI and Programs Made with FBC?

IIRC in the go32 distribution (the extender from DJGPP), there is a cwsdpmi.exe which is a minimal dpmi provider for plain dos. You might also need to load himem.sys, and maybe you also need go32.exe IIRC win9x doses load himem.sys by default, so it might be a matter of putting cwsdpmi.exe in your ...
by rugxulo
Oct 02, 2014 17:56
Forum: DOS
Topic: DPMI and Programs Made with FBC?
Replies: 11
Views: 3955

Re: DPMI and Programs Made with FBC?

I have a question about DPMI (DOS Protected Mode Interface) and the .exe files produced by FreeBASIC. My question is, when is it necessary to use DPMI, and what particular parameters are needed to run my programs with it? I ask because my DOS programs made with Freebasic all run fine under Windows ...
by rugxulo
Mar 07, 2014 0:57
Forum: DOS
Topic: Intel Speedstep under DOS?
Replies: 5
Views: 4804

Re: Intel Speedstep under DOS?

I know this is late, but I never knew anything (until recently, and only barely!): One guy on freedos-devel recently experimented with this a little bit. The thread (mentioned) explains some of it. However, he wasn't 100% successful (at least, not on Intel multi-core machines) because of the way thi...
by rugxulo
Mar 05, 2014 21:49
Forum: DOS
Topic: Ping network (program in FreeBasic only!)
Replies: 7
Views: 2776

Re: Ping network (program in FreeBasic only!)

FB-dos is based on DJGPP, which apparently doesn't have the Unix sockets API out of the box. At least there's no socket.h. If the libc.a & co don't have these functions then with FB you'd only get linker errors anyways. http://www.delorie.com/djgpp/v2faq/faq22_4.html Network support libraries: ...
by rugxulo
Mar 05, 2014 21:06
Forum: DOS
Topic: SSH server library on freebasic ?
Replies: 2
Views: 1526

Re: SSH server library on freebasic ?

Not sure about how complete it is. I don't use SSH much (and not at all on DOS):

http://sshdos.sourceforge.net/

http://www.ibiblio.org/pub/micro/pc-stu ... s/net/ssh/

I'm pretty sure there was another DOS port (8086?) somewhere, but I forget where it is.
by rugxulo
Jul 21, 2013 21:51
Forum: General
Topic: Is it posible to compile with relocation table
Replies: 7
Views: 1612

Re: Is it posible to compile with relocation table

Yes, you can optionally target the Win32 API with a compiler, produce a PE/COFF .EXE, and run that (with restrictions) under HX. Sometimes you have to set certain options like "set HDPMI=32" and/or "set DPMILDR=32" (or "set DPMILDR=128" or "set DPMILDR=136", ...
by rugxulo
Jul 21, 2013 1:52
Forum: DOS
Topic: Does FreeBasic use Dos Interrupt 16h for inkey$ ?
Replies: 10
Views: 3470

Re: Does FreeBasic use Dos Interrupt 16h for inkey$ ?

BTW, I'm not unsympathetic to the idea of a DOS VM. I have often thought that, with DOSBox, that DOS is still a valid target a la Java/JVM (even if weaker, obviously). Of course, that's not a popular opinion, so I don't expect anyone to sympathize (and know for a fact that most don't). Just so you k...
by rugxulo
Jul 21, 2013 1:41
Forum: DOS
Topic: Does FreeBasic use Dos Interrupt 16h for inkey$ ?
Replies: 10
Views: 3470

Re: Does FreeBasic use Dos Interrupt 16h for inkey$ ?

wah wah wah I can't speak for anyone else. I'm not ragging on Android at all, it works fairly well. But ... the overall ecosystem of computing is very throwaway these days. My machine is already (!) unsupported by Lenovo, using "old" kernel 2.6.36, probably won't get more updates, has som...
by rugxulo
Jul 21, 2013 1:29
Forum: Documentation
Topic: -gen GCC
Replies: 3
Views: 2029

Re: -gen GCC

Maybe it will work to have fbc set the DJGPP environment variable in that case. You normally also need DJGPP.ENV from DJDEV*.ZIP. That's what the %DJGPP% env. var. points to, anyways. Without that, it doesn't know where to find the various GCC pieces that aren't in the %PATH%. (from memory, here's ...
by rugxulo
Jul 17, 2013 0:01
Forum: General
Topic: Is it posible to compile with relocation table
Replies: 7
Views: 1612

Re: Is it posible to compile with relocation table

All Win32 (PE/COFF) binaries these days are "relocs stripped". The relocations (not counting .DLLs) were only strictly needed for old Win32s (atop Win 3.1). Yes, you can optionally target the Win32 API with a compiler, produce a PE/COFF .EXE, and run that (with restrictions) under HX. &quo...
by rugxulo
Jul 16, 2013 23:49
Forum: General
Topic: Are any of the FreeBasic Commands done in assembly?
Replies: 23
Views: 3158

Re: Are any of the FreeBasic Commands done in assembly?

Although personally I find it quite strange that instructions like REP LODSD/STOSD/MOVSD would not have been optimized to run as fast as possible by the chip designers, but instead there is a gain to be had with silly unrolled loops. "REP LODSx" is not very widely used, AFAIK. But "R...
by rugxulo
Jul 16, 2013 23:13
Forum: Beginners
Topic: FB adaptation of a C program
Replies: 14
Views: 2104

Re: FB adaptation of a C program

I ran the original C code by compiling the file with dev C. Had to change random() to rand(). That's mentioned on the original download page: "In addition, random() was changed to rand(), because the former does not seem to be universal (gcc recognizes both)." Even DJGPP's libc has "...
by rugxulo
Jul 16, 2013 20:50
Forum: DOS
Topic: Detecting system's codepage (DOS)
Replies: 13
Views: 8846

Re: Detecting system's codepage (DOS)

I have not used FB a lot (and barely know anything in general anyways), hence my slow reply here: int 21h, 6601h is only for "system" code page (used by CHCP), not the "display"-ed one. (They don't have to match, although ideally they maybe would, if everything were fully support...

Go to advanced search