Search found 334 matches

by xlucas
Aug 08, 2020 23:51
Forum: Beginners
Topic: [solved] GET and PUT ( graphics ) commands slow down my program[solved]
Replies: 64
Views: 10588

Re: GET and PUT ( graphics ) commands slow down my program

Ah, yeah! Well, the thing is... I don't know if it's your case or Daniel's, but I find assembly language beautiful and I'd take every chance to be able to do the programming in it. PCs nowadays have gone so far from low level programming! And that's precisely what made me interested in PICs, because...
by xlucas
Aug 08, 2020 23:47
Forum: Beginners
Topic: MKDIR Question
Replies: 6
Views: 1336

Re: MKDIR Question

MkDir is based in QB, but also, QB's MkDir is based on DOS's md/mkdir command, which, if I remember well, did not allow for creating chains of directories in one pass either. I am using GNU/Linux and I have just tried mkdir in the console and it also disallows doing this. I'd say this is standard mk...
by xlucas
Aug 08, 2020 23:37
Forum: Beginners
Topic: [solved] GET and PUT ( graphics ) commands slow down my program[solved]
Replies: 64
Views: 10588

Re: GET and PUT ( graphics ) commands slow down my program

If I understood correctly, you have a program that draws to a 1024x768 viewport area and you're trying two things. One is to set up a true 1024x768 full screen mode which, being your monitor 16:9, results in a stretched view of the program, but runs fast enough. The other is setting a full screen wi...
by xlucas
Aug 08, 2020 23:15
Forum: General
Topic: How can I use fbgfx in C?
Replies: 7
Views: 1760

Re: How can I use fbgfx in C?

What operating system? If you're using the GCC backend in FB, you can create a test program and [...] Oh! I hadn't thought of that! It's an interesting way to get it working. I'll try that and see how works :) I'm using GNU/Linux, but I would like my programs to be portable to Windows too. Still, G...
by xlucas
Aug 07, 2020 0:34
Forum: General
Topic: How can I use fbgfx in C?
Replies: 7
Views: 1760

How can I use fbgfx in C?

Hi! I would like to use the same functions for graphics when I program in FreeBasic as when I program in C. I know that fbgfx is made in C, so I suppose it should be easy to do. Unfortunately, in C, I'm not as experience as in FreeBasic and, while I can write simple console programs, I don't know mu...
by xlucas
Jun 04, 2020 5:06
Forum: General
Topic: Modifying default graphic character set
Replies: 0
Views: 1182

Modifying default graphic character set

When FreeBasic operates in console mode, characters are output by just issuing bytes in sequence and the system interprets them however it wants, typically as UTF-8 sequences. On the other hand, while in graphics mode, FreeBasic falls back to fixed with 8 bits per character using an encoding I recog...
by xlucas
Apr 02, 2019 4:08
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 40957

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: 26
Views: 16806

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: 3
Views: 8108

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: 4371

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: 10237

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: 1702

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: 1702

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: 1702

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: 1838

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...