View unanswered posts | View active topics It is currently Fri Aug 01, 2014 8:27 pm






Reply to topic  [ 5 posts ] 
RobotC 3.50 bug 1 
Author Message
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post RobotC 3.50 bug 1
Our FTC library has been broken with RobotC 3.50. So I decided to debug into it this weekend. This is the first bug I found:
Code:
task main()
{
    int n1, n2;
   
    n1 = 1;
    n2 = 1;
    n1 &= ~n2;
    nxtDisplayTextLine(0, "n1=%x", n1);
    nxtDisplayTextLine(1, "n2=%x", n2);
}

And the display will show:
Quote:
n1=fffffffe
n2=1

It is supposed to show:
Quote:
n1=0
n2=1


Sat Sep 15, 2012 2:01 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3170
Location: Rotterdam, The Netherlands
Post Re: RobotC 3.50 bug 1
Could you mail this to support@robotc.net?

Edit: you can also tell them it is still exhibiting the same behaviour in 3.51.2 (internal build).

Edit2: just tested this on calc in Windows 8 and it shows 0, not that crazy number you got.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Sep 15, 2012 2:06 pm
Profile WWW
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: RobotC 3.50 bug 1
Done.
Yes, I am actually testing it with 3.51 beta-2.


Sat Sep 15, 2012 2:11 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3170
Location: Rotterdam, The Netherlands
Post Re: RobotC 3.50 bug 1
The pc-emulator mode is great for testing this sort of thing quickly.

I am working hard on renaming all of my driver files to more sensible names at the moment, so hopefully it can be shipped when 3.51 becomes public. 225 files in all or so (150 test programs, 75 drivers). svn rename'ing so many files is tedious.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Sep 15, 2012 2:22 pm
Profile WWW
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 614
Post Re: RobotC 3.50 bug 1
Fixed for next release.


Mon Sep 17, 2012 2:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.