Search found 25 matches

by Laaca
Mar 14, 2020 21:29
Forum: DOS
Topic: Strange errors
Replies: 11
Views: 705

Re: Strange errors

But this command line: "fbc filetocompile.bas" can't work in normal DOS environment!

Because FILETOCOMPILE.BAS has longer name than usual 8+3 DOS file name format. Don't rely on the 3rd party LFN drivers. In some situations they may not work.
by Laaca
Mar 14, 2020 11:19
Forum: DOS
Topic: Strange errors
Replies: 11
Views: 705

Re: Strange errors

It works in QB 4.5? And what about the calls from C libraries? Do you use in your code some explicite linking with C-library files? (I don't know the proper FB syntax but simething like: "#INCLIB GCC.A" ). Or your code is just "pure" basic code without any attempts to call anythi...
by Laaca
Mar 08, 2020 8:11
Forum: DOS
Topic: Strange errors
Replies: 11
Views: 705

Re: Strange errors

Does work the cross-compilation from Windows compiler to DOS executable? In case you are trying to do a native compilation in DOS system with DOS FB-compiler to DOS executable it is rather some DOS specific problém than a problém in your code. It can be related to LFN (long file names) support. Or t...
by Laaca
Mar 17, 2019 22:24
Forum: DOS
Topic: Difficulties in DOS on real hardware
Replies: 29
Views: 13708

Re: Difficulties in DOS on real hardware

Generally, in the DOS protected mode programming one of the most problematic things are any routines using hardware interrupts or hardware callbacks. There are often problems when interrupt handler wants to use memory which is swapped out from memory pool. So your application can be more stable if t...
by Laaca
Jan 25, 2018 21:10
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 1235

Re: weird crashes on Phenom II X4

Hm, interresting. Does the Phenom II X4 integrate some chipset functionality (like in southbridge/northbridge circuits) just on the chip itself? Because it sound like some kind of A20 gate problem. You should more experiment with various memory setups. By the way - does it occur if you run your samp...
by Laaca
Feb 13, 2015 15:25
Forum: DOS
Topic: Presse a key in same time -> move my mouse. Ctmouse troubles
Replies: 4
Views: 2302

Re: Presse a key in same time -> move my mouse. Ctmouse trou

The problem is probably somewhere in USB-PS2 emulation. If I understand correctly you use USB mouse in USB slot and have only CTmouse driver loaded. So you don't use DOS USB driver by Bret Johnson but you rely on BIOS emulation, right? In such cases you might try to turn off "USB input legacy e...
by Laaca
Aug 12, 2013 13:22
Forum: DOS
Topic: Large fonts in text mode
Replies: 7
Views: 2790

Re: Large fonts in text mode

You could try my pascal unit Mimoza. It allows many exotic things in DOS text mode; besides other things also changing the size of chars. Firstly try the included compiled example. The pascal source is self-explanatory and contains assembler parts. It is not difficult to translate it into basic. htt...
by Laaca
Aug 25, 2012 14:42
Forum: DOS
Topic: exec/chain/run performance loss
Replies: 10
Views: 2010

Re: exec/chain/run performance loss

It could be problem related to disk cache in protected mode. Most disk caching programs can have problems when are in protected mode (which is used by FBC). Before running FBC program you could load alternate DPMI server HDPMI32. Just enter on command line: "HDPMI32 -r". Then run your prog...
by Laaca
Nov 17, 2011 16:38
Forum: DOS
Topic: MIDI in DOS
Replies: 20
Views: 4720

Sure!
Look at it: http://www.laaca.borec.cz/qmidi.pas
The most important parts are encapsulated in {$IFDEF FPC} ... {$ENDIF}
by Laaca
Nov 08, 2011 15:30
Forum: DOS
Topic: MIDI in DOS
Replies: 20
Views: 4720

QMIDI in FreeBasic

Yes, it is not hard to port QMIDI into FreeBASIC. Year ago I ported it into Freepascal - the same 32-bit DPMI DOS environment. You only have to encapsulate the interrupt callings into protected mode envelope.
by Laaca
Jun 09, 2010 20:47
Forum: DOS
Topic: FBCompiler .vs. WindowsUpdates...
Replies: 13
Views: 4247

DOS386 wrote:2. It's not a DOS program, it's a no-OS program that can start from DOS and drop back there (no, I didn't test it myself)


Yes, but the key thing is that return from 64 long mode into 16 bit real mode is possible.
by Laaca
May 26, 2010 19:07
Forum: DOS
Topic: FBCompiler .vs. WindowsUpdates...
Replies: 13
Views: 4247

But Japheth has written a 64-bit DOS program

http://www.bttr-software.de/forum/board_entry.php?id=6886#p6887

And what about this sample application and facts in that thread?
by Laaca
Aug 16, 2009 6:37
Forum: DOS
Topic: Compiler Error - -lgcc missing
Replies: 2
Views: 1836

problems with LFN?

I have suspection than problem is in your path. LD utility has problems with long file names. Try to move Freebasic and your projects into domething like C:\FB
by Laaca
Jul 17, 2008 12:09
Forum: DOS
Topic: SCREEN() doesn't return the character of the work video page
Replies: 6
Views: 2459

If you want to read char from 1,1 of videopage 0, everything is clear:
a = screen (1,1)

Question is position 1,1 of videopage 1.
Did you try this?

a = screen (1,1+maxline)

(in standard 80x25 resolution the maxline=25, of course)
I didn't try it but it could work.
by Laaca
Jul 07, 2008 18:03
Forum: DOS
Topic: Sound Blaster output
Replies: 5
Views: 2684

About non working PCI soundcards:

1) he hears the sound clicks so it means that something works there
2) most probably he has running windows so it will work with PCI cards too

Go to advanced search