Author Topic: Bit checking  (Read 2333 times)

0 Members and 1 Guest are viewing this topic.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Bit checking
« on: December 08, 2010, 10:29:24 pm »
i can't figure this out for the life of me. run this code and please tell me i'm sane:

Code: [Select]
.P
Disp (1e7)>Dec     //euler's e
it displays 7 for me. but it should be displaying 1, am i right? because 1 in binary is 0000 0001 and the 7th bit starting from the left like the documentation says is set. i have axe 4.6. Builderboy on IRC tried it with 4.5 and it displayed a 1.


Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bit checking
« Reply #1 on: December 08, 2010, 10:35:28 pm »
you gotta use the real euler's e ;)

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Bit checking
« Reply #2 on: December 08, 2010, 10:38:43 pm »
Which can be found over the divide button by pressing [2ND].
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.