Lolling at programmers, how many ways are there to create abitmask ? ;) :)
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 thr... 28 May 2010 18:08
A few errors to deal with
I am having some problems with this code. Can someone help? Thanks. Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International Assembling file: timeit.asm **Error** c:\16_bit\monitor.asm(69) Code or data emission to undeclared segment **Error** c:\16_bit\monitor.asm(85) Name must come ... 10 Jun 2010 15:39
Lolling at programmers, how many ways are there to create a bitmask? ;) :)
On 5/25/2010 6:09 AM, Skybuck Flying wrote: 1. (Skybuck) Mask := not word(65535 shl BitCount); // not 1111000 = 0000111 Many instruction sets do not handle constants greater than some size well. Above you have a 16 bit constant. Even though x86 handles most constants in the instruction set, larger const... 25 May 2010 12:23
Probably a range/overflow checking bug in Delphi 2010 compiler as well.
I tested it in Delphi 2010 as well... bug seems to be present there as well. Same behaviour there... no range/underflow warnings/exceptions for method 2 for BitCount 16. Bye, Skybuck. ... 25 May 2010 10:10
Probably a range/overflow checking bug in Delphi 2007 compiler.
However Michael's Code is a bit dangerous because of the way Delphi compiles it: At first glance during testing apperently it doesn't require a "word" typecast to make it safe: function Mask2MichaelVinther( ParaBitCount : byte ) : word; inline; begin result := (1 shl ParaBitCount)-1; end; Carefully loo... 25 May 2010 10:10
HLA v2.11 is now available on Webster
Hi All, HLA v2.11 is up in the usual place: http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/HighLevelAsm/dnld.html HLA v2.11 includes several bug fixes (including most of the issues posted here over the past month), plus: * Added the new RPC (remote procedure call) code to the HLA Stdlib (now at v8) * ... 24 May 2010 22:20
When you forget assembler
It's same as you forgot how to program. Who does not knows assembler does not knows how to program. That's my conclusion. Greets! -- http://maxa.homedns.org/ Sometimes online sometimes not Svima je "dozvoljeno" biti idiot i mrak, ali samo neki to odaberu, ... 24 May 2010 21:14
Check this out!
e8400 bmaxa(a)maxa:~$ time ./vtest 1 Starting 1 threads All done real 0m3.880s user 0m3.820s sys 0m0.010s bmaxa(a)maxa:~$ time ./vtest 2 Starting 2 threads All done real 0m2.876s user 0m5.450s sys 0m0.000s bmaxa(a)maxa:~$ time ./vtest 3 Starting 3 threads All done real 0m4.577s user 0m8.220s sys 0m0.110s ... 24 May 2010 21:14
x86 instruction set usage-difference between windows 95 andwindows xp ?
On Thu, 25 Mar 2010 05:28:11 +0100 "Skybuck Flying" <IntoTheFuture(a)hotmail.com> wrote: Hello, My questions are: Q1: How much x86 instruction set usage-difference is there between windows 95 and windows xp ? None. Q2: Has the x86 instruction set received any major or minor extension... 24 May 2010 16:47
overflow of stack for recursive functions
On Sun, 7 Mar 2010 10:59:26 +0100 "io_x" <a(a)b.c.invalid> wrote: What about write one recursive function that can report all errors? ? Greets! -- http://maxa.homedns.org/ Sometimes online sometimes not Svima je "dozvoljeno" biti idiot i mrak, ali samo neki to odaberu, ... 24 May 2010 16:47