flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
SFeLi 12 Jan 2011, 07:12
Padding. Dword values are often aligned to 4-byte boundaries. Try to insert padding_ dw ? before st_rdev dd ?.
|
|||
![]() |
|
madmatt 12 Jan 2011, 14:42
As SFeli Said above, alignment (st_gid):
Code: struct _stat32
st_dev dd ?
st_ino dw ?
st_mode dw ?
st_nlink dw ?
st_uid dw ?
st_gid dw ?,?
st_rdev dd ?
st_size dd ?
st_atime dd ?
st_mtime dd ?
st_ctime dd ?
ends Also, use cinvoke instead of stdcall. Because some of the elements are word size, you'll have to load them into a 32bit register first, then print out there values, Example: Code: cinvoke _stat, file_file, stat32 cinvoke printf, STRst_dev, [stat32.st_dev] movzx eax, [stat32.st_ino] cinvoke printf, STRst_ino, eax movzx eax, [stat32.st_mode] cinvoke printf, STRst_mode, eax movzx eax, [stat32.st_nlink] cinvoke printf, STRst_nlink, eax movzx eax, [stat32.st_uid] cinvoke printf, STRst_uid, eax movzx eax, [stat32.st_gid] cinvoke printf, STRst_gid, eax cinvoke printf, STRst_rdev, [stat32.st_rdev] cinvoke printf, STRst_size, [stat32.st_size] cinvoke printf, STRst_atime, [stat32.st_atime] cinvoke printf, STRst_mtime, [stat32.st_mtime] cinvoke printf, STRst_ctime, [stat32.st_ctime] |
|||
![]() |
|
ass0 24 Jan 2011, 02:20
Hey madmatt, could you please reupload your examples that you use to put here: ftp://68.225.35.57/
Perhaps to http://ifile.it/, they allow resumable downloads btw ![]() Thank You in advance. _________________ ![]() Nombre: Aquiles Castro. Location2: about:robots |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.