From: crazyfoo AT work DOT com Newsgroups: comp.os.msdos.djgpp Subject: asm ?'s Date: Sat, 01 Aug 1998 12:49:57 GMT Organization: ELI.NET Leased Newsreader Service Lines: 30 Message-ID: <35c30b1e.19903189@newsreader.2xtreme.net> NNTP-Posting-Host: p142.oak1.2xtreme.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 1 Aug 1998 12:11:53 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I just started reading "Tricks of the game programming gurus" and they start-out with a cahapter on asm. Some one told me that in order to have djgpp do in-line asm, I would have to use this format: asm{ code } I know nothing about asm and would appreciate anyone's advice on the matter. The tutorial was made for use with MASM(which I do not own), and uses .model and .code. Someone told me not to include these statements in my code section as above. I am not sure what the heck I am doin. Here i s a sample of what i did: asm{ integer_1 EQU [BP+6] integer_2 EQU [BP+8] PUBLIC _Add_Int _Add_Int PROC FAR push BP move BP, SP move AX, integer_1 add AX, integer_2 pop BP _Add_Int ENDP END } Is this the right format?