Go to Post You can't just leave us hanging! That was SOOO 2010! - nighterfighter [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 27-01-2003, 13:00
Ameya's Avatar
Ameya Ameya is offline
Freelance Goon
FRC #0293 (SPIKE Robotics)
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Pennington, NJ
Posts: 67
Ameya is on a distinguished road
Send a message via ICQ to Ameya Send a message via AIM to Ameya
Quote:
Originally posted by rbayer
I'm not going to argue over this one: x86 (and most other architectures) use two's complement for representing negative numbers. Under that system, you invert all the bits and add 1. It's just the way it is. Don't believe me? Go ahead and read this.
No need to argue, since you're both right. Rwaliany is using the actual definition of two's complement (the highest bit represents the opposite of what it does in an unsigned int (so 10000000 = -128 if it's a signed bit and +128 if it's unsigned)). Rbayer is using an easy shortcut to calculating the two's complement.
__________________
Ameya Agaskar
Team 293 alumnus
  #32   Spotlight this post!  
Unread 29-01-2003, 03:16
Gobiner Gobiner is offline
Registered User
#0753 (High Desert Droids)
 
Join Date: Nov 2002
Location: Bend, Oregon
Posts: 54
Gobiner is an unknown quantity at this point
Send a message via ICQ to Gobiner Send a message via AIM to Gobiner
A skillful programming isn't limited by the law, either. Wait, what I meant to say was that a skillful programmer is limited by the language, at least when we're talking PBASIC. I'd like to see someone who can make their robot do differentiation. If you're talking QBASIC versus C, then it doesn't matter. PBASIC simply doesn't do alot of things. The difference is in the context. PBASIC could do anything a person could ever want their robot to do, if they're smart enough and can devote the time to doing it. If you couldn't do everything feasible/useful I think FIRST would change things.
__________________
0N3 1337 PR0G|24MM1N6 N1NJ4
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
RoboEmu v.1a (another PBASIC emulator) rbayer Programming 0 07-07-2002 00:45
emulationFIRST (aka PBasic emulator) Matt Leese Programming 5 30-06-2002 12:06
Another PBASIC Question Ian W. Programming 4 31-01-2002 21:36


All times are GMT -5. The time now is 07:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi