flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Structure causing me out of memory error

Author
Thread Post new topic Reply to topic
shism2



Joined: 14 Sep 2005
Posts: 248
shism2 21 Nov 2005, 00:22
struct au_string
len dw ?
maxlen dw ?
buff dd ?
ENDS

Why does this structure cause for me to get the out of memory error
Post 21 Nov 2005, 00:22
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 21 Nov 2005, 02:17
At least this code have no problems:
Code:
include 'win32axp.inc'

struct au_string
  len dw ?
  maxlen dw ?
  buff dd ?
ends

string au_string    


I'm using FASM 1.64 09 November 2005 version.

Tomasz, are you documenting the changes you made from version 1.64 (Aug 8, 2005) to version 1.64 (Nov 9, 2005)?
Post 21 Nov 2005, 02:17
View user's profile Send private message Reply with quote
shism2



Joined: 14 Sep 2005
Posts: 248
shism2 21 Nov 2005, 04:23
Im using the same version

Now it worked and I'm not sure why... This is what Im using

struct au_string
len dw ?
maxlen dw ?
buff dd ?
ends


mov esi,au_string

It gives me


mov esi,au_string
error: undefined symbol.
Post 21 Nov 2005, 04:23
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 21 Nov 2005, 05:24
that's because struct only declares "structure type", but not defines anything. It should be:

Code:
 struct AU_STRING
len dw ?
maxlen dw ?
buff dd ?
ends

au_string AU_STRING   ; define struct

mov esi,au_string    
Post 21 Nov 2005, 05:24
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.