From: Branimir Maksimovic on
On Mon, 24 May 2010 18:23:25 +0200
"Skybuck Flying" <IntoTheFuture(a)hotmail.com> wrote:

> Ok people,
>
> I keep coming across different ways in source codes for creating a
> bit mask for a certain ammount of bits and it's kinda funnieing me
> out ! =D
>
> Therefore to have some fun, it's time to create a thread dedicated to
> creating bitmasks... how many ways are there ?
>
> So far I have come across these methods:
>
> 1. (My own way:) Mask := not word(65535 shl BitCount); // not
> 1111000 = 0000111
>
> 2. Mask := (1 shl BitCount)-1; // 10000-1 = 09999 = 01111 ;) :)
>
> 3. Mask := ($FFFF shl BitCount) xor $FFFF; // 1111000 xor 1111111 =
> 0000111

4. my own way
mov ax, mask

>
> Bye,
> Skybuck =D
>

Bye, ....
>
>
>
>
>
>
>



--
http://maxa.homedns.org/

Sometimes online sometimes not

Svima je "dozvoljeno" biti idiot i
> mrak, ali samo neki to odaberu,


From: Branimir Maksimovic on
On Thu, 27 May 2010 03:32:50 +0200
"Skybuck Flying" <IntoTheFuture(a)hotmail.com> wrote:

> Question is what happens when "shl 32" is done.
>
> According to the intel manual the result would be undefined ?!?
>
> Does that mean the result could be garbage ???
>
> Bye,
> Skybuck.
>
>

bmaxa(a)maxa:~/fasm/test$ fasm shl.asm
flat assembler version 1.68 (16384 kilobytes memory)
1 passes, 98 bytes.
bmaxa(a)maxa:~/fasm/test$ mv shl duration
bmaxa(a)maxa:~/fasm/test$ ./series.sh
255
255
255
255
255
255
255
255
bmaxa(a)maxa:~/fasm/test$ cat shl.asm
format ELF executable

entry $
shl eax,32
not eax
mov ebx,eax ; exit code
mov eax,1 ; sys_exit
int 80h

Greets!

--
http://maxa.homedns.org/

Sometimes online sometimes not

Svima je "dozvoljeno" biti idiot i
> mrak, ali samo neki to odaberu,


From: Branimir Maksimovic on
On Thu, 27 May 2010 18:06:42 +0200
"Skybuck Flying" <IntoTheFuture(a)hotmail.com> wrote:

>
> Would you rather write:
>
> // 1.
> Z := X shl Y;
>
> // or
>
> // 2.
> if Y < 32 then
> begin
> Z := X shl Y;
> end else
> begin
> Z := X;
> end;
>
> ?
>
> Bye,
> Skybuck.
>
>

I think that academics ruined this business.
After all my conclusion is that so called high
level languages are made for people who don;t
know how to program but wants to be in this business.
Plain and simple.
Motto is don't believe, rather check it out!

Greets!

--
http://maxa.homedns.org/

Sometimes online sometimes not

Svima je "dozvoljeno" biti idiot i
> mrak, ali samo neki to odaberu,


From: Branimir Maksimovic on
On 27 May 2010 15:33:10 GMT
Seebs <usenet-nospam(a)seebs.net> wrote:

> On 2010-05-27, Skybuck Flying <IntoTheFuture(a)hotmail.com> wrote:
> > The lookup table right now seems to be the best solution for 32 bit
> > support.
>
> I think at this point I'm plonking you.

When you plonk someone loud it is same as when chicken made an egg.

I smell fear.

Greet!


--
http://maxa.homedns.org/

Sometimes online sometimes not

Svima je "dozvoljeno" biti idiot i
> mrak, ali samo neki to odaberu,


From: Branimir Maksimovic on
On Fri, 28 May 2010 21:23:02 +0200
"wolfgang kern" <nowhere(a)never.at> wrote:

>
> Nathan answered Branimir:
>
> >> Skyfuck, don;t crosspost.
>
> > Are you Usenet's cop this week?? :)
>
> >> --http://maxa.homedns.org/
>
> >> Sometimes online sometimes not
>
> > Anything interesting there??
>
> Nothing new... but even Flying Bucket's notes are often more annoying
> than of any interest, I released this poor lonely ghost from my
> idiots-cage. I can afford the redundant added bandwidth ...
>
> looks like watching increase of my own age makes me more tolerant :)
>
> __
> wolfgang
>
>
>

ET /favicon.ico HTTP/1.1
Host: maxa.homedns.org:8080
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
../metamorph_shiningearth/favicon.ico
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ why?
404 Not Found
Content-Type: text/html
Content-Length: 35

Not Found No such file or directory
peer closed
cleanining up


--
http://maxa.homedns.org/

Sometimes online sometimes not

Svima je "dozvoljeno" biti idiot i
> mrak, ali samo neki to odaberu,