Conditonal Assembly in Nasm
From: Axel Schlicht (axel.schlicht_at_mail.isis.de)
Date: 05/26/04
- Next message: TenThumbs: "Re: i86, AT&T syntax, GNU as"
- Previous message: TenThumbs: "Re: (too much) allocated memory"
- Next in thread: Frank Kotler: "Re: Conditonal Assembly in Nasm"
- Reply: Frank Kotler: "Re: Conditonal Assembly in Nasm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 May 2004 17:57:43 +0000 (UTC)
Hi folks.
Does anybody know if nasm supports _OS-depending_ assembly like:
let's assume a C-program calls a function func.
Under Linux it will call func but under DOS it will call _func.
So it would be nice to map bot possibilities to one as in
%if running_under_linux
global func
%else
global _func
%endif
.... and later in the prog
%if running_under_linux
call func
%else
call _func
%endif
or even
%if running_under_linux
define Func func
%else
define Func _func
%endif
... and later in the program
call Func
Would make using nasm under DOS (aka Windows 9x) and Linux much
easier.
So how can nasm determine which OS it is being used under and compile
correspondingly?
Thanks a lot for helping
Axel Schlicht
- Next message: TenThumbs: "Re: i86, AT&T syntax, GNU as"
- Previous message: TenThumbs: "Re: (too much) allocated memory"
- Next in thread: Frank Kotler: "Re: Conditonal Assembly in Nasm"
- Reply: Frank Kotler: "Re: Conditonal Assembly in Nasm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|