flat assembler
Message board for the users of flat assembler.
Index
> Main > Has struc changed? |
Author |
|
revolution 22 Dec 2005, 01:55
It depends on how you instantiated your structure after defining it. If you have your own "struct" macro then nothing has changed, but if you use the "struct" macro from the package then a lot has changed because of handling if the "." character. Perhaps you can show how you have defined your structure then I can help to get it working the way you want.
|
|||
22 Dec 2005, 01:55 |
|
chorus 23 Dec 2005, 15:39
I'm not using any macro. I'm using the "struc" that is built into fasm (or at least I believe it's built in... it's in the documentation).
Perhaps before I was using the macro without knowing it... probably it's in the standard includes. Thing is I was using Windows before so those includes are there and now I'm using linux and they aren't (stuff like invoke, etc) So I should assume "struc" works the way I described and "struct" works the way I want, but it's a macro. Does that sound about right? --Chorus |
|||
23 Dec 2005, 15:39 |
|
chorus 23 Dec 2005, 15:47
This is how I've defined the structure
Code: struc BITSTREAM { .lpbitstream dq ? .cbBuffer dq ? .nPosition dq ? } To get it to work I need to have Code:
virtual at 0
BITSTREAM BITSTREAM
end virtual
--Chorus |
|||
23 Dec 2005, 15:47 |
|
revolution 24 Dec 2005, 02:44
You have two main options that I can see. If you are programming for WIN32 you can use the package macro "STRUCT" like this:
Code: include 'win32a.inc'
struct BITSTREAM
lpbitstream dq ?
cbBuffer dq ?
nPosition dq ?
ends Code: macro struct name { virtual at 0 name name sizeof.#name = $ name#.size = $ end virtual } struc BITSTREAM { .lpbitstream dq ? .cbBuffer dq ? .nPosition dq ? } struct BITSTREAM |
|||
24 Dec 2005, 02:44 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.