From: toudi Newsgroups: comp.os.msdos.djgpp Subject: Re: ASM in DJGPP Date: Wed, 15 Nov 2000 15:32:09 +0100 Organization: news.onet.pl Lines: 27 Sender: [pienkny.friko6.onet.pl]@pe111.warszawa.ppp.tpnet.pl Message-ID: <3A129E68.F0DAFEA0@priv6.onet.pl> References: <3A092D3D DOT 93376B5B AT free DOT fr> NNTP-Posting-Host: pe111.warszawa.ppp.tpnet.pl Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: news.onet.pl 974294693 27244 212.160.56.111 (15 Nov 2000 13:24:53 GMT) X-Complaints-To: abuse AT onet DOT pl NNTP-Posting-Date: 15 Nov 2000 13:24:53 GMT X-Accept-Language: pl X-Mailer: Mozilla 4.5 [pl] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Kirill Pankratiev napisał(a): > I wonder , can somebody tell me how to use assembly in DJGPP > > So far i didn't manage to comipe things like : > > void Swap(int *a,int *b) > { > _asm > { > push ebp > mov ebp,esp > pop ax > pop bx > push ax > push bx > pop ebp > } > } > > mailto://kirill AT free DOT fr DJGPP uses strange AT&T asm syntax. Search for free NASM, it uses x86 syntax.