Search found 6781 matches

by D.J.Peters
Nov 21, 2017 12:39
Forum: Beginners
Topic: Compound conditional in IF statement
Replies: 12
Views: 249

Re: Compound conditional in IF statement

sancho3 wrote:Except that & converts the right hand side to a string before concatenation.
You are right I forgot it. :-)

Joshy
by D.J.Peters
Nov 20, 2017 2:31
Forum: Beginners
Topic: Compound conditional in IF statement
Replies: 12
Views: 249

Re: Compound conditional in IF statement

I += 1 is the same as i = i + 1 add. two numbers
s &= "a" is the same as s = s & "a" is same as s = s + "a" concatenate two strings

Joshy
by D.J.Peters
Nov 19, 2017 12:47
Forum: Windows
Topic: Compiling, cross-compiling and testing for Windows
Replies: 12
Views: 214

Re: Compiling, cross-compiling and testing for Windows

Most Linux distros comes with QEMU preinstalled or has QEMU packages to install.
On Linux QEMU has a kernel driver that makes QEMU really fast on Linux.
QEMU on Windows isn't fast but supports many different CPU's and dev. boards.

Joshy
by D.J.Peters
Nov 19, 2017 1:09
Forum: Community Discussion
Topic: [offtopic solved] pico seconds VS nano seconds ?
Replies: 1
Views: 80

[offtopic solved] pico seconds VS nano seconds ?

On GA144 GreenArray chip http://www.greenarraychips.com/ you have 144 independent parallel running units. One instruction needs 1400 pico seconds how fast is it ? Looks like i'm wrong I never used pico seconds before is it: edit: 1400 pico seconds = 1.4 nano seconds = ~714 MHz = ~0.7 GHz (144 units ...
by D.J.Peters
Nov 18, 2017 22:50
Forum: Beginners
Topic: Compound conditional in IF statement
Replies: 12
Views: 249

Re: Compound conditional in IF statement

You have to use the "_" char to concatenate the splitted code line. Joshy dim as string SrcStrChar,ElemStr If ((SrcStrChar >= "A" and SrcStrChar <= "Z") or _ (SrcStrChar >= "a" and SrcStrChar <= "z")) then ElemStr &= SrcStrChar End if or write it...
by D.J.Peters
Nov 18, 2017 22:40
Forum: Windows
Topic: Compiling, cross-compiling and testing for Windows
Replies: 12
Views: 214

Re: Compiling, cross-compiling and testing for Windows

I have done it from the opposite direction 2 years ago. Windows XP (32-bit) compiling FreeBASIC code as 32 or 64-bit Windows binary Running Qemu with 32 and 64-bit Linux image to compile same FreeBASIC code to 32 or 64-bit Linux binary. Running Qemu with Raspberry PI image to compile FreeBASIC code ...
by D.J.Peters
Nov 18, 2017 21:18
Forum: Beginners
Topic: ATARI basic to Free Basic
Replies: 5
Views: 105

Re: ATARI basic to Free Basic

"They will all run on all ATARI models including the ATARI 600XL"
So for the Peeks and Pokes you need an ATARI 400-800 book about all this used addresses.

http://www.atarimania.com/documents-ata ... s_2_8.html

Joshy
by D.J.Peters
Nov 18, 2017 21:10
Forum: Beginners
Topic: ATARI basic to Free Basic
Replies: 5
Views: 105

Re: ATARI basic to Free Basic

This won't work if you don't know the internals of the used ATARI device. For example the first BASIC listing on page 7 50 CH=(PEEK(106)-8)*256 ' Is it the high byte of the first CHAR in screen memory or what ? 60 CHORG=PEEK(756)*256 ' Is it the start of the character ROM or what ? If some one will ...
by D.J.Peters
Nov 18, 2017 20:33
Forum: Beginners
Topic: ATARI basic to Free Basic
Replies: 5
Views: 105

Re: ATARI basic to Free Basic

Elico wrote:I just got a book about games based on ATARI Basic
Do you mean Compute!'s First Book of Atari Games
http://www.atarimania.com/documents/Com ... -Games.pdf
or which book ?

Joshy
by D.J.Peters
Nov 18, 2017 19:11
Forum: Tips and Tricks
Topic: Get your WAN IP Win and Lin (needs fbnet.bi)
Replies: 5
Views: 1586

Re: Get your WAN IP Win and Lin (needs fbnet.bi)

Munair wrote:Many of these examples have dead links to the include files...
It's 10 years old and obsolulate here are the current FreeBASIC network stuff
viewtopic.php?f=7&t=23421

Joshy
by D.J.Peters
Nov 18, 2017 18:39
Forum: Tips and Tricks
Topic: Simple FBImage / Sprite scaling in Basic
Replies: 4
Views: 808

Re: Simple FBImage / Sprite scaling in Basic

IT CRASHES THE DESKTOP ON MY LINUX SYSTEM It's 7 years old the time of 32-bit only :-) It's Integer ptr vs Ulong ptr on 64-bit is fixed now Joshy Case 4 Dim As Ulong Ptr ps=cptr(Ulong Ptr,s)+8 ' <-- Integer vs ulong ptr Dim As Uinteger sp=(s->pitch Shr 2) Dim As Ulong Ptr pt=cptr(Ulong Ptr,t)+8 ' <...
by D.J.Peters
Nov 18, 2017 18:27
Forum: Beginners
Topic: Reversing
Replies: 13
Views: 246

Re: Reversing

As an advaced programmer you can translate some sub assembler listing (the result of disassembler) back to BASIC (it's helful if you wrote the BASIC code self) but a complete program is a nightmare and no fun. here are an example how it looks if you translate a sub from ASM listing back to BASIC: su...
by D.J.Peters
Nov 18, 2017 18:09
Forum: Libraries
Topic: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)
Replies: 187
Views: 41972

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

My (none FreeBASIC) software pays all my bills since 30 years now. The commercial stuff is all closed source and copyright by my. My customers accept the German law when buying. All my own FreeBASIC stuff is hobby and absolutely free and open source. If I compile libs from other sources for FreeBASI...
by D.J.Peters
Nov 18, 2017 8:03
Forum: Libraries
Topic: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)
Replies: 187
Views: 41972

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Licenses of used libs are included in the doc folder libDumb.txt, libMad.txt and libVorbis.txt

Joshy
by D.J.Peters
Nov 18, 2017 4:00
Forum: Projects
Topic: Eric: The Mysterious Stranger - RTS game(WIP)
Replies: 323
Views: 11068

Re: Eric: The Mysterious Stranger - RTS game(WIP)

Homemade "Age of Empires" I like it :-)

Joshy

Go to advanced search