Search found 1272 matches

by caseih
Feb 18, 2019 18:02
Forum: DOS
Topic: FreeDOS 21st century?
Replies: 9
Views: 223

Re: FreeDOS 21st century?

I am more interested in FreeDOS and FBC, if I have a copy of MS-DOS, I have not used it in a very long time. Such a distinction doesn't matter. FreeDOS is nearly 100% compatible with MS-DOS, and shares all the same architecture and limitations as plain old DOS. Hence my comment about TSRs and the 3...
by caseih
Feb 18, 2019 15:41
Forum: DOS
Topic: FreeDOS 21st century?
Replies: 9
Views: 223

Re: FreeDOS 21st century?

There was some discussion of TSRs and FB on the forum last year sometime. You might use search to pull up that discussion. I'm pretty sure that FBC under DOS, and the executables it creates are 32-bit extended-mode programs, so they can't run on 16-bit chips like the 80286 or the 8086. Also I don't ...
by caseih
Feb 16, 2019 18:04
Forum: Projects
Topic: Coil Inductance and Q Calculator
Replies: 12
Views: 243

Re: Coil Inductance and Q Calculator

The main problem was the inadequacy of the FB documentation. It took me months to find all the answers I needed. Some were buried in multipage examples, which I normally don't read. Searching this forum yielded other answers. Still others I had to discover by examining assembler code. I was able to...
by caseih
Feb 05, 2019 1:02
Forum: DOS
Topic: Shell command
Replies: 2
Views: 130

Re: Shell command

I think you have to put the actual commands you want shell in a string, don't you? But yes that should work. And yes, shell will suspend your program's execution, run the commands you passed it, and then continue on in your program. I'm not sure how MS-DOS dealt with trying to change the very file y...
by caseih
Jan 26, 2019 4:01
Forum: General
Topic: @CODERS "Endian stuff"
Replies: 28
Views: 757

Re: @CODERS "Endian stuff"

As I was thinking about it, I realized that there's not way to implement a pointer that can have an endian specified. Because a pointer simply points to the first byte. There's no way to make pointer arithmetic work otherwise. I believe that Albert is working on some kind of extended precision math ...
by caseih
Jan 23, 2019 7:04
Forum: General
Topic: @CODERS "Endian stuff"
Replies: 28
Views: 757

Re: @CODERS "Endian stuff"

Your PC is probably little endian. The least significant *byte* (not digit) is stored first in memory. Now granted that's probably backwards to how most people think about numbers and how we write them. Intel must have had their reasons. I can think of maybe one or two. In short, you don't correct f...
by caseih
Jan 21, 2019 2:11
Forum: Beginners
Topic: FileExists() and FileCopy() supporting Unicode file names
Replies: 7
Views: 287

Re: FileExists() and FileCopy() supporting Unicode file names

Yes the *Microsoft* C runtime has many unicode functions out of necessity[1]. But they're definitely not part of the C standard runtime. Any function that begins with an underscore is a non-standard addition. So it works on Windows only, but it's definitely not portable to any other operating system...
by caseih
Jan 17, 2019 0:47
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 25
Views: 758

Re: No german umlauts with libcurl

Definitely a bug in curl. The command-line curl also returns zero bytes. wget, on the other hand, retrieves the document just fine.
by caseih
Jan 11, 2019 1:05
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 791

Re: Has anyone looked into Jai?

It is 100% too costly. Poor choice of words on my part. I'm not talking about allocating and releasing memory constantly. I'm talking about the populating of the table values. Memory could very well be statically allocated. Except for the setup time, everything else would be same performance-wise. ...
by caseih
Jan 10, 2019 5:21
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 791

Re: Has anyone looked into Jai?

Yeah lookup tables are used a lot in game programming. Not just for jump tables. But for a lot of other things like colors, openGL triangle buffers, etc. If those are large tables they are often generated by other programs and placed in source code used in compilation. This is actually a fairly comm...
by caseih
Jan 10, 2019 1:50
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 791

Re: Has anyone looked into Jai?

Near as I can tell Jai accomplishes very little in actual fact. It doesn't seem to really exist outside of Mr Blow's own personal computer. There's no public release of any kind as near as I can tell. If there is it isn't showing up as the first link on a google search. Unlike Go, Rust, etc. So what...
by caseih
Dec 27, 2018 15:52
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 496

Re: Select Case operating like the C 'switch'

I think GOTO would be much faster than abusing do/loop. And probably easier to read. Another idiom would be to break the case body code out into their own macros (or inline functions if FB supported that), and then just use a regular select/case and call the sequences of those macros or functions in...
by caseih
Dec 26, 2018 17:01
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 496

Re: Select Case operating like the C 'switch'

Yes the answer is, "not going to happen!" although that could be for reasons that aren't purely technical.
by caseih
Dec 26, 2018 16:54
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 496

Re: Select Case operating like the C 'switch'

The problem is you're proposing creating a new FB-like language. It certainly wouldn't be FB, and it wouldn't be able to compile FB code if select/case were changed to behave like the C switch statement. Possibly FB could add a switch statement separate from select, but this would simply add complex...
by caseih
Dec 22, 2018 1:28
Forum: Community Discussion
Topic: adding FreeBASIC to the TIOBE index
Replies: 36
Views: 1105

Re: adding FreeBASIC to the TIOBE index

Interesting, but not very plausible. Windows and MS Office are certainly not written in COBOL. Same for LibreOffice and many more popular applications. Where do you get that figure from? Windows may be wildly popular and highly visible in the PC space, but the areas where COBOL is heavily used are ...

Go to advanced search