flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
sina
ok here is the code but its huge and slow
any improvements are welcome ![]()
|
|||||||||||
![]() |
|
JohnFound
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. |
|||
![]() |
|
sina
ok i will make it simple and try a loop
|
|||
![]() |
|
sina
ok the simple version
with some comments
|
|||||||||||
![]() |
|
Madis731
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. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.