Search found 89 matches

by tinram
Mar 31, 2014 22:57
Forum: Beginners
Topic: Need help speeding up division
Replies: 12
Views: 2078

Re: Need help speeding up division

@rollie
Yes, SHR should be the fastest way to divide by powers of 2, without resorting to ASM.
Ages ago, when I compared in FBC 0.18b (?), SHR was ~15% faster than using the equivalent division operator.

Multiplying by the reciprocal of the divisor is another way to avoid slow division.
by tinram
Mar 29, 2014 11:57
Forum: Community Discussion
Topic: 6502 emulator in FB
Replies: 18
Views: 5609

Re: 6502 emulator in FB

@marcov
Thanks, that's good clarification on the C64.
And is starting to refresh my memory.

@squall4226
Hope you get better soon.
Your project sounds promising.
by tinram
Sep 19, 2013 11:36
Forum: Linux
Topic: FreeBasic 0.90.1 for ARM 6 / 7 devices.
Replies: 42
Views: 47026

Re: FreeBasic 0.91.0 for ARM 6 / 7 devices.

Amazing Joshy.
Thank you for your effort in this conversion.

On Raspbian, the installer worked perfectly.
Then, to compile with fbc, ld needed its dependencies (ld: cannot find -lncurses):

sudo apt-get install libncurses-dev

(apt swaps to libncurses5-dev, but works)
by tinram
Jul 30, 2013 22:50
Forum: Sources, Examples, Tips and Tricks
Topic: fb-rc4 - Small & Simple RC4 implementation
Replies: 3
Views: 1718

Re: fb-rc4 - Small & Simple RC4 implementation

Looks promising.

Discarding the first 512+ bytes generated from the keystream generator in rc4.bas would make the implementation stronger.
by tinram
Jan 09, 2013 12:30
Forum: Community Discussion
Topic: 6502 emulator in FB
Replies: 18
Views: 5609

Re: 6502 emulator in FB

@Joshy Yes, the brain I was given falls far short of yours (I've seen lots of your code, and respect it). I know almost nothing about the Commodore 64, except the 'general view' that BASIC on it was bad enough that assembler was often preferred - hence, I guess why you might be suggesting your C64 e...
by tinram
Jan 07, 2013 13:37
Forum: Community Discussion
Topic: 6502 emulator in FB
Replies: 18
Views: 5609

Re: 6502 emulator in FB

These 6502 emulators may be useful: http://skilldrick.github.com/easy6502/ http://e-tradition.net/bytes/6502/ http://6502.org/tools/emu/ The best online emulator I used was http://6502asm.com , but unfortunately the domain seems expired. Wayback confirms this: http://wayback.archive.org/web/*/6502as...
by tinram
Mar 22, 2012 16:55
Forum: Projects
Topic: Gui for chess engine MINIMAX
Replies: 30
Views: 5218

Re: Gui for chess engine MINIMAX

Fast, responsive program, with a nice scale option. Neat code. Superb images by Dr_D. It doesn't max out a CPU core (like Yea Chess v.1.16, http://free-zd.htnet.hr/drazen/ and some others). Piece movement is perhaps too fast (easy to miss opponent's last move) and the program ideally needs a move lo...
by tinram
Jan 05, 2012 20:07
Forum: Linux
Topic: Forum question and Linux Editor question
Replies: 9
Views: 1788

Re: Forum question and Linux Editor question

Thank you TJF.
by tinram
Jan 04, 2012 19:13
Forum: Linux
Topic: Forum question and Linux Editor question
Replies: 9
Views: 1788

Re: Forum question and Linux Editor question

Geany is pleasant to use with FB (unless you want to customize the color highlighting).

You can use other language editors for editing such as CodeBlocks (C++), and perhaps KomodoEdit (web files), although functionality will be reduced.

Purists might go for customised vi/vim.
by tinram
Dec 16, 2011 17:51
Forum: General
Topic: How to flatten the image of a page from a book.
Replies: 28
Views: 17770

Cool example dodicat!
by tinram
Dec 09, 2011 18:19
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 446
Views: 97500

Perhaps a GUI for Crafty? It's one of the strongest open source engines.

Garvan O'Keefe, in his FB 3D OpenGL chess program, used at least one GNU chess library (the GNU opening book I remember, perhaps another one too). That helps to set up a strong opening for the program to build upon.
by tinram
Dec 05, 2011 11:55
Forum: Sources, Examples, Tips and Tricks
Topic: Code Counter
Replies: 3
Views: 850

Nice example pestery - particularly because of your own directory recursion code.

I had missed your example in all the searches done for research - probably because it was 'line' rather than 'code' or 'directory' related.
by tinram
Dec 04, 2011 21:18
Forum: Sources, Examples, Tips and Tricks
Topic: Code Counter
Replies: 3
Views: 850

Code Counter

I have found Vince de Campo's command-line source code counter very useful: http://freebasic.net/forum/viewtopic.php?t=16594 but wanted directory traversal for website projects (rather than dumping all files into a single folder in order to count). Content within multi-line comments also did not see...
by tinram
Nov 12, 2011 9:55
Forum: Sources, Examples, Tips and Tricks
Topic: Perlin noise field
Replies: 13
Views: 5309

Yes, 512 array elements, starting at 0.
by tinram
Nov 11, 2011 17:42
Forum: Sources, Examples, Tips and Tricks
Topic: Perlin noise field
Replies: 13
Views: 5309

Thanks Oz for spotting this - you're correct, p should start at 0.