Re: insert asm code
- From: Erik Mouw <J A K Mouw ITS TUDelft NL>
- To: "J. Eusebio Roza Pando" <eusebio roza uah es>
- Cc: Lista Gtk+ <gtk-app-devel-list gnome org>, Gtk+ Win32 <gimpwin-dev yahoogroups com>
- Subject: Re: insert asm code
- Date: Tue, 29 May 2001 13:50:31 +0200
On Tue, May 29, 2001 at 12:40:40PM +0200, J. Eusebio Roza Pando wrote:
does anyone know how can i insert the below asm code in my C program?
mov dx, port
outp al,dx
where "port" is a memory address and "al" is a data.
I use gcc for windows.Thanks a lot!!
Off topic for this list, but here are some references abount inline
assembly with gcc:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9804.2/0953.html
http://www-106.ibm.com/developerworks/linux/library/l-ia.html
And of course all the information is also in the gcc info files.
Note: using inline assembly makes your program unportable to other
architectures!
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J A K Mouw its tudelft nl
WWW: http://www-ict.its.tudelft.nl/~erik/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]