Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* asm code from I386 to AXP
@ 2000-04-10  2:00 peccary
  0 siblings, 0 replies; only message in thread
From: peccary @ 2000-04-10  2:00 UTC (permalink / raw)
  To: axp-list

[-- 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-10  5:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-10  2:00 asm code from I386 to AXP peccary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox