From: peccary@263.net
To: axp-list@redhat.com
Subject: asm code from I386 to AXP
Date: Mon, 10 Apr 2000 10:00:20 +0800 (CST) [thread overview]
Message-ID: <38F135B4.22759@mta5> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
I want to convert assembly code from I386 to AXP,How do it?
for example,converting following code from I386 to AXP:
static void inline port_out(char value, unsigned short port)
{
__asm__ volatile ("outb ,"
::"a" ((char) value),"d" ((unsigned short) port));
}
static unsigned char inline port_in(unsigned short port)
{
unsigned char _v;
__asm__ volatile ("inb ,"
:"=a" (_v):"d" ((unsigned short) port));
return _v;
}
Any answers are appreciated.
_____________________________________________
263Ê×¶¼ÔÚÏß--ÖйúÈ˵ÄÍøÉϼÒÔ° http://www.263.net
¾«²Ê¡¢Ãâ·Ñ¡¢»¹ÄÜÊ¡ÉÏÍø·Ñ£¬¿ì¶©ÔÄË÷Ò×µç×Ó¿¯Îhttp://www.soim.com
»ý£¨ÓÅ£©µã£¬»»£¨½±£©Æ·£¡http://www.thepoints.com
reply other threads:[~2000-04-10 5:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox