flat assembler
Message board for the users of flat assembler.
Index
> Windows > sorting numbers |
Author |
|
sina 14 Dec 2003, 18:08
ok here is the code but its huge and slow
any improvements are welcome
|
|||||||||||
14 Dec 2003, 18:08 |
|
JohnFound 14 Dec 2003, 18:50
VeSCeRa wrote: ok here is the code but its huge and slow Good work VeSCeRa. If you make it only with 1 row (because of simplicity) it is very good example for the beginers. Some first look improvements: Code: ; This code... _num1: stdcall nrandom, 50 cmp eax,0 je _num1 ; ... is equal to: stdcall nrandom,49 add eax,1 And maybe you should think about processing the numbers in some loop. The code will be smaller. Regards. |
|||
14 Dec 2003, 18:50 |
|
sina 14 Dec 2003, 21:52
ok i will make it simple and try a loop
|
|||
14 Dec 2003, 21:52 |
|
sina 14 Dec 2003, 22:34
ok the simple version
with some comments
|
|||||||||||
14 Dec 2003, 22:34 |
|
Madis731 15 Dec 2003, 12:45
I don't see the point:
Code:
jz exit
exit:
Hmm, what would it do if it weren't zero...it would still goto exit. Maybe you wanted to set some flags? or add stalls? ...but I think the 2 lines may be left out. |
|||
15 Dec 2003, 12:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.