flat assembler
Message board for the users of flat assembler.
Index
> Main > PROC/ENDP with FASM |
Author |
|
clros 18 Dec 2009, 18:50
Hi to everybody.
As it is possible to use the TASM directive PROC/ENDP for create procedures with FASM? |
|||
18 Dec 2009, 18:50 |
|
clros 18 Dec 2009, 19:28
Thanks!
|
|||
18 Dec 2009, 19:28 |
|
DOS386 19 Dec 2009, 01:26
clros wrote: Hi to everybody. There is no PROC support in compiler core, but there are MACRO's, PROC32 and PROC64 in the "official" includes, about PROC16 see http://board.flatassembler.net/topic.php?t=10825 |
|||
19 Dec 2009, 01:26 |
|
clros 19 Dec 2009, 08:10
DOS386 wrote:
I am using the 'proc' and 'endp' keywords for now in 16 bit code (use16) under windows apparently without problems. It is correct way? But... in Linux version of fasm I don't have the 'proc32.inc' include file...why? |
|||
19 Dec 2009, 08:10 |
|
revolution 19 Dec 2009, 08:12
Under DOS you would want 16bit code.
Under Windows you would want 32bit code. Under Linux you don't have the stdcall standard in the OS so the proc/endp are not so useful. But you can use them if you want to inside your own apps. |
|||
19 Dec 2009, 08:12 |
|
DOS386 19 Dec 2009, 12:59
clros wrote: I am using the 'proc' and 'endp' keywords for now in 16 bit code (use16) under windows apparently without problems. It is correct way? You should use format PE and 32-bit code then, not things like format MZ or org 100h |
|||
19 Dec 2009, 12:59 |
|
clros 19 Dec 2009, 14:02
DOS386 wrote:
I would want only to create some applications that don't have a particular format. For this motive I use the command prompt under windows (or the terminal under linux) for running my programs. In this case I can't use the procedure? |
|||
19 Dec 2009, 14:02 |
|
revolution 19 Dec 2009, 14:10
Windows command prompt is 32bit. The OS interface uses stdcall and ccall, so proc/endp can be useful.
Linux command prompt is 32bit. But the OS interface is not stdcall or ccall, so proc/endp are not as useful. But regardless, you can use the proc/endp at your convenience. You don't have to use them but they can help to make things more readable and easier to type. Essentially, it is up to you whether you use them or not. Last edited by revolution on 19 Dec 2009, 14:32; edited 1 time in total |
|||
19 Dec 2009, 14:10 |
|
DOS386 19 Dec 2009, 14:16
clros wrote: want only to create some applications that don't have a particular format. Only DOS COM or OS Construction Quote: For this motive I use the command prompt under windows PE is a MUST Quote: (or the terminal under linux) for running my programs. So you need ELF or whatever, I don't have Linux, but I doubt it will accept "no format" |
|||
19 Dec 2009, 14:16 |
|
clros 19 Dec 2009, 15:55
DOS386 wrote:
DOS .com Quote: So you need ELF or whatever, I don't have Linux, but I doubt it will accept "no format" I also have some doubt... |
|||
19 Dec 2009, 15:55 |
|
DOS386 20 Dec 2009, 07:40
clros wrote: DOS .com You are asking for trouble |
|||
20 Dec 2009, 07:40 |
|
clros 20 Dec 2009, 11:24
DOS386 wrote:
Why? |
|||
20 Dec 2009, 11:24 |
|
Borsuc 20 Dec 2009, 17:26
Because .com under Windows is not encouraged. It's not even supported directly in 64-bit Windows.
If you want to use .com you should use DOS instead. |
|||
20 Dec 2009, 17:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.