Jump to content
IGNORED

bB - compiling and negative numbers


dbks

Recommended Posts

I had something weird happen me to today regarding bB. Maybe someone knows why the following happened (I fixed it, I am just extremely curious as to how it happened):

 

I have an older laptop winXP/Ubuntu x32 and a bad ass desktop running Vista x64. I like to develop on the desktop since it has a nice office chair. So I had been using that comp. I am traveling tonite so I am using my laptop. Just before I left, I compiled my current project (my first) and ran it. Nice nice so far. Then I copied it to my usb drive.

 

So a few hours ago I open my visual bB project on the laptop. Let's compile & run, right? Wrong: errors! wtf.

 

I read: bB entry on negative numbers when I first started with bB. Right on. Then I set a variable to -1 like:

 

a = -1

 

I used it on the Vista desktop. Compiled ran fine. Then tonight it did not compile on my winXP laptop. So I changed to:

 

a = 255
rem or the following equivalent
a = 256 - 1

 

and then it compiled.

 

So why? Well for one I followed the threads/advice here on how to get visual bB running on Vista/Win 7. Replaced files, etc. So that's the only difference. It must be the new 2600basic.exe/other files.

 

Hmmm. Just thought I'd post this to see if anyone knew why. I guess in the future I should follow the

 

a = 256 - x

 

style to be able to transition from my x32winXP and to x64Vista.

 

Oh well all's well... just wondering why?

 

Take it easy.

 

EDIT: I am an idiot. This should be in the batari Basic forum. How can it be moved? Perhaps a mod can help? Thanks.

Edited by dbks
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...