flat assembler
Message board for the users of flat assembler.

Index > Main > Macros+Structs -> Classes

Author
Thread Post new topic Reply to topic
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon 09 Mar 2004, 22:45
Is there a way to create a class using the current system of macros and stuctures in fasm? I would love to help develop this if it is not already done.

_________________
It is better to be on the right side of the devil than in his path.
Post 09 Mar 2004, 22:45
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 10 Mar 2004, 19:11
depending on which OOP functionality you desire. If you can develop one with overloading, templates, constructior/desctructor stuff etc., then go on Smile
Post 10 Mar 2004, 19:11
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 10 Mar 2004, 20:30
Here is my proposed smaller OOP in fasm !
Same for all oses supported by fasm (fasm rocks)

Code:
macro new object,class,[args]
 {       call class#.Create,args
     mov  [object],ebx
   OBJ.object fix class#.
 }

macro objc object,method,[args]
 {
 mov  ebx,[object]
   call OBJ.object#method,args
 }
    


That´s all.

If you want a full working example, look here http://board.flatassembler.net/download.php?id=587
Post 10 Mar 2004, 20:30
View user's profile Send private message Yahoo Messenger 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.