joe darlow
Posts: 1
Joined: Thu Dec 29, 2011 9:26 pm

Re: Basic

Thu Dec 29, 2011 9:48 pm

Will it have BASIC ? Because BASIC is so esay to use I would love it to but will have it like my old zx spectrum 48K

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31815
Joined: Sat Jul 30, 2011 7:41 pm

Re: Basic

Thu Dec 29, 2011 11:13 pm

joe darlow said:


Will it have BASIC ? Because BASIC is so esay to use I would love it to but will have it like my old zx spectrum 48K


Do a search on the foums for BASIC - lots of posts arguing the toss on that one!

Quick answer, if you can find a Linux basic (there are lots) , and it can compile to Arm, then why not!
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

Jaseman
Posts: 302
Joined: Tue Jan 10, 2012 12:59 pm

Re: Basic

Thu Jan 12, 2012 9:04 pm

Yeah, I'm with you on that one.  We need BASIC.

But I think there will be a need to be able to output decent quality graphics.

I guess we could start with some star fields made using fullstops, randomly coloured * asterisks spattering on the screen and a bouncy ball made from a capital O

Something like....

let x=0

let y=0

down=1

right=1

do

Print (x,y) "O"

if right=1 then x=x+1

if right=0 then x=x-1

if down=1 then y=y+1

if down=0 then y=y-1

if x>80 then right=0

if x<0 then right=1

if y>25 then down=0

if y<0 then down=1

loop

I may have coded that wrong, but you understand the idea.  I want to learn how to write PONG in BASIC!

lotus49
Posts: 11
Joined: Sat Dec 24, 2011 7:09 pm

Re: Basic

Thu Jan 12, 2012 9:45 pm

joe darlow said:


Will it have BASIC ? Because BASIC is so esay to use I would love it to but will have it like my old zx spectrum 48K



Please, not in front of the children.

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4363
Joined: Fri Jul 29, 2011 2:51 pm

Re: Basic

Thu Jan 12, 2012 9:47 pm

blassic, brandy and tiny basic for curses all compiled for the raspi can be found here

http://russelldavis.org/RaspberryPi/

I haven't bothered with Bywater but i've built it for other ARM devices so it'll work on the raspi too.

There have been built and tested using scratchbox2 and once I get a real raspi i will actually fix them to get graphics and sound working and just for the hell of it i'll probably do one of the SDLBasic's. I also heard rumours that there might be a "blessed" port of BBC BASIC available sometime around release day so i'm sure we have BASIC well and truely covered.

smorgo
Posts: 4
Joined: Thu Jan 12, 2012 7:54 pm

Re: Basic

Thu Jan 12, 2012 10:01 pm

ukscone said:

I also heard rumours that there might be a "blessed" port of BBC BASIC available sometime around release day
Oh, please let this be true. For old times' sake.

Olly
Posts: 2
Joined: Thu Jan 12, 2012 6:50 pm

Re: Basic

Thu Jan 12, 2012 10:12 pm

Brandy BASIC (Which is a BBC BASIC interpreter) will no doubt be a first choice for most, its freely available as source code written in ANSI.C and will compile on most Linux kernels.

see http://jaguar.orpheusweb.co.uk.....npage.html for more info

or http://jaguar.orpheusweb.co.uk.....dy_116.tgz to download the source code

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4363
Joined: Fri Jul 29, 2011 2:51 pm

Re: Basic

Thu Jan 12, 2012 10:17 pm

Olly said:


Brandy BASIC (Which is a BBC BASIC interpreter) will no doubt be a first choice for most, its freely available as source code written in ANSI.C and will compile on most Linux kernels.

see http://jaguar.orpheusweb.co.uk.....npage.html for more info

or http://jaguar.orpheusweb.co.uk.....dy_116.tgz to download the source code


The only problem with Brandy is that only the RISCOS version supports graphics and sound but i will be taking a look at the Linux port wrt fixing that once I know the full details of the framebuffer and how to handle sound on the board (same as i plan to do with Blassic)

Olly
Posts: 2
Joined: Thu Jan 12, 2012 6:50 pm

Re: Basic

Thu Jan 12, 2012 10:34 pm

DITTO once I’ve got one to test on.

I will release my modifications under the terms of the GPL or happily contribute to any projects your running.

Return to “General discussion”