flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Bug in calculator

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 310
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
after the entry "(1e5) shr 4" result is the same as "(1e5) shr 6"
Post 18 Apr 2011, 15:57
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
(1e5) shr 4 = 100000 shr 4 = 6250
(1e5) shr 6 = 100000 shr 6 = 1562

You can do (1e5) / 10 = 10 000
then 10 000 * 10 = 100 000
then 100 000 >> 6 = 1562
Post 18 Apr 2011, 16:27
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
After some quick checking, I see that it actually never performs Arithmetic/logic operation over number with scientific notation (which the calculator surely interprets them as float values and fasm is only capable of storing them)
Post 18 Apr 2011, 16:42
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.