flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Linking Source with a API-Procedure |
Author |
|
Kain 19 Jan 2007, 06:21
ronnie wrote: HI, What do you mean by transport register? You probably want to link these together, if you are using MS Link or Polink, a linker response file looks something like this: Code: -heap:0xF4240,0xF4240 -stack:0xF4240,0xF4240 -base:0x4000000 -entry:_4Compiler -section:.data,RW -section:.text,ER -machine:ix86 -subsystem:windows -nologo -out:demo.exe kernel32.lib user32.lib str.obj comp.obj This is assuming your files are called "str.asm" and "comp.asm" change them as necessary. I see you also use one of the C libraries. I don't know what its called, you'll have to link in that library too. Also, I believe the C calling convention is different. You have to balance the stack by adding the byte value of all the pushed parameters to ESP. To link, assuming the linker response file is called "comp.link" > polink @comp.link Quote:
Try AoA: www.artofassembly.com The book covers everything from low level aspects to high level displays and frames, along with many different calling conventions. _________________ :sevag.k |
|||
19 Jan 2007, 06:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.