Search found 268 matches

by xlucas
Apr 02, 2019 4:08
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 8828

Re: FreeDOS and UEFI

Hey, guys... I think the problem with DOS running on new computers today is not the BIOS, but the hardware. That is, if the hardware were the same, really most BIOS functions are never called by most programs. If it were worth it, I agree it'd be relatively easy to create a "BIOS" that wou...
by xlucas
Mar 30, 2019 3:07
Forum: DOS
Topic: Why do you still program for DOS?
Replies: 11
Views: 5284

Why do you still program for DOS?

I am still interested in programming for DOS and if you're reading this thread, odds are that you are too. I am not surprised as, like I say, I do too, but I'm interested in knowing what makes you choose to program for DOS today and why you like it, because sometimes I ask myself that question too. ...
by xlucas
Mar 30, 2019 2:50
Forum: DOS
Topic: Playing modules MOD XM IT S3M
Replies: 4
Views: 3466

Re: Playing modules MOD XM IT S3M

I don't know any DOS library for this. If anybody does, then that'll be a better answer to your question, but just in case no one does, this is what I do know: MOD and S3M format are very documented everywhere. I have made programs in the past that handled these formats. Yet, if you're to reproduce ...
by xlucas
Feb 21, 2019 0:11
Forum: Beginners
Topic: Random numbers not the same
Replies: 26
Views: 1853

Re: Random numbers not the same

So... you have k numbers (in your example, k = 200 ) and on each of n iterations, you want one of those numbers, so that the same number won't come up again. If k is always going to be 200, which is not big, then I think what counting_pine suggested is the best approach. Also, as deltarho said, if y...
by xlucas
Oct 26, 2018 0:16
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 5477

Re: Programming/math "puzzle" for you, guys

I'm resurrecting this super-old thread I had started because I've come across with something very relevant. It turns out the problem I came up does exist and was first approached in the late 19th century, ha, ha. My conjecture is indeed a proved theorem and the concept is called a De Bruijn sequence...
by xlucas
Jul 28, 2018 21:36
Forum: General
Topic: Prime number distribution at sight
Replies: 11
Views: 1015

Re: Prime number distribution at sight

Indeed there are rules to distribute prime numbers. [...] Some biologists suggest that other species might use prime numbers. Example: https://www.bbc.co.uk/news/magazine-14305667 [...] Indeed, I had read about this thing on cicadas before! It makes sense, in my opinion, that animals and even simpl...
by xlucas
Jul 27, 2018 23:06
Forum: General
Topic: Prime number distribution at sight
Replies: 11
Views: 1015

Re: Prime number distribution at sight

jj2007: Yeah, ha, ha... it looks like nature wasn't able to hide the non-randomness of the prime number distribution very well :P I actually created the program because I suspected that, if I separated Gaussian primes from non-Gaussian primes, I was going to see some conspicuous effect, but it wasn...
by xlucas
Jul 24, 2018 5:01
Forum: General
Topic: Prime number distribution at sight
Replies: 11
Views: 1015

Prime number distribution at sight

This is a well known trick discovered by somebody whose name I don't remember. Thing is, for the one who doesn't know, prime number distribution seems to be incredibly random and mathematicians have been for centuries trying to find an infallible rule, to no success. Yet, from time to time, some gen...
by xlucas
Jan 03, 2018 4:41
Forum: General
Topic: Graphical letters in textscreen
Replies: 10
Views: 862

Re: Graphical letters in textscreen

Console mode is not the same as text mode. It sounds obvious, but until the first time I realised how true this was, I was sure the difference was something more subtle. If you've started your programming in DOS, like I did, then you're used to being able to exploit the whole of the hardware text mo...
by xlucas
Dec 21, 2017 19:04
Forum: General
Topic: Goto var
Replies: 15
Views: 838

Re: Goto var

Yes. That is true. It all depends on the size of your var and how fast you want the thing to be. But it's something that comes with FreeBasic without hacking and it's pretty fast with that in consideration. Maybe the best "vanilla" option.
by xlucas
Dec 21, 2017 18:57
Forum: General
Topic: Managing 2 windows (or window/console) without additional libs
Replies: 5
Views: 579

Re: Managing 2 windows (or window/console) without additional libs

Another solution would be to create a frameless, transparent window the size of the desktop (or two desktops), use a transparent background and draw the windows yourself. It can be a lot of work, but depending on what you want it for, maybe it's what you'd prefer to do.
by xlucas
Dec 21, 2017 18:48
Forum: General
Topic: Goto var
Replies: 15
Views: 838

Re: Goto var

Select Case As Const is the fast alternative to Select Case that does just what Albert was asking, I think. If I understand correctly, it uses a translation table instead of comparing for each value. So that'd be a XLAT followed by a JMP , right? I personally see Select Case As Const as the modern ...
by xlucas
Dec 03, 2017 2:24
Forum: Community Discussion
Topic: time to say goodbye
Replies: 53
Views: 5771

Re: time to say goodbye

FreeBASIC is a boat without a captain. BASIC is for beginners and this is OK but too much idiots and trolls here and the moderators are blind or sleeping. It'd really be a great loss if you go, Joshy. I wonder if you'll actually read all these posts. There's a couple of points I'd like to make abou...
by xlucas
Nov 23, 2017 7:09
Forum: Tips and Tricks
Topic: draw rotated ellipse
Replies: 8
Views: 964

Re: rotate oval

That looks very neat, mate! :) It occurs to me that, instead of the space bar, the right mouse button could be used to switch between changing the radius and rotating the oval. Just an idea.
by xlucas
Nov 23, 2017 7:02
Forum: General
Topic: Signed/unsigned equality. Bug?
Replies: 17
Views: 1213

Re: Signed/unsigned equality. Bug?

Maybe. But well, I wasn't able to replicate that in my shorter example. I'd like to be able to isolate the effect. I thought I had when I first posted. The TargaSave function does have that, but the shorter code seems to always compile the same.

Go to advanced search