Swordfish and Basic Stamp Pbasic

Discuss the Integrated Development Environment (IDE)

Moderators: David Barker, Jerry Messina

Post Reply
swordfishuser
Posts: 19
Joined: Sun Apr 09, 2017 7:07 pm

Swordfish and Basic Stamp Pbasic

Post by swordfishuser » Fri Apr 28, 2017 2:29 pm

What is the difference between these two?

That would help us get some traction with Swordfish.

Thanks!:)

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Swordfish and Basic Stamp Pbasic

Post by Jerry Messina » Fri Apr 28, 2017 3:08 pm

They are worlds apart.

If you take a look at the language reference http://www.sfcompiler.co.uk/downloads/SFManual.pdf
you'll see that Swordfish more closely resembles VisualBasic than it does the BASIC used on the Stamp.

The closest BASIC that 'mimics' the Stamp is melabs PBP

swordfishuser
Posts: 19
Joined: Sun Apr 09, 2017 7:07 pm

Re: Swordfish and Basic Stamp Pbasic

Post by swordfishuser » Fri Apr 28, 2017 3:29 pm

"resembles VisualBasic"

Well. I did toss out Microsoft PDS 7.0

That's the last version of Basic before Visual Basic.

" 'mimics' the Stamp is melabs PBP"

That is correct.

That's a reason we're full speed ahead with PIC Basic.

So we are looking for something familiar in Swordfish to start out with.

Is it configured with one line about PIC at the beginning of source code?

Then configuration is handled behind the scenes?

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Swordfish and Basic Stamp Pbasic

Post by Jerry Messina » Fri Apr 28, 2017 5:00 pm

Then configuration is handled behind the scenes?
No, not at all.

Very little is done 'behind the scenes'. While it includes a number of libraries to do some common operations,
it's basically left up to you.
So we are looking for something familiar in Swordfish to start out with.
There is a free SE version that allows you to take it for a spin. It comes with several examples.
http://www.sfcompiler.co.uk/swordfish/d ... index.html

swordfishuser
Posts: 19
Joined: Sun Apr 09, 2017 7:07 pm

Re: Swordfish and Basic Stamp Pbasic

Post by swordfishuser » Fri Apr 28, 2017 7:01 pm

What lines of chip configuration are needed to get going?

Like a template?

Can I just hack one of the examples for config code?

Thanks!

User avatar
Coccoliso
Posts: 152
Joined: Mon Feb 17, 2014 10:34 am

Re: Swordfish and Basic Stamp Pbasic

Post by Coccoliso » Sat Apr 29, 2017 8:05 am

...
Last edited by Coccoliso on Sat May 13, 2017 10:04 am, edited 1 time in total.

swordfishuser
Posts: 19
Joined: Sun Apr 09, 2017 7:07 pm

Re: Swordfish and Basic Stamp Pbasic

Post by swordfishuser » Sat Apr 29, 2017 6:38 pm

"Device = 18F2682
Clock = 40"

Okay.

Can you code

main

end

Will it compile then?

Note

It looks like you coded a template.

Thanks!

Post Reply