Search found 1163 matches

by David Barker
Sun Jun 28, 2020 10:08 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

When I originally designed Swordfish, the aim was to be as "familiar" to some other basics - where you didn't need an explicit procedure "main" entry point - like PROTON or PICBASIC. In hindsight, I agree with you. Having an explicit entry point would have made things a lot easier. Particularly with...
by David Barker
Sun Jun 28, 2020 7:17 am
Forum: General
Topic: problems with wiki access??
Replies: 4
Views: 36

Re: problems with wiki access??

I've tried the site today using geopeeker and geotargetly. The site appears to render correctly in USA and other countries (except Singapore, who are blocked because of SPAM).

Maybe a temporary issue?
by David Barker
Sat Jun 27, 2020 5:57 pm
Forum: General
Topic: problems with wiki access??
Replies: 4
Views: 36

Re: problems with wiki access??

This is really strange. The forum is hosted on the same server as the wiki. I'm proxied through cloudflare. Maybe that's an issue? It seems ok in UK but not in USA.

Can anyone else confirm working / not working against their location? Thanks.

I'll look into it more tomorrow...
by David Barker
Sat Jun 27, 2020 2:48 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

Variable declarations as well as constants etc still need to be declared *before* the main statement block. This has not changed.
by David Barker
Sat Jun 27, 2020 12:09 pm
Forum: General
Topic: 18FxxQ43 SRAM silicon errata B0
Replies: 6
Views: 51

Re: 18FxxQ43 SRAM silicon errata B0

That's unbelievable!!

You have to perform a hard reset (recycle power). Yeah, right.

Pass me the bin...
by David Barker
Tue Jun 23, 2020 9:13 am
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 70

Re: Clock Speed

There is a new update available which should fix this problem for you. Just run "check for update" in the IDE "About" box. For more information, see:

https://www.sfcompiler.co.uk/wiki/pmwi ... ionHistory
by David Barker
Tue Jun 23, 2020 9:12 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

There is a new update available which should fix this problem for you. Just run "check for update" in the IDE "About" box. For more information, see:

https://www.sfcompiler.co.uk/wiki/pmwi ... ionHistory
by David Barker
Mon Jun 22, 2020 4:26 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

The problem has been fixed. We will post an update very soon. Note that your second case (boolean = 1) will not work. A boolean can only be true or false. Apologies again for this faux pas...
by David Barker
Mon Jun 22, 2020 6:49 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

Damn. I will get that fixed...
by David Barker
Fri Jun 19, 2020 5:44 pm
Forum: General
Topic: Diagnostics hardware
Replies: 12
Views: 83

Re: Diagnostics hardware

I would second that approach, if possible...
by David Barker
Thu Jun 18, 2020 1:46 pm
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 70

Re: Clock Speed

Jerry is correct. It looks like delayMs() and delayUs() when clock < 1 causes the problem. Note that even if your main code block does not use either of these calls, the LCD module certainly does (for timing). I can confirm that removing all calls to delayXx() negates the issue (please do not do thi...
by David Barker
Thu Jun 18, 2020 9:58 am
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 70

Re: Clock Speed

Yes, the error seems a little anomalous. We will look into it. However, as W4GNS has pointed out it would help to post some additional code that generates the error in your use case. Thanks...
by David Barker
Wed Jun 17, 2020 5:16 pm
Forum: General
Topic: Digitaldiy
Replies: 5
Views: 64

Re: Digitaldiy

What's happened to the site? Have you tried contacting Graham? It's a real shame if it has all gone. Perhaps try "wayback machine" internet archive?
by David Barker
Tue Jun 16, 2020 1:08 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

It's a fair question. In the example you have given x could be anything. It most likely state would be "0" *but* then again it might not. It's easy to miss an initialisation in the code. But the warning should catch them... > ... and just to be REALLY clear, my use of "RHS" was NOT how the Urban Dic...
by David Barker
Tue Jun 16, 2020 7:13 am
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 169

Re: Default Variable Assignment

Just to be clear dim x as byte will generate a hint "x is never used". As Jerry points out, it's not an issue unless you use "x" on the right hand side of an expression. dim x as byte dim y as byte y = x will generate a warning that "x has not been initialised" and dim x as byte dim y as byte = x wi...