flat assembler
Message board for the users of flat assembler.

Index > DOS > Procedures

Author
Thread Post new topic Reply to topic
Jakevfr



Joined: 03 Feb 2007
Posts: 26
Jakevfr 24 Mar 2007, 16:13
Is it possible to use procedures with DOS files? If so how, because I can't get something like
Code:
proc write msg
    ;Do stuff
endp    

to work. If you can't is there a substitute that will work kind of like a procedure?
Post 24 Mar 2007, 16:13
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Mar 2007, 01:55
jakefvr: it would be possible, but someone would have to make such macro.

AFAIK there aren't any yet
Post 25 Mar 2007, 01:55
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386 25 Mar 2007, 11:09
Quote:
possible to use procedures with DOS


Just use ordinary SUB's (CALL & RET). Wink

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 25 Mar 2007, 11:09
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 25 Mar 2007, 13:25
http://board.flatassembler.net/topic.php?p=40011#40011 But note that it is intented for flat mode, you have to take special care when using multi segment EXEs. And also note that the warnings on that thread are still valid Razz
Post 25 Mar 2007, 13:25
View user's profile Send private message Reply with quote
Jakevfr



Joined: 03 Feb 2007
Posts: 26
Jakevfr 25 Mar 2007, 17:19
Thanks guys I got it working correctly
Post 25 Mar 2007, 17:19
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.