flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > trying to make this with macros |
Author |
|
Madis731 12 Apr 2006, 06:38
How about:
http://board.flatassembler.net/topic.php?t=2568 This can be done both with macros and in the code - depending on what you want. |
|||
12 Apr 2006, 06:38 |
|
vid 12 Apr 2006, 07:39
next time more descriptive thread name please
|
|||
12 Apr 2006, 07:39 |
|
RedGhost 13 Apr 2006, 08:13
Code: ;out: ; eax = result macro crc32 c, b { mov eax, c xor eax, b and eax, $0FF mov eax, dword[crc_32_tab+eax*4] mov ebx, c shr ebx, 8 xor eax, ebx } ;--- it's very late so my conversion may be wrong, and i have not tested in fasm but i'm sure it will compile fine as long as crc_32_tab is defined _________________ redghost.ca |
|||
13 Apr 2006, 08:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.