IF..THEN syntax


Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 40 of 53

Thread: IF..THEN syntax

  1. #1
    Join Date
    Oct 2006
    Posts
    32

    Default IF..THEN syntax

    Good day! I am a new user of PIC Basic and my version is PicBasic Pro 2.3 compiler. I am starting this thread because there is something that I cannot quite understand. There is a code in a book about robotics that I copied word for word into my editor, by the way I'm using MicroCode Studio 2003 for my editor, and somehow, when I tried to compile the program, there is an error message that says that the syntax is wrong. I'm including the code in here:

    "if s1 > 225 then s1 = 225"

    could anyone please help me or give me any idea why the compiler gives me an error message that the syntax is wrong? Thanks in advance!

  2. #2
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default IF..THEN syntax

    Please PM me if possible.. thanks!

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default From the Spaghetti bowl . . .

    What does S1 represent?
    you have a variable declared to represent s1?
    examples:
    s1 var byte
    or
    s1 var portB.1
    or
    symbol s1 = portb.1
    Last edited by Archangel; - 15th February 2007 at 06:59.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    ...

    "if s1 > 225 then s1 = 225"...
    There must be some other IF statements with missing THEN or ENDIF in the code.
    One of those may be the cause of the error you get.

    ------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    PBP Version 2.3 is probably well over six years old (it's time MeLabs put a Date against the version releases on their website) and has many issues that have been fixed and improvements made over the subsequent years. You should seriously consider upgrading. Forum members here would be hard pressed to try to second-guess problems when you're using a product that old and you could spend many hours chasing a problem that has been long fixed and forgotten in the mists of time.

  6. #6
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default IF..THEN syntax

    I agree that the version I'm using is old but the program I tried to compile was also more or less 6 years old. anyway im pasting the whole program here for you to inspect. Thanks!


    'Read Cds cell #1 on port b line 1
    'Read Cds cell #2 on port b line 7
    v1 var byte 'Variable v1 holds Cds #1 information
    v2 var byte 'Variable v2 holds Cds #2 information
    v3 var byte 'Variable for calculation
    s1 var byte 'Variable s1 holds servomotor #1 pulse width info
    s2 VAR word 'variable for random function
    rv var byte 'variable rv holds the range value
    s1 = 150 'initialize steering servomotor facing forward
    rv = 10 'Adjust as needed for operation
    ct var byte 'counter


    start:
    pot portb.2,255,v1
    pot portb.3,255,v2

    'Check bumper switch "Did I hit something?"
    if porta.0 = 0 then avoid 'Hit obstacle go into avoid mode
    'Is it sleepy time?
    if v1 <= 230 then skp 'Is it dark enough to sleep?
    if v2 > 230 then slp 'Yes

    'Is it too bright to see?
    skp:
    if v1 >= 12 then skip2
    if v2 < 12 then avoid

    'Which way do I go?
    skip2:
    if v1 = v2 then straight
    if v1 > v2 then greater
    if v1 < v2 then lesser

    straight:
    pulsout portb.6, s1
    pulsout portb.7, 157
    goto start

    greater:
    v3 = v1 - v2
    if v3 > rv then right
    goto straight

    lesser:
    v3 = v2 - v1
    if v3 > rv then left
    goto straight

    right:
    s1 = s1 + 1
    if s1 > 225 then s1 = 225
    pulsout portb.6, s1
    pulsout portb.7, 165
    goto start
    left:
    s1 = s1 - 1
    if s1 < 65 then s1 = 65
    pulsout portb.6, s1
    pulsout portb.7, 165
    goto start

    slp:
    pulsout portb.6, s1
    pulsout portb.7, 167
    goto start

    avoid:
    random s2
    s1 = s2 / 256
    if s1 < 65 then s1 = 65
    if s1 > 225 then s1 = 225
    for ct = 1 to 125
    pulsout portb.6, s1
    pulsout portb.7, 177
    pause 18
    next ct

    s1 = 150

    goto start

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I just compiled it here for a 16F877. PBP 2.46

    No errors.
    <br>
    DT

  8. #8
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I just compiled it here for a 16F877. PBP 2.46

    No errors.
    <br>

    I'm compiling it for a 16F84 with PBP 2.3

    That's the only version I have because I can't afford to buy or upgrade.. I hope you understand :-)

  9. #9
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Compiled it for 16F84, still no errors.

    You might consider
    http://www.compilespot.com

    It's a low monthly subscription that will allow you to use the latest compiler version. If you're fast enough, you may only need to pay for 1 month.

    regards,
    DT

  10. #10
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    [QUOTE=Darrel Taylor;32729]Compiled it for 16F84, still no errors.

    QUOTE]


    in that case, could you please send me the .HEX file so that I could load it to my PIC micro if that is ok with you?

    P.S. I sent you a PM

    :-D

  11. #11
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It sounds like an easy thing. It's already compiled, just send you the .HEX file.

    But, being Asst_Admin on this forum, if I started compiling things for someone, I'd have 100 people a day that didn't want to buy the compiler, sending me their files.

    That wouldn't be fair to the people that had to pay for their compiler.
    DT

  12. #12
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    well, ok then. then pls suggest any other options if its ok with you. :-)

  13. #13
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Well, maybe you could ask William Gray Walter

    Who's book you got the program from.

    Or was it, John Iovine's "Pic Robotics".
    <br>
    DT

  14. #14
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Tell ya what.

    Send me the .LST file from your project.
    darrel at pbpgroup.com

    Maybe I can find the problem and suggest an alternative that might work with 2.30

    No guarantees.
    <br>
    DT

  15. #15
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Wow! Have you read John Iovine's book? Well, I got the program from his book "Pic Robotics". Correct me if I'm wrong but I think the <bold>William Gray Walter</bold> whom you're referring to passed away in 1977?

  16. #16
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    Correct me if I'm wrong but I think the <bold>William Gray Walter</bold> whom you're referring to passed away in 1977?
    Right, which would have made it hard to have written something in PBP.
    But he did make the original "Turtle" robot that supposedly John based it on.

    Got the .LST file, and it's worse than I thought. You have PBP version 2.03. (extremely old)

    If you look at the version history
    http://www.melabs.com/support/upgrade.htm#History

    version 2.04 corrected a problem in 2.03 ...
    IF..THEN..ELSE..ENDIF didn't always generate GOTO macro.

    And as I look through the .LST file ... Every IF statement has an error.
    Can't imagine how PBP even got off the ground with those kinds of errors.

    Sorry, I don't see any way to make it work with 2.03
    <br>
    DT

  17. #17
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Right, which would have made it hard to have written something in PBP.
    But he did make the original "Turtle" robot that supposedly John based it on.

    Got the .LST file, and it's worse than I thought. You have PBP version 2.03. (extremely old)

    If you look at the version history
    http://www.melabs.com/support/upgrade.htm#History

    version 2.04 corrected a problem in 2.03 ...
    IF..THEN..ELSE..ENDIF didn't always generate GOTO macro.

    And as I look through the .LST file ... Every IF statement has an error.
    Can't imagine how PBP even got off the ground with those kinds of errors.

    Sorry, I don't see any way to make it work with 2.03
    <br>
    The IF...THEN... might not generate a goto macro like he has it in the program:
    if x>255 then skp

    but how about
    if x > 255 then goto skp

    It sounds logical anyways...and I don't see the word 'goto' in any of the if/then statements

  18. #18
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Well, thanks anyway..our time in replying to the posts really helped. I already got the code compiled using PBP 2.46. Please don't ask me how I did it, just let me tell me that it really took my ingenuity to work..hehe. And with regards to the unfairness of the HEX file, I understand your situation and because of that, I became more resourceful in finding ways to compile my program without using any illegal credit cards or spending a dime. hehehe.. I hope we talk again on programming topics man! More power to you!

  19. #19
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Logical Indeed!

    Good thought skimask.
    <br>
    DT

  20. #20
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    ... I already got the code compiled using PBP 2.46. Please don't ask me how I did it, just let me tell me that it really took my ingenuity to work..hehe... I became more resourceful in finding ways to compile my program without using any illegal credit cards or spending a dime. hehehe..
    I hope we talk again on programming topics man!
    I don't think so!

    Hackers.... pffft.
    <br>
    DT

  21. #21
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    Well, thanks anyway..our time in replying to the posts really helped. I already got the code compiled using PBP 2.46. Please don't ask me how I did it, just let me tell me that it really took my ingenuity to work..hehe. And with regards to the unfairness of the HEX file, I understand your situation and because of that, I became more resourceful in finding ways to compile my program without using any illegal credit cards or spending a dime. hehehe.. I hope we talk again on programming topics man! More power to you!
    Quote Originally Posted by Darrel Taylor View Post
    I don't think so!

    Hackers.... pffft.
    <br>
    Yep, and while he's at it, maybe he can run downtown and grab a whole bag of 'no help' from me either...I mean, really, a $25 upgrade, and yet buying parts to make stuff...Jeeze...

  22. #22
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I don't think so!

    Hackers.... pffft.
    <br>

    hacker?

    no man, im not what you think I am. Anyone caught hacking in my country would be fined for $2000 and as I have said, I don't have money to set up a credit card account, so how much more pay for $2000!

  23. #23
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Yep, and while he's at it, maybe he can run downtown and grab a whole bag of 'no help' from me either...I mean, really, a $25 upgrade, and yet buying parts to make stuff...Jeeze...


    Well man, pls read my reply to the post. I didn't know people in this forum could be so judgmental. Judging me by my words without asking me what they mean...now what could you call that?

  24. #24
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    Well man, pls read my reply to the post. I didn't know people in this forum could be so judgmental. Judging me by my words without asking me what they mean...now what could you call that?
    You told us ... "Please don't ask me how I did it,"

    I don't know how you could have done it legaly, so I have no other choice but to assume it wasn't.
    <br>
    DT

  25. #25
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    Well, thanks anyway..our time in replying to the posts really helped. I already got the code compiled using PBP 2.46. Please don't ask me how I did it, just let me tell me that it really took my ingenuity to work..hehe. And with regards to the unfairness of the HEX file, I understand your situation and because of that, I became more resourceful in finding ways to compile my program without using any illegal credit cards or spending a dime. hehehe.. I hope we talk again on programming topics man! More power to you!
    Quote Originally Posted by scaenix View Post
    Well man, pls read my reply to the post. I didn't know people in this forum could be so judgmental. Judging me by my words without asking me what they mean...now what could you call that?
    Well, I double-dawg dare you to give me or others a feasible, reasonable, logical, and legal explanation as to how you 'got the code compiled using PBP 2.46' and 'became more resourceful in finding ways to compile my program (hehehe)' when you stated and provided proof that you had PBP 2.03 (legally or not) and didn't have the means or funds to acquire a more recent version, or at least (with validating receipt or other suitable proof-of-purchase paperwork) the much cheaper upgrade.

  26. #26
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Hacking is not the only avaliable resource in this planet. Friends are too. It was evident for me that my problem would degrade down to hopelessness if I wouldn't do something else other than what you suggested. so what I did was call up a classmate and asked for help and then he said he'd call back and then he did call back. He said that he knew somebody, a Computer Engineering graduate who has the compiler who would gladly compile the code for me because they were also friends. I could call that human resource and tapping human resource anywhere available is being resourceful. That dude who did the compiling for me is not an Assistant Admin so he did not worry about 100 requests a day. I am sorry for having been misunderstood. This explanation is already very long that is why I told you guys not to ask me how I did it because I do not want to bother anyone to read such a long statement which I feel is already out of the original topic of the thread I started. Thank You.

  27. #27
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Oooo, nice save!

    Moving from a pirated copy of PBP, to .Hex files compiled by legal owners is definately a step up up in the world.
    <br>
    DT

  28. #28
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Did I satisfy the inquisitive? I hope so because I'd like to move on. I would really like to learn and I am driven. I would like to know how to connect a microphone to 16F84(A)... I want to build a robot who could hear though speech recognition is still out of the topic for the moment. If I could still be guaranteed of any help, then I would gladly start another thread regrading this matter. Thanks you.

  29. #29
    Join Date
    Jan 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    oh don be so cold to someone who decide to learn such scary topic as electronics and PICs. As i see electronics noway is really rare hobby so we should help as we can, or there is no much future without science. And $300 for PBP + programmer 75$ + books $100 and some tools + $50 is really not cheap especially for student. Im not saying that piracy is right but it may be understandable. And PBP is really great so I believe most who try it and stick with it will pay for it to show their thanks to developers who create such great thing.
    Last edited by therian; - 16th February 2007 at 12:29.

  30. #30
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scaenix View Post
    I would like to know how to connect a microphone to 16F84(A)... I want to build a robot who could hear though speech recognition
    WOW !!!!

    I thought Sir Clive Sinclair was being a bit optimistic when he said a ZX81 could control a Nuclear Power Station. LOL
    Last edited by keithdoxey; - 16th February 2007 at 12:44.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  31. #31
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    hehe.. i don't really mean that the robot I want to build could hear THROUGH speech recognition though it is already possible through an IC called HM2007 speech recognition IC. I want to build a robot that could hear though not cognitively.. i hope i made myself clear.

  32. #32
    Join Date
    Jan 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    I can imagine little bot crowing to anyone who make noise

  33. #33
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Oooo, nice save!

    Moving from a pirated copy of PBP, to .Hex files compiled by legal owners is definately a step up up in the world.
    <br>
    He (she?) wants to build a robot but doesn't have the means for the PBP upgrade.
    What's wrong with this picture? I see priorities that are all sorts of wrong.
    People like this are the reason I (and many others) paid $250 for my PBP insteadf of $100 or whatever...WTF...

  34. #34
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by therian View Post
    oh don be so cold to someone who decide to learn such scary topic as electronics and PICs. As i see electronics noway is really rare hobby so we should help as we can, or there is no much future without science. And $300 for PBP + programmer 75$ + books $100 and some tools + $50 is really not cheap especially for student. Im not saying that piracy is right but it may be understandable. And PBP is really great so I believe most who try it and stick with it will pay for it to show their thanks to developers who create such great thing.
    This isn't directed at anyone in this thread. It is directed at the rather vaque attempt to justify theft.

    Sorry, but I totally dissagree with that logic. A thief is still a thief. No matter whether he/she breaks into someones home to steal their belongings, steals software, steals a persons car, pet, or anything else for that matter.

    A thief steals from real people. Most often, these people are hard-working folks such as MeLabs, and countless others, that have great regard for hard work, honesty, and integrity. People that have often started out with little or no money, and worked very hard to get to where they are in life by honest means.

    Honest - hard-working people, end up paying for everything thieves steal. In one way or another. And, to me, there is no form of justification whatsoever that makes that an easy pill to swallow.

    If you want something in life, and you want it badly enough, then work, save, do without little things from time-to-time, until you can afford to get it. If you steal everything along the way, then, sadly, you're still just a thief when you arrive. And honest 9/5 hard-working people will have paid your way there.

    Is it OK for someone from a poor country to steal? Is it OK for someone with no money or a job to steal?

    Answer that for yourself when they break into your house some day and steal everything you own. If you're the theif, then justify your own actions when someone in turn ripps YOU off. Food for thought isn't it?

    How excited will you be that he/she are now getting their education with the PC & tools that they stole from your home?

    Honest, hard working individuals, such as many on this forum that have scrimped & saved, done without, set goals, and worked very hard to get the tools & education they want/need, will forever be paying for things, in one form or another that others steal.

    I totally agree with your statement
    there is no much future without science
    But, we can only hope, that our future scientists, technicians, and all others involved in our success in the future, aren't common thieves. Will you trust them with your life? Best wishes if you do.!

    No matter what they put forth as justification for their actions, I don't want them in my court. I'll stick with the hard working honest folks that have worked for what they have. Folks I can trust to watch my back.

    Science alone will not get us there. We need a mixture of honesty, integrity, and morals to go with our new tallent, if we're going to make soup worth serving...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  35. #35
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Well said Bruce.

    There's no excuses - even for those 'poor' students. Most of us who went to College or University during the day pulled long hours late into the night working for slave wages to pay for our education, our textbooks and other teaching materials.

    As for...

    >> I want to build a robot who could hear though speech recognition

    ... didn't Heathkit do that with it's Hero1 kit more than twenty years ago? And no PICs back then! Wonder what happened to them all... perhaps they got reworked into R2D2's by George Lucas...

  36. #36
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    This isn't directed at anyone in this thread. It is directed at the rather vaque attempt to justify theft.

    Sorry, but I totally dissagree with that logic. A thief is still a thief. No matter whether he/she breaks into someones home to steal their belongings, steals software, steals a persons car, pet, or anything else for that matter.

    A thief steals from real people. Most often, these people are hard-working folks such as MeLabs, and countless others, that have great regard for hard work, honesty, and integrity. People that have often started out with little or no money, and worked very hard to get to where they are in life by honest means.

    Honest - hard-working people, end up paying for everything thieves steal. In one way or another. And, to me, there is no form of justification whatsoever that makes that an easy pill to swallow.

    If you want something in life, and you want it badly enough, then work, save, do without little things from time-to-time, until you can afford to get it. If you steal everything along the way, then, sadly, you're still just a thief when you arrive. And honest 9/5 hard-working people will have paid your way there.

    Is it OK for someone from a poor country to steal? Is it OK for someone with no money or a job to steal?

    Answer that for yourself when they break into your house some day and steal everything you own. If you're the theif, then justify your own actions when someone in turn ripps YOU off. Food for thought isn't it?

    How excited will you be that he/she are now getting their education with the PC & tools that they stole from your home?

    Honest, hard working individuals, such as many on this forum that have scrimped & saved, done without, set goals, and worked very hard to get the tools & education they want/need, will forever be paying for things, in one form or another that others steal.

    I totally agree with your statement But, we can only hope, that our future scientists, technicians, and all others involved in our success in the future, aren't common thieves. Will you trust them with your life? Best wishes if you do.!

    No matter what they put forth as justification for their actions, I don't want them in my court. I'll stick with the hard working honest folks that have worked for what they have. Folks I can trust to watch my back.

    Science alone will not get us there. We need a mixture of honesty, integrity, and morals to go with our new tallent, if we're going to make soup worth serving...;o}

    I agree with you Bruce. Someone from whatever country, whether rich or poor, a student or someone else, who steals is still considered a theif. Stealing is not justifiable and I agree with everything you said. As for me, I've said that I cannot afford to pay for the compiler, but after having the code compiled from PBP 2.46 without any error codes, I have greatly considered saving even for an upgrade because as I have said, I want to learn and am driven. I don't know why some people got pissed with even before I got the chance to explain. I am not a well-off person but even if I am not that financially blessed, I still believe in integrity, honesty, morals and karma. What I have right now is only what I've got and it would surely be devastating if someone else would steal it because the effects of karma has come full circle on me. What would I have then? Nothing.

    With regards with the bot, I only would like to know if it is possible to connect a mic directly to a pic16f84 and what would be the corresponding codes. I searched last night and I came upon this site:

    http://www.restena.lu/convict/Jeunes/PhaseSound.htm

  37. #37
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Well said Bruce.

    There's no excuses - even for those 'poor' students. Most of us who went to College or University during the day pulled long hours late into the night working for slave wages to pay for our education, our textbooks and other teaching materials.

    As for...

    >> I want to build a robot who could hear though speech recognition

    ... didn't Heathkit do that with it's Hero1 kit more than twenty years ago? And no PICs back then! Wonder what happened to them all... perhaps they got reworked into R2D2's by George Lucas...
    If you really want one...
    http://cgi.ebay.com/Heathkit-Hero-20...QQcmdZViewItem

    Disregard....that's for the HERO 2000, not the Hero1...something back then so overly complicated...so comparatively simple by today's standards....

  38. #38
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Wow! starting bid is already US $2,100.00!!! That could take me years to save! I guess I'll have to continue rummaging through google in this case.. I also better start another thread about microphone to pic16f84...the IF..THEN SYNTAX is becoming inappropriate.

  39. #39
    Join Date
    Jan 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    This isn't directed at anyone in this thread. It is directed at the rather vaque attempt to justify theft.

    Sorry, but I totally dissagree with that logic. A thief is still a thief. No matter whether he/she breaks into someones home to steal their belongings, steals software, steals a persons car, pet, or anything else for that matter.

    A thief steals from real people. Most often, these people are hard-working folks such as MeLabs, and countless others, that have great regard for hard work, honesty, and integrity. People that have often started out with little or no money, and worked very hard to get to where they are in life by honest means.

    Honest - hard-working people, end up paying for everything thieves steal. In one way or another. And, to me, there is no form of justification whatsoever that makes that an easy pill to swallow.

    If you want something in life, and you want it badly enough, then work, save, do without little things from time-to-time, until you can afford to get it. If you steal everything along the way, then, sadly, you're still just a thief when you arrive. And honest 9/5 hard-working people will have paid your way there.

    Is it OK for someone from a poor country to steal? Is it OK for someone with no money or a job to steal?

    Answer that for yourself when they break into your house some day and steal everything you own. If you're the theif, then justify your own actions when someone in turn ripps YOU off. Food for thought isn't it?

    How excited will you be that he/she are now getting their education with the PC & tools that they stole from your home?

    Honest, hard working individuals, such as many on this forum that have scrimped & saved, done without, set goals, and worked very hard to get the tools & education they want/need, will forever be paying for things, in one form or another that others steal.

    I totally agree with your statement But, we can only hope, that our future scientists, technicians, and all others involved in our success in the future, aren't common thieves. Will you trust them with your life? Best wishes if you do.!

    No matter what they put forth as justification for their actions, I don't want them in my court. I'll stick with the hard working honest folks that have worked for what they have. Folks I can trust to watch my back.

    Science alone will not get us there. We need a mixture of honesty, integrity, and morals to go with our new tallent, if we're going to make soup worth serving...;o}
    There is one big difference between house buggery and using unregistered copy. When House thief happen it affect someone directly but when someone decide in example to read himself a copy of a book from friend instead of buying it no one really affected. if you thinking that company lose money from every illegal copy than think about this - do you really think that those who have pirate copy would buy program in case there was no such pirated copy ? in 95 % those people will juts forget about and look for something else, so we cant say that each pirate copy hurt a company. in many cases the pirated copy work as really good commercial because if you not a pig , you will finally buy the program to show respect to developers, when you will have enough money and Im sure you will recommend the program to you friends if they ask where to start from. I just believe based on my own experience that if Software is really pice of art , nothing can hurt it. I will be honest and admit that I bought PBP not because something was wrong with pirated version which i had and it did not work appropriately, I just see all great work which was done by developers, so i wanted to thank them.
    I think there is no more need to discuses it because you newer can be 100% right about piracy because it really tricky by it nature to tell if it bad or not, and it will exist as long as humans exist no matter what you think about.
    Last edited by therian; - 17th February 2007 at 04:11.

  40. #40
    Join Date
    Oct 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    PBP is great and easy to get along with. I'm saving to purchase an upgrade. Talking about what we've just discussed in the previous posts would certainly be worth another topic, say about piracy and intellectual rights? But then again, that is a very broad topic.
    Huhum..let's move on..if anyone wants to start that topic somewhere then I suggest you request that in the forum. As for me, I've created another thread about inputting a mic into the 16f84.

Similar Threads

  1. Endless supply of 'syntax error's.
    By BitHead in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2009, 20:21
  2. Replies: 0
    Last Post: - 1st September 2008, 07:03
  3. Math operations & Syntax?
    By kevj in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 23rd February 2008, 01:40
  4. Need help with I2C syntax problem?
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 19:11
  5. Syntax error PIC16F684
    By milestag in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st September 2005, 18:54

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts