flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > tasm to fasm

Author
Thread Post new topic Reply to topic
shism2



Joined: 14 Sep 2005
Posts: 248
shism2 14 Sep 2005, 22:51
API_Args struc
RetAddr dw ?
union
Pshd dw ? ;pushed
Arg1 dw ?
ends
irp Num, <2,3,4,5,6,7,8,9,10,11,12,13,14,15,16>
Arg&Num dw ?
endm
API_Args ends


How could you convert this to fasm?
Post 14 Sep 2005, 22:51
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8390
Location: Kraków, Poland
Tomasz Grysztar 15 Sep 2005, 00:00
With the standard "struct" macro (see the includes package for Win32), it should work this way:
Code:
struct API_Args
 RetAddr dw ?
 union
  Pshd dw ?
  Arg1 dw ?
 ends
 irp Num, 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 { Arg#Num dw ? }
ends    


Without that macros something much more fasm-specific would be needed:
Code:
irp Num, 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
 {
  common
   struc API_Args \{
    .RetAddr dw ?
    virtual
     .Pshd dw ?
    end virtual
    .Arg1 dw ?
  forward
   .Arg#Num dw ?
  common
   \}
 }    
Post 15 Sep 2005, 00:00
View user's profile Send private message Visit poster's website Reply with quote
shism2



Joined: 14 Sep 2005
Posts: 248
shism2 15 Sep 2005, 00:30
Thanks alot you sure respond fast Smile
Post 15 Sep 2005, 00:30
View user's profile Send private message 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.