Page 1 of 1

Swordfish and Basic Stamp Pbasic

Posted: Fri Apr 28, 2017 2:29 pm
by swordfishuser
What is the difference between these two?

That would help us get some traction with Swordfish.

Thanks!:)

Re: Swordfish and Basic Stamp Pbasic

Posted: Fri Apr 28, 2017 3:08 pm
by Jerry Messina
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

Re: Swordfish and Basic Stamp Pbasic

Posted: Fri Apr 28, 2017 3:29 pm
by swordfishuser
"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?

Re: Swordfish and Basic Stamp Pbasic

Posted: Fri Apr 28, 2017 5:00 pm
by Jerry Messina
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

Re: Swordfish and Basic Stamp Pbasic

Posted: Fri Apr 28, 2017 7:01 pm
by swordfishuser
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!

Re: Swordfish and Basic Stamp Pbasic

Posted: Sat Apr 29, 2017 8:05 am
by Coccoliso
...

Re: Swordfish and Basic Stamp Pbasic

Posted: Sat Apr 29, 2017 6:38 pm
by swordfishuser
"Device = 18F2682
Clock = 40"

Okay.

Can you code

main

end

Will it compile then?

Note

It looks like you coded a template.

Thanks!