Search found 1197 matches

by badidea
Mar 24, 2019 19:05
Forum: DOS
Topic: Difficulties in DOS on real hardware
Replies: 24
Views: 829

Re: Difficulties in DOS on real hardware

As for versions of the compiler... well, I am looking into developing for real mode 16-bit DOS using OpenWatcom. Of course this requires learning a lot about the 16 bit memory model, but that's OK. Old versions of the FreeBasic compiler probably will not work, as I know the DOS graphics library was...
by badidea
Mar 24, 2019 17:21
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

Without a working decompressor, your compressor is just a fancy hash generator. Looking into cryogenics I note that people will pay about 200000 dollars for the process, and for the less well heeled, about 80000 dollars a head (literally). So these half way processes have value. Cryogenics? I thoug...
by badidea
Mar 24, 2019 1:18
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

Without a working decompressor, your compressor is just a fancy hash generator.
by badidea
Mar 24, 2019 0:45
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

Maybe you should start with getting your amazing data compressor to work, before fantasizing how rich you could get. It sounds like 99% fantasy, 1% real code or less).
Edit: posted at the same time as Richard
by badidea
Mar 23, 2019 0:06
Forum: DOS
Topic: Difficulties in DOS on real hardware
Replies: 24
Views: 829

Re: Difficulties in DOS on real hardware

(virtualbox) The whole issue here is that FB programs will run great on 586+ machines, but tend to fail on 386 and 486. (Nobody seems to have such real hardware anymore, so what does it really matter then?) I was also wondering why one wants to make game in 2019 for a processor introduced in 1989 (...
by badidea
Mar 19, 2019 7:41
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

Richard wrote:
badidea wrote:Compress the universe to a 1 x 1 grid and you have your singularity!
The interesting question there is the size of the dictionary needed to regenerate the universe from 1 bit.

If you drop that dictionary, you get a big bang :-)
by badidea
Mar 18, 2019 23:21
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

Compress the universe to a 1 x 1 grid and you have your singularity!
by badidea
Mar 16, 2019 22:15
Forum: Documentation
Topic: Wiki improvements
Replies: 258
Views: 17580

Re: Wiki improvements

I have updated the 3 scancodes on the wiki. I left the comment '' Extra scancodes not compatible with DOS scancodes untouched.
by badidea
Mar 14, 2019 22:35
Forum: Tips and Tricks
Topic: Layered Parallax Effect v0.70
Replies: 14
Views: 499

Re: Layered Parallax Effect

Yep, runs fine on linux and no trouble with the .rar file :-p On linux, changing Sleep (10, 1) to Sleep (1, 1) brings fps from 25 to 30 here. There seems room for speed improvement in the Transform() function (which is called often). 'w', 'h' and 'd' are calculated many times, but the result be will...
by badidea
Mar 13, 2019 23:49
Forum: Documentation
Topic: Wiki improvements
Replies: 258
Views: 17580

Re: Wiki improvements

The wiki page on keyboard scancodes (https://freebasic.net/wiki/wikka.php?wakka=GfxScancodes), lists the following: '' Extra scancodes not compatible with DOS scancodes SC_LWIN &h7D SC_RWIN &h7E SC_MENU &h7F When I run this: #include "fbgfx.bi" print hex(fb.SC_LWIN) print hex(f...
by badidea
Mar 13, 2019 19:59
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

The "Big Crunch" is one of the theories, there is also the "Big Rip", the "Big Freeze", the "Big Chill" (sound more comfortable then "Big Freeze"), "Big Bounce", "Big Snap" and more. To be sure, reserve a table at "The Restau...
by badidea
Mar 10, 2019 22:30
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 30
Views: 1150

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Lachie Dazdarian wrote:Round 2 has been officially extended to 8th of April.

Thanks, some other (work related) project is currently interrupting my progress on the game.
by badidea
Mar 10, 2019 14:25
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

... I notice many are double barrelled which I presume means that a couple of people have went through hellish stages of arguing, including, I suppose, which name appears first ... If too much persons are involved, the algorithm names become boring abbreviations, e.g.: DPLL algorithm LZSS algorithm
by badidea
Mar 10, 2019 0:09
Forum: General
Topic: Squares
Replies: 6323
Views: 358499

Re: Squares

albert wrote:Is there a formula to figure out how many bits are set to 1 in a binary number??

It is called the Hamming weight (https://en.wikipedia.org/wiki/Hamming_weight), apparently some processors have a instruction for that e.g. POPCNT.
by badidea
Mar 09, 2019 20:49
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 195
Views: 26737

Re: FLTK C for FreeBASIC Jan 09, 2017

Alternative suggestion: Set 'new file window' modal (https://en.wikipedia.org/wiki/Modal_window) SUB NewFile CDECL (widget AS Fl_Widget PTR, userData AS ANY PTR) 'Fl_Menu_ItemDeactivate(MENU) var win = Fl_WindowNew(500,660,"multi_card_input_v1.bas") Fl_WindowSetModal(win) ...

Go to advanced search