flat assembler
Message board for the users of flat assembler.

Index > Heap > What is the best pie you can get with 9 digits?

Goto page Previous  1, 2, 3 ... 16, 17, 18 ... 27, 28, 29  Next
Author
Thread Post new topic Reply to topic
windwakr



Joined: 30 Jun 2004
Posts: 827
Location: Michigan, USA
windwakr
7F800000h

FPU REAL4 number.


EDIT: Dammit, infinity doesn't count. Sad
revolution wrote:
sinsi wrote:
too bad there's not an infinity key... Laughing
infinity is not a number anyway, so even if there was an infinity key it wouldn't count Wink

_________________
----> * <---- My star, won HERE
Post 31 Dec 2009, 02:49
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
windwakr: ∞^∞^∞^∞^∞
Post 31 Dec 2009, 03:06
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
what is "^" - "power" or "xor" ? Wink
Post 31 Dec 2009, 09:22
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
shoorick wrote:
what is "^" - "power" or "xor" ? Wink
It doesn't matter, the result is the same no matter which you choose. Exclamation
Post 31 Dec 2009, 09:30
View user's profile Send private message Visit poster's website Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
r22
"largest #" is still my favorite solution. Although the stuff with Grahm's number and a hyper cube of the Grahm's number dimension were also entertaining.
Post 31 Dec 2009, 14:20
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
revolution wrote:
shoorick wrote:
what is "^" - "power" or "xor" ? Wink
It doesn't matter, the result is the same no matter which you choose. Exclamation
...because there are an even number of xor operations?

because otherwise it would be 0 Razz

_________________
Previously known as The_Grey_Beast
Post 31 Dec 2009, 15:30
View user's profile Send private message Reply with quote
windwakr



Joined: 30 Jun 2004
Posts: 827
Location: Michigan, USA
windwakr
I think revolution means it doesn't matter whether it's pow or xor because the result from either would be undefined.

_________________
----> * <---- My star, won HERE
Post 31 Dec 2009, 16:38
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
I thought infinity xor infinity is 0... after all, that's what XORing something with itself yields no matter what it is.
Post 31 Dec 2009, 17:53
View user's profile Send private message Reply with quote
windwakr



Joined: 30 Jun 2004
Posts: 827
Location: Michigan, USA
windwakr
Well, you would think infinity minus infinity would be 0....but guess what? It's not.

Infinity is too cool to follow the rules. Cool


EDIT: Wolfram Alpha(the only computing thing online I could find that understands the infinity symbol) says "∞ xor ∞" is 0......I guess you're right.


Infinity is a very confusing concept.

_________________
----> * <---- My star, won HERE
Post 31 Dec 2009, 18:28
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
No, I just extended windwakr's example where ∞=7F800000h.

So ∞^∞^∞^∞^∞ = ∞; where ^ = xor, or ^ = power. Same answer.
Post 31 Dec 2009, 21:16
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
example 1:
system: hexadecimal
radix: 0x10
used chars: '0'..'9' + 'a'..'f'
rank count(for a byte): 0x02
num. variations: 0x10^0x02 = 0xff +1

example 2:
system: binary
radix: 10b
used chars '0'..'1'
rank count(for a byte): 1000b
num. variations: 10b^1000b = 11111111b +1

example 3:
system: 0x20_0x7e_revolution
radix: 0x7e - 0x20 +1 = 0x5f
used chars: 0x20..0x7e
rank count(as U desired): 0x09
num. variations: radix^rank count +1 = 0x5f^0x09 = 0x8BF187FBA88F35F +1

As you have mentioned we get a qword value. BTW, are you making a su perior keygen?


