flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
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. |
|||
![]() |
|
f0dder 26 Oct 2006, 09:36
If you're going to google for it, try "permutation" instead of "repetition".
|
|||
![]() |
|
vid 26 Oct 2006, 10:46
try to use "inc" and "dec" instructions
![]() |
|||
![]() |
|
Maverick 26 Oct 2006, 12:39
also remember you need one of the new 64bit CPUs for that, even better a quad core
![]() |
|||
![]() |
|
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?
![]() |
|||
![]() |
|
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 ![]() |
|||
![]() |
|
Borsuc 26 Oct 2006, 14:44
do you mind recursion? it can be easily employed
|
|||
![]() |
|
vid 26 Oct 2006, 14:44
well, there were great scrollers on VGA with mode-X (or how was it called)
|
|||
![]() |
|
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
![]() 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. ![]() |
|||
![]() |
|
f0dder 26 Oct 2006, 15:19
It's possible to do horizontal syncing on PC as long as you don't do anything else
![]() |
|||
![]() |
|
vid 26 Oct 2006, 16:16
what's "coppebar" ?
|
|||
![]() |
|
Madis731 27 Oct 2006, 13:23
Code: xor eax,eax @@: inc eax and eax,11b jmp @b ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.