flat assembler
Message board for the users of flat assembler.
Index
> Linux > gcc and fasm |
Author |
|
hidden 12 May 2007, 17:46
Code: #include <stdio.h> int shl(int,int); int main( void ) { printf("%d", shl(0x100, 2)); return 0; } Code: format MS COFF include 'MACRO\PROC32.INC' public _shl section '.text' code readable executable proc _shl c, a, b mov eax, [a] mov ecx, [b] shl eax, cl ret endp |
|||
12 May 2007, 17:46 |
|
realcr 12 May 2007, 18:01
Wow. really nice.
great thanks hidden. [edit] I was wondering if the MACRO thingy also comes with the linux version for fasm. I don't seem to have it on mine. |
|||
12 May 2007, 18:01 |
|
hidden 12 May 2007, 20:25
realcr wrote: I was wondering if the MACRO thingy also comes with the linux version for fasm. I don't seem to have it on mine. |
|||
12 May 2007, 20:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.