Last edited by edemko on 17 May 2010, 21:42; edited 4 times in total
Post 01 Jan 2010, 02:07
View user's profile Send private message Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
Happy New You Know 2010!
Post 01 Jan 2010, 02:12
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Yes, of course, there are 95^9 (630249409724609375) possible different answers. Most of which will be nonsense. Therefore there is a highest value and thus a definitive answer to this puzzle. The trick is in finding which of those 630249409724609375 possible answers is the correct one.
Post 01 Jan 2010, 02:56
View user's profile Send private message Visit poster's website Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
tom tobias
borsuc wrote:
I thought infinity xor infinity is 0... after all, that's what XORing something with itself yields no matter what it is.
windwakr wrote:
Well, you would think infinity minus infinity would be 0....but guess what? It's not.

Infinity is too cool to follow the rules.

EDIT: Wolfram Alpha(the only computing thing online I could find that understands the infinity symbol) says "∞ xor ∞" is 0......I guess you're right.

Infinity is a very confusing concept.
Infinity is not a specific quantity. It is therefore the case that neither arithmetic nor Boolean operators can be employed with infinity as an operand. Any result of such operations must be regarded as "undefined".

Revolution wrote:
No, I just extended windwakr's example where ∞=7F800000h
Sorry, that is an illegal assignment. Infinity can not be assigned a numeric value. It can not be limited, hence, no Boolean operator can act upon it.

Happy New Year

Smile
Post 01 Jan 2010, 13:37
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
tom tobias: The IEEE754 spec defines infinity with specific encodings.

But you knew that right?
Post 01 Jan 2010, 13:41
View user's profile Send private message Visit poster's website Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
tom tobias
Thanks for asking revolution, and Happy New Year.

Nope, didn't know of that error.

Infinity cannot be bounded. There are no limits for an infinite number, and accordingly, there are no specific values, which may be assigned to a number defined as infinitely large or small.
Smile
Post 01 Jan 2010, 21:27
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
tom tobias wrote:
Sorry, that is an illegal assignment. Infinity can not be assigned a numeric value. It can not be limited, hence, no Boolean operator can act upon it.
Hehe, works for me:
Code:
include 'win32ax.inc'

.data

align 16
infinities:        dd      7F800000h,7F800000h,7F800000h,7F800000h

.code

begin:
      movaps  xmm0,[infinities]
   movaps  xmm1,xmm0
   pxor    xmm0,xmm1
   pxor    xmm0,xmm1
   pxor    xmm0,xmm1
   pxor    xmm0,xmm1
   movaps  [infinities],xmm0
   sub     esp,1024
    mov     eax,esp
     invoke  wvsprintf,eax,<'Result is:%lx,%lx,%lx,%lx'>,infinities
  mov     eax,esp
     invoke  MessageBox,0,eax,eax,0
      invoke  ExitProcess,0

.end begin    
Post 01 Jan 2010, 21:40
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Code:
format pe console
include 'win32ax.inc'

        movapd  xmm0,[infinities]
        movapd  xmm1,xmm0
        pxor    xmm0,xmm1
        pxor    xmm0,xmm1
        pxor    xmm0,xmm1
        pxor    xmm0,xmm1
        movapd  [infinities],xmm0

        cinvoke   printf, <'Result is: %f, %f', 10>, double [infinities], double [infinities+8]
        cinvoke   system, "pause"
        invoke    ExitProcess, 0

align 16
infinities:     dq      $7ff0'0000'0000'0000,\ ;+INF
                        $fff0'0000'0000'0000   ;-INF (This is only to see what printf prints, the property doesn't hold for -INF)

data import
  library kernel32, 'kernel32.dll',\
          msvcrt,'msvcrt.dll'

  import kernel32,\
         ExitProcess, 'ExitProcess'

  import msvcrt,\
         printf, 'printf',\
         system, 'system'
end data    
Quote:
Result is: 1.#INF00, -1.#INF00


[edit] Changed code to use 64-bit infinite from start and also added minus infinity to the test[/edit]
Post 01 Jan 2010, 22:24
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
∞^∞^∞^∞.1
Post 02 Jan 2010, 15:00
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
edfed wrote:
∞^∞^∞^∞.1
What does the dot mean?
Post 02 Jan 2010, 16:38
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 16, 17, 18 ... 27, 28, 29  Next

< 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.