Jump to content
IGNORED

simple division question


atari2600land

Recommended Posts

Why won't bB let me do the following:

if b=c/2 && !a{1} then m=3

 

I tried it both with and without the div_mul.asm and it doesn't like it. I thought you could divide by two pretty easily, which is what I'm trying to do here.

edit: Sorry to have edited this so many times, but I had to because it went all crazy and added a whole bunch of garbage when I tried to use the code tags.

Edited by atari2600land
Link to comment
Share on other sites

Check out the Did You Know? box here:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#if

 

The NOT ( ! ) operator may only be used with statements that do not include OR (||) or a comparison token (such as =, <, >, or <>).

 

See if this works:

 

  temp5 = c / 2
  if b = temp5 then if !a{1} then m=3

Link to comment
Share on other sites

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...