flat assembler
Message board for the users of flat assembler.
Index
> Main > C struct |
Author |
|
donn 11 Nov 2015, 16:33
Hi,
I have been editing Vid's msvc example, thought it may be useful to practice converting a C linked list to Asm as a C library. How should I reference Asm structs? I read that struct members are sequentially ordered in memory, but not sure how to access them or if I should be using the struc directive. If there are any other examples I could examine or documentation to read up on, will certainly take a look. I have been experimenting with many different variations but will keep trying. Code: extern struct Struct1{ int member1; }; Thanks a lot
|
|||||||||||||||||||||
11 Nov 2015, 16:33 |
|
donn 12 Nov 2015, 15:41
Awesome, got it, thanks!
c.h (Not able to upload attachment of this, "The Extension h is not allowed"): Code: struct Struct1{ int member1; } struct1; Code:
extern struct Struct1 struct1;
Code:
public struct1 as '_struct1'
Code: struc Struct1 member1{ .member1 dd member1 } struct1 Struct1 77
|
|||||||||||||||||||||
12 Nov 2015, 15:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.