flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Optionally predefined structure values

Author
Thread Post new topic Reply to topic
Overclick



Joined: 11 Jul 2020
Posts: 610
Location: Ukraine
Overclick 08 Mar 2023, 15:02
Hi
I'm a little confused. I think I've reinvented the wheel.
Is this correct or is there some easy way?
Code:
struc POINT xdata,ydata
{
        match some,xdata \{
                .x dd xdata
                .y dd ydata \}
        match ,xdata \{
                .x dd ?
                .y dd ? \}
}      
Post 08 Mar 2023, 15:02
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 805
Location: Russia
macomics 08 Mar 2023, 15:36
Code:
struc POINT xdata=?, ydata=? {
  .x  dd xdata
  .y  dd ydata
}    
Post 08 Mar 2023, 15:36
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 610
Location: Ukraine
Overclick 08 Mar 2023, 15:53
Oh cool
Post 08 Mar 2023, 15:53
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-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.