Sender: nate AT cartsys DOT com Message-ID: <3589CDC3.BC8CE391@cartsys.com> Date: Thu, 18 Jun 1998 19:32:35 -0700 From: Nate Eldredge MIME-Version: 1.0 To: jan malina CC: djgpp AT delorie DOT com Subject: Re: C++ and asm References: <6mbe53$4os$1 AT news3 DOT Belgium DOT EU DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk jan malina wrote: > > How can I use a asm block in a C/C++ code file ? (with DJGPP) > It complains when I do this: > I included line numbers (n - ...) for the erro places > > 0 - ... // No errors > 1 - _asm { // Or __asm i don't really now anymore > 2 - mov ah,00h > 3 - int 16h > 4 - } > 5 - ... // Also no errors > this are the errors: > (1): Pase error before { > (2): No hexadecemly number > (3): No hexadecemly number See FAQ section 18.13 (I believe). There is also a very helpful tutorial here: http://www.rt66.com/~brennan/djgpp/djgpp_asm.html -- Nate Eldredge nate AT cartsys DOT com