Laaca Czech republic, 13.05.2012, 20:38 |
Assembler optimalisation - how to avoid a jump? (Developers) |
I write some kind of RLE sprite routine with clipping. --- |
Rugxulo Usono, 13.05.2012, 21:10 @ Laaca |
Assembler optimalisation - how to avoid a jump? |
> I write some kind of RLE sprite routine with clipping. |
Laaca Czech republic, 13.05.2012, 22:15 @ Rugxulo |
Assembler optimalisation - how to avoid a jump? |
>shr ecx,1;rep movsd;adc ecx,ecx;rep movsw {fast 32bit write} --- |
marcov 13.05.2012, 23:22 @ Laaca |
Assembler optimalisation - how to avoid a jump? |
> >shr ecx,1;rep movsd;adc ecx,ecx;rep movsw {fast 32bit write} |
ecm Düsseldorf, Germany, 13.05.2012, 23:32 @ Laaca |
Assembler optimisation - how to avoid a jump? |
> I would like to write nice code. I know I could somehow remove the ugly --- |
Laaca Czech republic, 14.05.2012, 18:15 @ ecm |
Assembler optimisation - how to avoid a jump? |
I measured my original code, CM's code and another variant found on internet: --- |
ecm Düsseldorf, Germany, 14.05.2012, 18:22 @ Laaca |
Assembler optimisation - variant 3, sbb |
> VARIANT 3: --- |
Rugxulo Usono, 16.05.2012, 10:34 @ Laaca |
Assembler optimisation - how to avoid a jump? |
> I measured my original code, CM's code and another variant found on |
bretjohn Rio Rancho, NM, 16.05.2012, 16:42 @ Rugxulo |
Assembler optimisation - how to avoid a jump? |
I'll just to add another two cents worth of opinion. |
ecm Düsseldorf, Germany, 16.05.2012, 16:59 @ bretjohn |
Assembler optimisation - speed, size, etc |
> Size matters A LOT, especially when you are dealing with DOS programs, and --- |