flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 11 Jul 2022, 09:19
Please define your criteria for "best"?
|
|||
![]() |
|
Fastestcodes 11 Jul 2022, 10:16
Small
Fast. |
|||
![]() |
|
macomics 11 Jul 2022, 10:31
Code: ; switch 0 .. 65535 mov si, ax add si, si jc @f mov ds, word [fs:si] ; 64 kb segment jmp next @@: mov ds, word [gs:si] ; 64 kb segment next: ; append word: ; align 16 ; db 3, 'cat' ; align 16 ; db 3, 'dog' ; ... ; align 16 ; db 3, 'end' pushf cld xor si, si lods byte [si] movzx cx, al rep movs byte [di], [si] popf |
|||
![]() |
|
Fastestcodes 11 Jul 2022, 15:09
Thx!I will try.
mov dword[edi],'dogs' add edi,4 mov dword[edi],'cats' mm0 and xmm0 doesnt work with 'text' ![]() |
|||
![]() |
|
Roman 11 Jul 2022, 17:08
Quote:
Weird ! Its equal: rep movsb |
|||
![]() |
|
Fastestcodes 11 Jul 2022, 18:29
mov dword[edi],'sedi'
mov dword[eax],'seax' mov dword[ebx],'sebx' mov dword[ecx],'secx' mov dword[edx],'sedx' mov dword[esi],'sesi' mov dword[ebp],'sebp' add edi,28 |
|||
![]() |
|
revolution 11 Jul 2022, 19:10
Fastestcodes wrote: Small Combining "small" with "fast" will lead to contradictions. You have to choose one that outweighs the other. Or you need to define a formula or function that combines the two in some way that achieves your goal. "Small" is by far the easiest criterion to work with. I'd suggest you drop the "fast" criterion. It is the hardest to define and measure. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.