using structure member inside if
Hi Mr Colin.
i want ziron support this
#define I386MAGIC 0x14c
#define I386AIXMAGIC 0x175
block filehdr
{
word f_magic; /* magic number */
word f_nscns; /* number of sections */
dword f_timdat; /* time & date stamp */
dword f_symptr; /* file pointer to symtab */
dword f_nsyms; /* number of symtab entries */
word f_opthdr; /* sizeof(optional hdr) */
word f_flags; /* flags */
}
edi = @obj as filehdr;
if( (edi.f_magic!=I386MAGIC) and (edi.f_magic!=I386AIXMAGIC) )
{
print('this is not obj file');
}
also this wanted
cmp word[edi.f_magic],I386MAGIC
http://www.freewebs.com/ogremagic/index.htm