flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
clros
Hi to everybody.
As it is possible to use the TASM directive PROC/ENDP for create procedures with FASM? |
|||
![]() |
|
windwakr
FASM has PROC and ENDP as macros. They are located in "macros/proc32.inc" in the include directory. They're also included when you include any of the windows includes.
|
|||
![]() |
|
clros
Thanks!
|
|||
![]() |
|
DOS386
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 |
|||
![]() |
|
clros
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? |
|||
![]() |
|
DOS386
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 ![]() |
|||
![]() |
|
clros
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? |
|||
![]() |
|
revolution
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 |
|||
![]() |
|
DOS386
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" ![]() |
|||
![]() |
|
clros
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... |
|||
![]() |
|
DOS386
clros wrote: DOS .com You are asking for trouble ![]() |
|||
![]() |
|
clros
DOS386 wrote:
Why? ![]() |
|||
![]() |
|
Borsuc
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. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.