Search found 6785 matches

by D.J.Peters
Nov 23, 2017 22:25
Forum: General
Topic: [solved] Type|Union typename Extends base_typename ?
Replies: 2
Views: 34

Re: Type|Union typename Extends base_typename ?

fxm wrote:'Extends' works only with 'Type' or 'Union'.
Ups I need new glasses on my nose :-(

Thank you

Joshy
by D.J.Peters
Nov 23, 2017 21:16
Forum: Tips and Tricks
Topic: Visual coding etc..
Replies: 1
Views: 112

Re: Visual coding etc..

Isn't a FreeBASIC Tip or Trick and should be moved in a other section of the forum or deleted as spam by a sleeping forum mod :-)

Joshy
by D.J.Peters
Nov 23, 2017 21:08
Forum: General
Topic: [solved] Type|Union typename Extends base_typename ?
Replies: 2
Views: 34

[solved] Type|Union typename Extends base_typename ?

First time I try to use extends with enum and I don't understand the wiki page: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgExtends (The page is OK but my limited english is the problem for me.) How to solve the compile error ? Joshy enum eTWO ' Two Valued Logic L = 0 ' L state = low level l...
by D.J.Peters
Nov 22, 2017 22:15
Forum: Windows
Topic: ScreenRes window without console? [SOLVED]
Replies: 4
Views: 89

Re: ScreenRes window without console?

You can edit your first post and rename it like "[solved] ScreenRes window without console?" ;-)

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

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

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

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

[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: 259

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

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: 6
Views: 155

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: 6
Views: 155

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: 6
Views: 155

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

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

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

Go to advanced search