flat assembler
Message board for the users of flat assembler.

Index > Main > Combination with repetition algorithm

Author
Thread Post new topic Reply to topic
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 26 Oct 2006, 09:26
Hello,
Is there any algorithm to generate Combinations with repetition?
like:
00
01
10
11
Thank you in advance.
Post 26 Oct 2006, 09:26
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 26 Oct 2006, 09:36
If you're going to google for it, try "permutation" instead of "repetition".
Post 26 Oct 2006, 09:36
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Oct 2006, 10:46
try to use "inc" and "dec" instructions Very Happy
Post 26 Oct 2006, 10:46
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Maverick



Joined: 07 Aug 2006
Posts: 251
Location: Citizen of the Universe
Maverick 26 Oct 2006, 12:39
also remember you need one of the new 64bit CPUs for that, even better a quad core Very Happy
Post 26 Oct 2006, 12:39
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 26 Oct 2006, 12:41
Maverick: why not one of the quad-cpu dualcore intel systems, giving 8 logical CPUs? Or one of the quad-cpu dualcore with ht, giving 16 logical? Razz
Post 26 Oct 2006, 12:41
View user's profile Send private message Visit poster's website Reply with quote
Maverick



Joined: 07 Aug 2006
Posts: 251
Location: Citizen of the Universe
Maverick 26 Oct 2006, 13:17
Nice computing juice, but then again I still see my C64 performing better scrolling in primitive 2D games than my 256 cores 20EHz PC's, and I reckon there must be something wrong.. and neither bits nor core nor Hz seem the right answer to this problem. Sigh!
Post 26 Oct 2006, 13:17
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 26 Oct 2006, 13:43
Yeah well, PC hardware sucks. Decent timers wasn't added until APIC, and isn't really available for ring3 programmers. No generic high-performance DMA, etc.

(2D scrolling should be fine with an accelerated video card though... Even though that shouldn't have been necessary Smile ).
Post 26 Oct 2006, 13:43
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 26 Oct 2006, 14:44
do you mind recursion? it can be easily employed
Post 26 Oct 2006, 14:44
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Oct 2006, 14:44
well, there were great scrollers on VGA with mode-X (or how was it called)
Post 26 Oct 2006, 14:44
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Maverick



Joined: 07 Aug 2006
Posts: 251
Location: Citizen of the Universe
Maverick 26 Oct 2006, 15:12
As long as they syncronize it with the vertical refresh period then it's ok (no, I don't pretend also the horizontal, as in the Amiga and its Copper Smile ).

But then again it's a habit: ever seen an Amiga mouse pointer? It's smooth, the PC ones are not, because once again they don't sync the sampling with the vbl.

And I could go on and on. Smile
Post 26 Oct 2006, 15:12
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 26 Oct 2006, 15:19
It's possible to do horizontal syncing on PC as long as you don't do anything else Wink - I've seen coppebars done in text mode as well.
Post 26 Oct 2006, 15:19
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Oct 2006, 16:16
what's "coppebar" ?
Post 26 Oct 2006, 16:16
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 27 Oct 2006, 13:23
Code:
    xor eax,eax
@@:
    inc eax
    and eax,11b
    jmp @b
    

Image
Post 27 Oct 2006, 13:23
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.