Search found 115 matches

by DamageX
May 02, 2019 21:03
Forum: DOS
Topic: FreeDOS 21st century?
Replies: 17
Views: 1607

Re: FreeDOS 21st century?

Does the night kernel carry on with the old DOS/DPMI API or does it have a new API? It sounds interesting but I can`t find the slightest info about it.
by DamageX
Mar 25, 2019 22:54
Forum: DOS
Topic: Difficulties in DOS on real hardware
Replies: 29
Views: 1880

Re: Difficulties in DOS on real hardware

Old versions of the FreeBasic compiler probably will not work, as I know the DOS graphics library was hopelessly broken until version 1.0 or something. What aspects of the graphics library do you need? I have a few graphical programs that I've run in DOS on a 486. I compiled using FB 0.23. The main...
by DamageX
Feb 10, 2018 10:17
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 824

Re: weird crashes on Phenom II X4

I was using MouseWare 6.30 that I've had since ancient times. I tried CTMOUSE and that resulted in crashes as well. I guess the real problem is the PS/2 mouse emulation in the BIOS (the system has a USB mouse). I tried disconnecting the USB mouse and connecting a serial mouse instead and then FB pro...
by DamageX
Feb 07, 2018 6:58
Forum: General
Topic: Houston, we have a bug!
Replies: 6
Views: 561

Re: Houston, we have a bug!

It's GetVersion all over again. And how do you know that it won't work with a version less than 5.1.2600? Whether your OS checking code works right or not, my vote is that you (and everybody else) just leave it out. Then I won't have to waste time bypassing the check with a hex editor to run softwar...
by DamageX
Jan 15, 2018 22:06
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 824

Re: weird crashes on Phenom II X4

There is a newer CWSDPMI, one from 2000 and one from 2010. I tried those, with no change. I also tried disabling CPU cache in the BIOS (again, no change). Then I put the other CPU back in and things work again. However, there are still some GPFs when moving the mouse. Without the mouse driver being ...
by DamageX
Jan 14, 2018 1:13
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 824

weird crashes on Phenom II X4

In one of my PCs I swapped out an Athlon II X2 CPU for a Phenom II X4. All other hardware remains unchanged. Then I noticed that FB DOS programs are no longer working. A very simple "hello world" program will run but when using graphics SCREEN it fails at some point... ' this program execu...
by DamageX
Jan 07, 2018 1:55
Forum: DOS
Topic: Graphics problem.
Replies: 6
Views: 872

Re: Graphics problem.

Yes, it works in FB 1.05.0 DOS also...
by DamageX
Jan 06, 2018 9:39
Forum: DOS
Topic: Graphics problem.
Replies: 6
Views: 872

Re: Graphics problem.

Not sure if this is an issue with FB or your machine. FYI, Screen 2 works fine for me with the older FB 0.23
by DamageX
Jan 06, 2018 8:58
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 7
Views: 902

Re: Audio library for FreeBasic - Features

I think a sound library should have both low and high level features Low level: Open a channel to sound output (setting frequency, mono or stereo mode, and bit depth) Send raw PCM data to such channel Open a MIDI channel Send raw MIDI messages I agree that these are fundamental capabilities which s...
by DamageX
Dec 07, 2017 9:20
Forum: Community Discussion
Topic: FreeBASIC Discussion December 2017
Replies: 42
Views: 4741

Re: FreeBASIC Discussion December 2017

strengths:
-maintaining QBASIC compatibility while simultaneously allowing access to modern hardware/OS
-minimal system requirements/dependencies
-inline assembly
-very good documentation
-free license
-multiplatform
by DamageX
Dec 07, 2017 8:21
Forum: Windows
Topic: Does anyone know what algo XP -> full screen DOS?
Replies: 95
Views: 5516

Re: Does anyone know what algo XP -> full screen DOS?

Windows XP doesn't use any algorithm if I remember correctly. When viewing a full-screen DOS window, it actually uses the VGA's actual mode. Yes, exactly. Running a DOS program full-screen under Windows gets you the same thing as running it in DOS. However there is another important thing to note. ...
by DamageX
Nov 21, 2017 8:41
Forum: General
Topic: Signed/unsigned equality. Bug?
Replies: 17
Views: 1031

Re: Signed/unsigned equality. Bug?

Dim a As Short, b As UShort a = -1234 'Change this to any negative number b = a Print b Print Hex(a); " = "; Hex(b) If a = b Then Print "equal" Else Print "non-equal" GetKey I'm trying to replicate it now and realised the code as I posted it is giving non-equal on both...
by DamageX
Nov 14, 2017 6:28
Forum: General
Topic: For the graphics gurus, perhaps <smile>
Replies: 9
Views: 450

Re: For the graphics gurus, perhaps <smile>

Another approach is to use a different probability density function. We could use the normal distribution where a change in direction by, say, 90° would be highly unlikely, 80° more likely, 70° more likely still and so on on until we get to the greatest likely change in the range [-10°, 10°]. What ...
by DamageX
Nov 13, 2017 0:34
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 911

Re: passing strings to external functions

At the very least he could have provided the C function prototype he's trying to pass a string to I was trying to call wsock32.dll gethostbyname. From Windows Sockets Network Programming : struct hostent FAR * PASCAL FAR gethostbyname /* Null on failure */ (char FAR *name); /* pointer to name of th...
by DamageX
Nov 12, 2017 10:26
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 911

Re: passing strings to external functions

Well, I posted generic example code to get right to the point. But after thinking about it I realized what I should have done. I compiled all three and compared assembly listings. So now I can answer my own question. The first and second pieces of code generate exactly the same output. Third one is ...

Go to advanced search