Search found 759 matches

by JonnyW
Mon Mar 21, 2011 9:43 am
Forum: C and ASM Programming
Topic: Weird problem with Game of Life
Replies: 7
Views: 8788

Re: Weird problem with Game of Life

That's good news. Hope it all goes well!
by JonnyW
Fri Mar 18, 2011 6:24 pm
Forum: C and ASM Programming
Topic: Weird problem with Game of Life
Replies: 7
Views: 8788

Re: Weird problem with Game of Life

Hmm. Im unsure what could be the issue then. Unfortunately I havent got a Pic8 to hand at the moment. The only thing I can suggest is that, having looked at the Flowcode maybe try bracketing the variables in the defines, though it doesnt look like this is a problem. Either that or big-endianness cou...
by JonnyW
Fri Mar 18, 2011 5:12 pm
Forum: C and ASM Programming
Topic: Weird problem with Game of Life
Replies: 7
Views: 8788

Re: Weird problem with Game of Life

OK, good luck. If you'd like to see the problem at work on a PC, you can use the C code in Visual Studio (assuming you have it as you're using VB) to exhibit a similar problem:

Code: Select all

int x, y;
y = 33;
x = 1 << y;
printf("%d\r\n", x);
by JonnyW
Fri Mar 18, 2011 3:58 pm
Forum: C and ASM Programming
Topic: Weird problem with Game of Life
Replies: 7
Views: 8788

Re: Weird problem with Game of Life

Hi Spanish_dude. Without seeing the program this is only a guess. Is this on an 8-bit pic? Chances are the bit-shifts are 8-bit. This means the instruction codes most likely only support (1 << 7) as the maximum shift available. I would guess that the ints are 'faked' using two byte values and accumu...
by JonnyW
Mon Feb 14, 2011 8:21 am
Forum: Article Discussion
Topic: MX012 - Life on the PIC
Replies: 4
Views: 14855

gLCD YouTube videos

Hi. If anyone is interested, there is a YouTube video of the dsPIC with a gLCD attached available. The program was built using the new Flowcode for dsPIC software.

http://www.youtube.com/watch?v=2KeUJgCvt0I
by JonnyW
Mon Feb 07, 2011 12:30 pm
Forum: Article Discussion
Topic: MX012 - Life on the PIC
Replies: 4
Views: 14855

Re: Life on the PIC

Thanks! One thing I didn't do was post the Flowcode files though! Hopefully better late than never.
by JonnyW
Fri Feb 04, 2011 2:09 pm
Forum: Article Discussion
Topic: MX012 - Life on the PIC
Replies: 4
Views: 14855

MX012 - Life on the PIC

Article: http://www.matrixmultimedia.com/resourc ... php?id=376

If you have any questions for the author or comments on the article, please post them below.
by JonnyW
Fri Nov 26, 2010 12:24 pm
Forum: Article Discussion
Topic: MX002 - Reptile environment control with a MIAC
Replies: 3
Views: 13472

MX002 - Reptile environment control with a MIAC

Article: http://www.matrixmultimedia.com/article.php?a=49

If you have any questions for the author or comments on the article, please post them below.
by JonnyW
Tue Nov 02, 2010 12:55 pm
Forum: Flowcode V4
Topic: dec number hi-tech compiler
Replies: 2
Views: 2252

Re: dec number hi-tech compiler

Hi Wolfgang. I'm a new member of Matrix working as a C/C++ developer.

In C, preceding a constant with a '0' indicates that constant is octal, so only the digits 0-7 are valid. Therefore '09' is an invalid integer as '9' is not a valid octal digit. Removing the 0 should fix the problem.

Cheers

Jonny